/* ==========================================================================
   Mark Rodseth — personal site
   Self-hosted fonts + design tokens + shell + components + responsive.
   Recreated from the original bundled SPA as static, JS-free pages.
   ========================================================================== */

/* ---------- Fonts (self-hosted, extracted from the original bundle) ------- */
/* Space Grotesk ships as a variable file per subset (weights 300–700). */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Space Mono — weights 400 and 700 as separate files. */
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/space-mono-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-latin-1.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-latin-ext-1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/space-mono-vietnamese-1.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* ---------- Design tokens ------------------------------------------------- */
:root {
  --ink: #141311;
  --paper: #f0efec;
  --text: #17150f;
  --text-soft: #4a453b;
  --text-strong: #26221b;
  --muted: #6e6a61;
  --muted-2: #6f6a60;
  --hairline: #d8d5cd;
  --slot: #dcdad4;

  --rail-text: #e9e6df;
  --rail-text-hi: #f3f0e9;
  --rail-muted: #9d998f;
  --rail-muted-2: #8a877e;
  --rail-nav: #c6c2b9;
  --rail-hairline: #2a2825;

  --accent: #4dff88;
  --accent-deep: #0a7d38;
  --accent-soft: #5fcf8a;
  --accent-line: #a6e8c1;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --rail-w: 340px;
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(77, 255, 136, 0.32); }

:where(a, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Skip link ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 6px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Shell --------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
  background: var(--paper);
}

/* ---------- Left rail ----------------------------------------------------- */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--ink);
  color: var(--rail-text);
  padding: 54px 40px;
  display: flex;
  flex-direction: column;
}
/* Decorative layers: grid + scanlines + radial glow. */
.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(77, 255, 136, 0.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.14) 3px),
    linear-gradient(rgba(77, 255, 136, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 255, 136, 0.09) 1px, transparent 1px);
  background-size: 100% 100%, 100% 3px, 44px 44px, 44px 44px;
}
/* Top accent bar. */
.rail::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(77, 255, 136, 0.95) 45%, rgba(77, 255, 136, 0.95) 55%, transparent);
}
.rail > * { position: relative; z-index: 1; }

.rail__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
.rail__badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.rail__name {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rail__tagline {
  font-size: 15px;
  line-height: 1.72;
  color: var(--rail-muted);
  margin-top: 20px;
  max-width: 26ch;
}

.rail__nav { margin-top: 60px; }
.rail__nav a {
  position: relative;
  display: block;
  font-size: 16px;
  padding: 14px 0 14px 14px;
  color: var(--rail-nav);
  border-bottom: 1px solid var(--rail-hairline);
  transition: padding-left 0.18s ease, color 0.18s ease;
}
.rail__nav a:hover { padding-left: 20px; color: var(--rail-text-hi); }
.rail__nav a[aria-current="page"] { color: var(--rail-text-hi); }
.rail__nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.rail__nav a:focus-visible { outline-color: var(--accent); }

.rail__social {
  margin-top: auto;
  padding-top: 46px;
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rail-muted-2);
}
.rail__social a { transition: color 0.15s ease; }
.rail__social a:hover { color: var(--accent); }
.rail__social a:focus-visible { outline-color: var(--accent); }

