@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/Inter-Bold.woff2") format("woff2"); }

/* Matt Gould Portfolio — Static export
   Design tokens chosen to match the React/Tailwind original. */
:root {
  --bg: rgb(242 239 232);
  --fg: oklch(0.16 0.005 270);
  --muted: oklch(0.5 0.01 270);
  --border: oklch(0.82 0.012 85);
  --secondary: oklch(0.97 0.002 270);
  --accent: oklch(0.62 0.18 255);
  --hover-bg: #E0DCD2;
  --radius: 10px;
  --container: 1152px;
  --container-narrow: 768px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-feature-settings: "cv11","ss01","ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 { letter-spacing: -0.035em; font-weight: 600; }

/* ---- Layout ---- */
.main { flex: 1; padding-top: 3rem; }
.container       { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.container-wide  { max-width: var(--container); margin: 0 auto; padding: 0; }

.section { padding: 5rem 1rem; }
.section-sm {padding: 2rem 1rem 3rem;}
.section-pad-bottom { padding-bottom: 4rem; }

@media (min-width: 768px) {
  .section { padding: 7rem 1rem; }
  .section-sm { padding: 3rem 0; }
  .section-pad-bottom { padding-bottom: 6rem; }
}

.band { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: var(--bg); }

/* ---- Type ---- */
.display { font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 600; }
.headline { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500; }
.lede { margin-top: 2rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom-color: color-mix(in oklch, var(--border) 60%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 3rem;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.brand { font-weight: 600; letter-spacing: -0.02em; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2rem; }
.nav-desktop a { color: var(--muted); transition: color 0.2s; }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--fg); }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-toggle {
  background: none; border: 0; cursor: pointer; position: relative;
  height: 1.25rem; width: 1.25rem; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; top: 50%; display: block; height: 1px; width: 1.25rem; background: var(--fg);
  transition: transform 0.3s ease-out;
}
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 0 solid color-mix(in oklch, var(--border) 60%, transparent);
  opacity: 0;
  transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out, border-top-width 0s linear 0.3s;
}
.nav-mobile.open { grid-template-rows: 1fr; opacity: 1; border-top-width: 1px; transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out, border-top-width 0s; }
.nav-mobile > ul {
  min-height: 0;
  overflow: hidden;
  max-width: var(--container); margin: 0 0;
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-mobile a { display: block; padding: 0.5rem 0; color: var(--muted); }
.nav-mobile a.is-active { color: var(--fg); }
@media (min-width: 768px) { .nav-mobile { display: none; } }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: var(--bg); }
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid; gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.footer-list a:hover { text-decoration: underline; }

/* ---- Home / Hero ---- */
.hero { padding: 7rem 1.5rem 5rem; max-width: var(--container-narrow); margin: 0 auto; }
@media (min-width: 768px) { .hero { padding: 10rem 1.5rem 7rem; } }
.hero-home { padding: 8rem 1.5rem 6rem; }
@media (min-width: 768px) { .hero-home { padding: 12rem 1.5rem 10rem; } }

.stats-grid {
  display: grid; gap: 1px; background: color-mix(in oklch, var(--border) 60%, transparent);
  border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--bg); padding: 2.5rem; }
.stat .small { margin-top: 0.75rem; }

.row-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.row-links { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .row-links { display: flex; } }
.row-links a:hover { color: var(--fg); }

/* ---- Cards ---- */
.cards-grid {
  margin-top: 3rem;
  display: grid; gap: 1px;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--border) 60%, transparent);
  overflow: hidden;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
