:root {
  --bg: #f7f2e8;
  --bg-strong: #efe5d4;
  --surface: rgba(255, 251, 245, 0.8);
  --surface-strong: #fffdf8;
  --ink: #172033;
  --muted: #5f6779;
  --line: rgba(23, 32, 51, 0.12);
  --accent: #a25c33;
  --accent-soft: #d7b48f;
  --navy: #223554;
  --shadow: 0 22px 48px rgba(39, 33, 24, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 180, 143, 0.35), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(162, 92, 51, 0.1), transparent 20%),
    linear-gradient(180deg, #fbf7f0 0%, #f7f2e8 45%, #f3ecdf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.site-header,
.hero,
.section,
.stats-band,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(39, 33, 24, 0.05);
}

.brand,
.site-nav a,
.button,
.text-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #243655 0%, #1a243a 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero,
.section,
.stats-band {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.88), rgba(250, 245, 235, 0.82));
  box-shadow: var(--shadow);
}

.hero,
.section {
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: 32px;
  padding: 34px;
  margin-bottom: 22px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 92, 51, 0.12), transparent 70%);
}

.hero-copy,
.hero-aside,
.contact-stack {
  display: grid;
  gap: 20px;
}

.eyebrow,
.card-label,
.project-type {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

p,
li {
  line-height: 1.7;
}

.hero-sub,
.timeline-copy ul,
.project-card p,
.writing-card p,
.skill-card li,
.about-story p,
.contact-copy,
.featured-note p,
.pathway p,
.site-footer {
  color: var(--muted);
}

.hero-sub {
  max-width: 60ch;
  margin: 0;
  font-size: 1rem;
}

.hero-sub-strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-actions,
.contact-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.project-card:hover,
.writing-card:hover,
.timeline-item:hover,
.about-story:hover,
.skill-card:hover,
.pathway article:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: linear-gradient(135deg, #1e2e4c 0%, #31466d 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(34, 53, 84, 0.18);
}

.button-light {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
  color: var(--ink);
}

.hero-signals,
.stats-band,
.project-grid,
.writing-grid,
.skills-grid,
.pathway {
  display: grid;
  gap: 18px;
}

.hero-signals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-signals article,
.stats-band article,
.featured-note,
.about-story,
.timeline-item,
.project-card,
.writing-card,
.skill-card,
.featured-project,
.pathway article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-signals article,
.stats-band article,
.skill-card,
.writing-card,
.project-card,
.about-story,
.featured-project,
.pathway article {
  padding: 22px;
}

.hero-signals span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.hero-signals strong {
  font-size: 1rem;
  line-height: 1.5;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(34, 53, 84, 0.1), rgba(162, 92, 51, 0.08)),
    linear-gradient(135deg, #fbf6ee 0%, #eadcc8 100%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.featured-note {
  padding: 24px;
}

.stats-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
}

.stats-band article h3 {
  margin: 4px 0 10px;
}

.section {
  padding: 30px;
  margin-bottom: 22px;
}

.section-accent {
  background:
    radial-gradient(circle at top right, rgba(162, 92, 51, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.95), rgba(246, 236, 221, 0.92));
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 18px;
}

.about-story-feature {
  background: linear-gradient(180deg, rgba(248, 239, 226, 0.95), rgba(255, 252, 247, 0.92));
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--navy);
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.timeline-meta p,
.timeline-meta span {
  margin: 0;
}

.timeline-meta p {
  font-weight: 800;
  color: var(--navy);
}

.featured-project {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  margin-bottom: 18px;
}

.project-grid,
.writing-grid,
.skills-grid,
.pathway {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.writing-card,
.skill-card,
.pathway article {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.skill-tags {
  margin-top: 12px;
  color: var(--navy);
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-story-feature {
    grid-column: 1 / -1;
  }

  .project-grid,
  .writing-grid,
  .skills-grid,
  .pathway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .contact-layout,
  .featured-project,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero-signals,
  .stats-band,
  .about-grid,
  .project-grid,
  .writing-grid,
  .skills-grid,
  .pathway {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  h2 {
    max-width: none;
  }

  .portrait-frame {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .site-header,
  .hero,
  .section,
  .stats-band {
    border-radius: 26px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .site-nav {
    justify-content: space-between;
    gap: 12px;
  }

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

  .stats-band {
    padding: 14px;
  }

  .site-footer {
    flex-direction: column;
  }
}
