:root {
  --bg: #f2efe8;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffaf2;
  --text: #1f1b16;
  --muted: #62584b;
  --accent: #c4492d;
  --accent-2: #1f6d63;
  --border: rgba(31, 27, 22, 0.12);
  --shadow: 0 24px 60px rgba(61, 38, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 73, 45, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 109, 99, 0.16), transparent 28%),
    linear-gradient(145deg, #ebe4d7 0%, #f8f4ed 45%, #efe7da 100%);
}

a {
  color: var(--accent);
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero,
.card {
  backdrop-filter: blur(14px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-copy {
  flex: 1;
}

.profile-photo {
  width: 256px;
  height: 256px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 36px;
  transform: rotate(20deg);
  opacity: 0.14;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.1rem);
  line-height: 0.98;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.intro {
  max-width: 60ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--text);
  color: #fffaf2;
}

.secondary,
.ghost-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

main {
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.card {
  padding: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
}

.paper-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paper-list li + li {
  margin-top: 16px;
}

.paper-list a {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
}

.paper-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
}

body.alt-accent {
  --accent: #0057b8;
  --accent-2: #bf2f5b;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .hero,
  .card {
    border-radius: 22px;
  }

  .hero,
  .card {
    padding: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .profile-photo {
    width: 220px;
    height: 220px;
  }
}