/* ---------- Main ---------------------------------------------------------- */
.main {
  min-width: 0;
  position: relative;
  background-image:
    linear-gradient(rgba(14, 120, 58, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 120, 58, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section {
  padding: 100px 78px 116px;
  max-width: 1100px;
}
.section--1000 { max-width: 1000px; }
.section--980  { max-width: 980px; }
.section--880  { max-width: 880px; }
.section--820  { max-width: 820px; }

/* ---------- Shared text bits ---------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 26px;
}
.eyebrow--home { margin-bottom: 36px; }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-title {
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.title--gap20 { margin-bottom: 20px; }
.title--gap44 { margin-bottom: 44px; }
.title--gap52 { margin-bottom: 52px; }

.lead {
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.72;
  color: var(--text-soft);
  margin-top: 28px;
  max-width: 58ch;
}
.lead--home { font-size: 20px; margin-top: 40px; max-width: 56ch; }
.lead--lg   { font-size: 20px; line-height: 1.72; }
.lead--gap52 { margin-bottom: 52px; }
.lead--gap58 { margin-bottom: 58px; }
.lead--gap62 { margin-bottom: 62px; }

/* ---------- Link styles --------------------------------------------------- */
.link-underline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  transition: opacity 0.15s ease;
}
.link-underline:hover { opacity: 0.6; }

.link-accent {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}
.link-accent:hover { opacity: 0.7; }

/* ---------- Home: hero actions + stats ------------------------------------ */
.actions {
  display: flex;
  gap: 24px;
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.actions .muted { color: var(--muted); transition: color 0.15s ease; }
.actions .muted:hover { color: var(--text); }

.stats {
  display: flex;
  gap: 40px;
  margin-top: 74px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
}
.stats div { margin: 0; }
.stats dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.stats dd {
  margin: 4px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 96px 0 36px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.section-head a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease;
}
.section-head a:hover { color: var(--accent-deep); }
.section-head a .br { color: var(--accent-deep); }

/* ---------- Media placeholders (image slots) ------------------------------ */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--slot);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media > span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.media--h230 { height: 230px; }
.media--h270 { height: 270px; }
.media--h300 { height: 300px; border-radius: 10px; }
.media--h380 { height: 380px; border-radius: 6px; }
.media--img { display: block; width: 100%; object-fit: cover; object-position: center top; }
.media--shot { object-position: center; border: 1px solid var(--hairline); }
.card .media--shot { object-position: center top; }

/* Whole-card links: the title link stretches over the card; other links stay clickable above it */
.card--link { position: relative; }
.card--link .stretch { color: inherit; outline: none; }
.card--link .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.card--link a:not(.stretch) { position: relative; z-index: 2; }
.card--link:hover .stretch { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card--link img { transition: opacity 0.2s, transform 0.2s; }
.card--link:hover img { opacity: 0.88; }
.card--link .stretch:focus-visible::after { outline: 2px solid var(--accent-deep); outline-offset: 6px; }

/* ---------- Card grids ---------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 36px;
}
.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 50px 34px;
}
.card { min-width: 0; }
.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  margin-top: 12px;
}
.card__meta { font-size: 14px; color: var(--muted); }
.card__kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: 18px;
}
.card--work .card__title { margin-top: 0; }
.card__desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}

/* ---------- Work filter chips (visual only, per original) ----------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 38px 0 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chips span {
  border: 1px solid var(--hairline);
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 999px;
}
.chips span.is-active { border-color: var(--text); color: var(--text); }

/* ---------- Projects: alternating feature rows ---------------------------- */
.feature-list { display: flex; flex-direction: column; gap: 64px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 56px;
}
.feature--reverse { grid-template-columns: 300px minmax(0, 1fr); }
.feature .feature__kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.feature h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.feature p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 20px;
}
.feature__links { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Writing list -------------------------------------------------- */
.entries { display: flex; flex-direction: column; }
.entry {
  display: block;
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
  transition: opacity 0.15s ease;
}
.entry:last-of-type { border-bottom: 1px solid var(--hairline); }
.entry:hover { opacity: 0.65; }
.entry__date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.entry__title {
  font-family: var(--display);
  font-size: 26px;
  margin-bottom: 8px;
}
.entry__desc {
  font-family: var(--display);
  font-size: 16px;
  color: var(--muted-2);
  font-weight: 300;
}
.entries-foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.entries-foot .note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Books --------------------------------------------------------- */
.book__cover {
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.4);
}
.book__cover .media { height: 310px; border-radius: 0; }
.card .book__cover img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 8; object-fit: cover; }
.book__title {
  font-family: var(--display);
  font-size: 20px;
  margin-top: 14px;
}
.book__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 2px 0 8px;
}
.book__desc {
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted-2);
  font-weight: 300;
  line-height: 1.5;
}
.feature--book { grid-template-columns: 240px minmax(0, 1fr); padding-top: 48px; }
.feature--book .book__cover img { display: block; width: 100%; height: auto; }
.books-subhead {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  margin: 72px 0 34px;
}
.books-foot { margin-top: 52px; font-size: 16px; color: var(--text-soft); }
.books-foot a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-line); }
.books-foot a:hover { opacity: 0.7; }

/* ---------- About --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 76px;
  align-items: start;
}
.about-prose { font-family: var(--display); font-weight: 300; color: var(--text-strong); }
.about-prose .intro { font-size: 22px; line-height: 1.62; margin: 0 0 22px; }
.about-prose p:not(.intro) { font-size: 17px; line-height: 1.8; color: var(--text-soft); margin: 0 0 18px; }
.about-prose p:last-of-type { margin-bottom: 0; }
.about-label {
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
}
.about-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 10px;
  text-transform: uppercase;
}

/* ---------- Experience ---------------------------------------------------- */
.cv { display: flex; flex-direction: column; }
.cv__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
}
.cv__when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}
.cv__role { font-family: var(--display); font-size: 23px; }
.cv__org { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.cv__desc {
  font-family: var(--display);
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.72;
}

/* ---------- Contact ------------------------------------------------------- */
.contact-link {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}
.contact-link:hover { color: var(--accent-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 72px;
}
.contact-grid > div { border-top: 1px solid var(--hairline); padding-top: 26px; }
.contact-grid .label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-grid .value { font-family: var(--display); font-size: 18px; }
.contact-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 14px;
}
.contact-follow a { color: var(--accent-deep); }
.contact-follow a:hover { opacity: 0.7; }
address { font-style: normal; }

/* ---------- 404 ----------------------------------------------------------- */
.notfound { padding: 120px 78px; max-width: 700px; }
.notfound h1 { font-size: 88px; }
.notfound p { margin: 28px 0 40px; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static;
    height: auto;
    overflow: visible;
    padding: 34px 24px;
  }
  .section { padding: 44px 24px 60px; }
  h1 { font-size: 42px; letter-spacing: -0.02em; }
  .hero-title { font-size: 42px; }
  .stats { flex-wrap: wrap; gap: 22px 36px; }
  .card-grid, .card-grid--3, .card-grid--4,
  .feature, .feature--reverse,
  .about-grid, .contact-grid, .cv__row {
    grid-template-columns: 1fr;
  }
  .cv__row { gap: 10px; }
  .contact-link { font-size: 24px; }
  .feature--reverse .media { order: -1; }
  .feature--book { grid-template-columns: 1fr; gap: 32px; }
  .feature--book .book__cover { max-width: 220px; }
}

@media (max-width: 520px) {
  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .hero-title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
