@font-face {
  font-family: "Bodoni Moda";
  src: url("/static/fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2-variations"),
       url("/static/fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("/static/fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Two families (Bodoni Moda for display and section titles, Archivo for everything else), four sizes: display, section, body, meta.
   Cream ground and dark brown ink (owner's pick, 2026-10-22); the darkest brown marks titles, primary actions and the notes beside the work. */
:root {
  color-scheme: light;
  --bg: #f3eadb;
  --surface: #e9dcc7;
  --text: #2b1d14;
  --muted: #6b5444;
  --line: rgb(43 29 20 / 0.16);
  --accent: #2b1d14;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --size-display: clamp(3.25rem, 9.5vw, 6rem);
  --size-section: clamp(2.25rem, 5vw, 3.5rem);
  --size-body: 1.0625rem;
  --size-meta: 0.875rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4rem, 10vw, 8rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--size-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: #c4b197 var(--bg);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 80rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--text); color: var(--bg); font-weight: 700; padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Type roles */
.display { font-family: var(--serif); font-weight: 500; font-size: var(--size-display); line-height: 0.95; letter-spacing: -0.015em; color: var(--accent); font-optical-sizing: auto; }
.display--section { font-size: var(--size-section); line-height: 1.05; }
.title { font-weight: 700; font-size: var(--size-body); line-height: 1.35; }
.lead { font-size: var(--size-body); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.meta { font-size: var(--size-meta); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(243 234 219 / 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-section); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; font-size: var(--size-meta); color: var(--muted); }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem;
  font: inherit; font-weight: 700; color: var(--text); background: transparent;
  border: 1px solid var(--text); border-radius: 0; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.button:hover { background: var(--text); color: var(--bg); }
.button:active { transform: translateY(1px); }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button--primary:hover { background: transparent; color: var(--accent); }
.icon-button { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: border-color 0.2s, opacity 0.2s; }
.icon-button:hover:not(:disabled) { border-color: var(--text); }
.icon-button:disabled { opacity: 0.35; cursor: default; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Media and empty slots */
.media { width: 100%; height: 100%; object-fit: cover; border: 0; }
.slot { border: 1px dashed rgb(43 29 20 / 0.3); background: var(--surface); display: grid; place-items: center; }
.slot-label { font-size: var(--size-meta); color: var(--muted); text-align: center; line-height: 1.4; padding: 1rem; }

/* Home: hero */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.reel-section { padding-top: var(--space-section); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.hero--media .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr); }
.hero-name { max-width: 10ch; }
.hero-line { margin-top: 1.75rem; line-height: 1.6; color: var(--text); max-width: 32rem; }
.hero-media { position: relative; margin: 0; aspect-ratio: 9 / 16; max-height: min(78vh, 46rem); width: 100%; justify-self: end; overflow: hidden; background: var(--surface); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-name { animation: name-tighten linear both; animation-timeline: scroll(root); animation-range: 0 40vh; }
  }
}
@keyframes name-tighten { to { letter-spacing: -0.035em; opacity: 0.55; } }

.media-toggle { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 1; }
.media-toggle { background: rgb(43 29 20 / 0.75); border-color: transparent; color: var(--bg); }

/* Home: reel */
.reel-head { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.reel-head .display--section { margin-right: auto; }
.reel-all { order: 1; color: var(--muted); }
.reel-controls { order: 2; }
.reel-controls { display: flex; gap: 0.5rem; }
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(14rem, 22vw, 19rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100% - 80rem) / 2)); scroll-padding-inline: max(var(--gutter), calc((100% - 80rem) / 2));
  padding-bottom: 1.25rem; scrollbar-width: thin;
}
.reel:focus-visible { outline-offset: -2px; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel.is-dragging .card-link { pointer-events: none; }
.card { scroll-snap-align: start; display: grid; align-content: start; gap: 0.35rem; }
.card-link { display: grid; gap: 0.35rem; text-decoration: none; }
.card-visual { position: relative; display: block; margin-bottom: 0.75rem; }
.card-media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface); }
/* Screens and documents are tight crops (16:9 web, 4:5 documents) shown at their own aspect. */
.card:not(.card--phone):not(.card--slot) .card-media { aspect-ratio: auto; }
.card:not(.card--phone):not(.card--slot) .card-media .media { position: static; height: auto; }
/* Social video sits in a phone: the one rounded object in a square-cornered system. */
.card--phone .card-media { border: 0.4rem solid #1e140d; border-radius: 1.6rem; box-shadow: 0 1.25rem 2.5rem -1.25rem rgb(43 29 20 / 0.4); }
.note {
  position: absolute; right: -0.5rem; bottom: 1.5rem; z-index: 1; max-width: calc(100% - 0.5rem);
  background: var(--accent); color: var(--bg); padding: 0.45rem 0.75rem;
  font-weight: 700; font-size: var(--size-meta); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0.5rem 1.25rem -0.5rem rgb(43 29 20 / 0.35);
}
.note--inline { position: static; display: inline-block; margin-top: 1.5rem; font-size: var(--size-body); box-shadow: none; }
.card-media .media { position: absolute; inset: 0; transition: transform 0.6s var(--ease-out); }
.card-link:hover .media, .card-link:focus-visible .media { transform: scale(1.04); }
.card-play { position: absolute; left: 0.75rem; bottom: 0.75rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: rgb(43 29 20 / 0.75); color: var(--bg); transition: opacity 0.3s; }
.card-link:hover .card-play, .card-link:focus-visible .card-play { opacity: 0; }
.card-title { font-weight: 700; line-height: 1.35; }
.card-meta { line-height: 1.45; }
.card-meta { font-size: var(--size-meta); color: var(--muted); }
.card--slot .card-media { border: 1px dashed rgb(43 29 20 / 0.3); display: grid; place-items: center; }
.card--slot .card-title, .card--slot .card-meta { color: var(--muted); }

/* Home: about */
.about { padding-top: var(--space-section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.facts { margin-block: 0 1rem; border-top: 1px solid var(--line); max-width: 42rem; }
.facts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.fact-when { color: var(--muted); font-size: var(--size-meta); font-variant-numeric: tabular-nums; }

/* Inner pages */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-head .lead { margin-top: 1.25rem; }
.page-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.topic {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: clamp(7rem, 12vw, 10rem); padding: 1.25rem;
  background: var(--surface); text-decoration: none; transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.topic-name { font-family: var(--serif); font-weight: 500; font-size: var(--size-section); line-height: 1.05; color: var(--accent); transition: color 0.25s var(--ease-out); }
.topic-count { font-size: var(--size-meta); color: var(--muted); white-space: nowrap; transition: color 0.25s var(--ease-out); }
.topic:hover, .topic:focus-visible { background: var(--accent); }
.topic:hover .topic-name, .topic:focus-visible .topic-name, .topic:hover .topic-count, .topic:focus-visible .topic-count { color: var(--bg); }
.topic-section { scroll-margin-top: 5rem; }
.topic-section + .topic-section { margin-top: var(--space-section); }
.work-grid.work-grid--fit { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, calc(50% - 0.5rem)), 1fr)); gap: 2.5rem 1rem; }
.empty-state { max-width: 36rem; }
.empty-state .lead { color: var(--text); margin-bottom: 0.5rem; }

/* Resume */
.resume-section + .resume-section { margin-top: var(--space-section); }
.section-rule { padding-bottom: 1.25rem; border-bottom: 1px solid var(--text); }
.entry { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.entry-when { padding-top: 0.25rem; }
.entry-org { margin-top: 0.25rem; color: var(--muted); }
.entry-detail { margin-top: 0.4rem; margin-bottom: 1rem; max-width: 65ch; color: var(--muted); }
.entry-detail:last-child { margin-bottom: 0; }
.entry-impact { margin-top: 1rem; max-width: 65ch; font-weight: 700; }
.points { margin: 1rem 0 0; padding-left: 1.1rem; max-width: 65ch; display: grid; gap: 0.5rem; }
.points li::marker { color: var(--muted); }
.skills { margin: 0; }
.skills dd { margin: 0; max-width: 65ch; }

/* Project detail */
.case { display: grid; grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-top: clamp(2rem, 5vw, 4rem); }
.case-media { position: sticky; top: 5rem; aspect-ratio: 9 / 16; background: var(--surface); overflow: hidden; }
.case-media:empty { display: none; }
.case-media--phone { border: 0.4rem solid #1e140d; border-radius: 1.6rem; box-shadow: 0 1.5rem 3rem -1.5rem rgb(43 29 20 / 0.4); }
/* Instagram's embed is a header, a 4:5 clip and a footer: size the frame to it so nothing clips. */
.case-media--ig { aspect-ratio: auto; container-type: inline-size; background: #fff; }
.case-media--ig .media { height: calc(13.75rem + 125cqi); }
.case-media--image { aspect-ratio: auto; background: none; position: static; }
/* Screens and documents get a wider media column than a phone. */
@media (min-width: 761px) { .case:has(.case-media--image) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.case-media--image .media { height: auto; }
.case:has(.case-media:empty) { grid-template-columns: minmax(0, 1fr); }
.case-body { max-width: 42rem; }
.case-body .lead { margin-top: 1.25rem; }
.crumb { margin-bottom: 1.5rem; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.case-section { margin-top: 2.5rem; }
.case-section .title { margin-bottom: 0.5rem; }
.case-body > .meta { margin-top: 2.5rem; }

/* Privacy */
.policy { max-width: 42rem; }
.policy .case-section p, .policy .points { color: var(--muted); }
.policy .case-section p + p, .policy .case-section p + .points, .policy .points + p { margin-top: 0.75rem; }
.policy .points { margin-top: 0.75rem; }

/* Contact */
.contact { padding-top: clamp(3rem, 8vw, 6rem); }
.contact .lead { margin-top: 1.25rem; }
.email-address {
  display: inline-block; margin-top: clamp(2.5rem, 6vw, 4rem); color: var(--accent);
  font-family: var(--serif); font-weight: 500; font-size: var(--size-section); line-height: 1.1;
  text-decoration-thickness: 2px; text-underline-offset: 0.15em;
}

@media (max-width: 760px) {
  .hero--media .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: stretch; aspect-ratio: 4 / 5; max-height: none; }
  .about { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .case { grid-template-columns: 1fr; }
  .case-media { position: static; max-width: 22rem; }
}
@media (max-width: 480px) {
  .nav-links a { font-size: var(--size-meta); }
  .work-grid.work-grid--fit { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr; }
  .topic { min-height: 0; flex-direction: row; align-items: baseline; gap: 1rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 0.45rem; }
  .facts li { grid-template-columns: 1fr; }
  .actions .button { flex: 1 1 auto; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --text: #000; --muted: #444; --line: #ccc; }
  body { font-size: 10.5pt; }
  .site-header, .site-footer, .skip-link, .print-button { display: none !important; }
  .page-head { padding-block: 0 1rem; }
  .display { font-size: 28pt; }
  .entry { break-inside: avoid; padding-block: 0.8rem; }
  .resume-section + .resume-section { margin-top: 1.5rem; }
  a { text-decoration: none; }
}