.card { display: block; background: var(--bg); padding: 1.5rem; transition: background 0.2s; }
@media (min-width: 768px) { .card { padding: 2rem; } }
.card:hover { background: var(--hover-bg); }
.card-title { margin-top: 1.5rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .card-title { font-size: 1.875rem; } }
.card-tags { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.card-summary { margin-top: 0.75rem; max-width: 28rem; font-size: 0.875rem; color: var(--muted); }

/* ---- Thumb ---- */
.thumb { position: relative; aspect-ratio: 4/3; width: 100%; overflow: hidden; border-radius: 5px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb-img-cover { object-fit: cover; }
.thumb-img-contain { object-fit: contain; padding: 1.5rem; }
@media (min-width: 768px) { .thumb-img-contain { padding: 2.5rem; } }
.thumb-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thumb-mark span { font-weight: 600; line-height: 1; letter-spacing: -0.06em; font-size: clamp(4rem, 14vw, 9rem); user-select: none; }

/* ---- Thoughts list ---- */
.thoughts-list {
  margin-top: 3rem;
  border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.thoughts-list > li { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.thoughts-list > li:first-child { border-top: 0; }
.thought-row { display: block; padding: 2rem 0; transition: background 0.2s; }
@media (min-width: 768px) { .thought-row { padding: 2.5rem 0; } }
.thought-row:hover { background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.thought-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .thought-title { font-size: 1.875rem; } }
.thought-excerpt { margin-top: 0.5rem; max-width: 36rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) { .thought-excerpt { font-size: 1rem; } }

/* ---- About ---- */
.about-grid { display: grid; gap: 3rem; padding: 5rem 1.5rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; padding: 7rem 1.5rem; }
}
.about-figure { border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: var(--radius); overflow: hidden; background: color-mix(in oklch, var(--secondary) 40%, transparent); }
.about-body { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.about-dl { margin-top: 1.5rem; display: grid; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
@media (min-width: 640px) { .about-dl { grid-template-columns: 1fr 1fr; } }
.about-dl dd { margin-top: 0.5rem; color: var(--fg); }
.about-dl a { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Contact ---- */
.contact-link { display: block; font-size: 1.875rem; font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s; }
@media (min-width: 768px) { .contact-link { font-size: 2.25rem; } }
.contact-link + .contact-link { margin-top: 1.5rem; }
.contact-link:hover { color: var(--accent); }

/* ---- Case study ---- */
.subtitle { margin-top: 2rem; max-width: 48rem; font-size: 1.5rem; font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; color: color-mix(in oklch, var(--fg) 80%, transparent); }
@media (min-width: 768px) { .subtitle { font-size: 1.875rem; } }
.top-tags { margin-top: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 2.5rem; }
.back-link:hover { color: var(--fg); }
.cover-img { width: 100%; height: auto; }
.cover-thumb .thumb { aspect-ratio: 16/9; }

.achievements { margin-top: 3rem; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.achievements > li { display: flex; align-items: baseline; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
@media (min-width: 768px) { .achievements > li { gap: 2.5rem; padding: 2rem 0; } }
.achievements > li:first-child { border-top: 0; }
.ach-num { width: 2rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .ach-num { width: 3rem; } }
.ach-text { font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
@media (min-width: 768px) { .ach-text { font-size: 1.875rem; } }

.essay-narrow { max-width: 48rem; }
.essay-block + .essay-block { margin-top: 4rem; }
.essay-h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .essay-h2 { font-size: 1.875rem; } }
.essay-body { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); display: flex; flex-direction: column; gap: 1.25rem; }
.essay-body p { font-size: 1.125rem; line-height: 1.65; color: color-mix(in oklch, var(--fg) 90%, transparent); }
.essay-body.raw { display: block; }
.essay-body.raw p + p { margin-top: 1.25rem; }
.essay-body.raw h3 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
@media (min-width: 768px) { .essay-body.raw h3 { font-size: 1.5rem; } }
.essay-body.raw ul { margin-top: 1rem; padding-left: 1.5rem; list-style: disc; display: flex; flex-direction: column; gap: 0.5rem; }
.essay-list { padding-left: 1.5rem; list-style: disc; display: flex; flex-direction: column; gap: 0.5rem; }
.section-img { margin-top: 2rem; width: 100%; height: auto; }
.caption { margin-top: 2rem; padding-left: 1rem; border-left: 1px solid var(--border); font-size: 0.875rem; font-style: italic; color: var(--muted); }

.outcomes-grid { margin-top: 2.5rem; display: grid; gap: 1px; background: color-mix(in oklch, var(--border) 60%, transparent); }
@media (min-width: 768px) { .outcomes-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonials { margin-top: 3rem; display: flex; flex-direction: column; gap: 4rem; }
@media (min-width: 768px) { .testimonials { gap: 5rem; } }
.quote blockquote { font-size: 1.25rem; font-weight: 300; line-height: 1.6; letter-spacing: -0.02em; color: color-mix(in oklch, var(--fg) 90%, transparent); }
@media (min-width: 768px) { .quote blockquote { font-size: 1.5rem; } }
.quote figcaption { margin-top: 1.5rem; }

/* ---- Next card ---- */
.next-card { display: block; transition: background 0.2s; background: var(--bg); }
.next-card:hover { background: var(--secondary); }
.next-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .next-row { padding: 6rem 1.5rem; } }
.next-title { margin-top: 1rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 768px) { .next-title { font-size: 2.25rem; } }
.next-arrow { font-size: 1.5rem; color: var(--muted); transition: transform 0.2s; }
@media (min-width: 768px) { .next-arrow { font-size: 2.25rem; } }
.next-card:hover .next-arrow { transform: translateX(4px); }
