/* shainashultz.com: editorial, minimal. One stylesheet for every page. */
:root {
  --ink: #16181D;
  --ink-2: #3D434C;
  --muted: #5B616B;
  --line: #E4E7EB;
  --line-2: #D5DAE0;
  --surface: #F4F6F8;
  --placeholder: #E6EBF0;
  --accent: #1F5F7A;
  --accent-hover: #123E51;
  --bg: #FFFFFF;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --read: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.nav a.resume { color: var(--accent); }

/* Type */
.eyebrow { margin: 0 0 16px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.eyebrow.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.display { margin: 0; max-width: 900px; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; }
.title { margin: 0; max-width: 920px; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.lede { margin: 24px 0 0; max-width: 720px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.section-title { margin: 0 0 16px; font-size: 34px; line-height: 1.2; }
.meta { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.caption { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
p { margin: 0 0 18px; }

/* Buttons */
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-secondary { color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-light { color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Sections */
.hero { padding: 112px 0 96px; }
.page-hero { padding: 88px 0 56px; }
.section { padding: 0 0 96px; }
.band { border-top: 1px solid var(--line); padding: 72px 0; }
.back { font-size: 15px; font-weight: 500; text-decoration: none; }

/* Cards */
.feature { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 40px; background: var(--surface); border-radius: 8px; color: var(--ink); text-decoration: none; }
.feature > * { flex: 1 1 420px; min-width: 0; }
.feature h3 { margin: 0; font-size: 38px; line-height: 1.15; }
.feature:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.more { margin: 24px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.grid-2 { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; }
.card h3 { margin: 0; font-size: 28px; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-2); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.thumb { border-radius: 6px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.card .placeholder { min-height: 0; aspect-ratio: 16 / 10; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.mini { padding: 24px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.mini:hover { border-color: var(--ink); }
.mini strong { display: block; font-weight: 600; }
.mini span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Lab band */
.dark { background: var(--ink); color: #fff; }
.dark .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.dark h2 { margin: 0; font-size: 36px; line-height: 1.2; }
.dark p { margin: 12px 0 0; max-width: 560px; color: #C9CED6; }
.dark :focus-visible { outline-color: #fff; }

/* Facts */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts div { padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }

/* Figures */
figure { margin: 0; }
.figure { margin: 48px auto 72px; }
.shot { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.shot video { display: block; width: 100%; height: auto; }
.scroll-shot { max-height: 760px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.placeholder { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 24px; background: var(--placeholder); border: 1px dashed #A9B3BF; border-radius: 8px; color: var(--ink-2); font-size: 15px; text-align: center; }
.placeholder.tall { min-height: 480px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.steps .placeholder { min-height: 220px; font-size: 14px; }
.step-label { margin: 14px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.step-label.muted { color: var(--muted); }
.steps p { font-size: 16px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 0 0 24px; }
.split > div { padding: 24px; background: var(--surface); border-radius: 6px; font-size: 16px; }
.split p { margin: 0; }
ul.clean, ol.clean { margin: 0 0 18px; padding-left: 22px; }
ul.clean li, ol.clean li { margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }

/* About */
.about-hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding: 96px 0 80px; }
.about-hero .portrait { flex: 0 1 340px; min-width: 0; border-radius: 6px; overflow: hidden; }
.about-hero .copy { flex: 999 1 520px; min-width: 0; }
.about-hero h1 { margin: 0 0 28px; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.timeline { display: flex; flex-direction: column; gap: 22px; font-size: 16px; }
.timeline p { margin: 0; }
.timeline .when { margin-top: 2px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--surface); }
.site-footer .wrap { padding-top: 96px; padding-bottom: 40px; }
.cta { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 72px; border-bottom: 1px solid var(--line-2); }
.cta > div:first-child { flex: 1 1 520px; min-width: 0; }
.cta h2 { margin: 0; max-width: 640px; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.12; }
.cta .actions { margin-top: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding: 48px 0; }
.footer-cols .name { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.footer-cols .tag { margin: 8px 0 0; max-width: 260px; font-size: 15px; color: var(--muted); }
.footer-cols nav, .footer-cols .contact { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-cols a { color: var(--ink); text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.copyright { margin: 0; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap, .read { padding: 0 20px; }
  .hero { padding: 64px 0 64px; }
  .page-hero { padding: 56px 0 40px; }
  .feature { padding: 24px; gap: 28px; }
  .feature h3 { font-size: 30px; }
  .nav { gap: 18px; }
  .about-hero { padding: 56px 0; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mini span span { display: inline; margin: 0; }

/* Lab: every tile shares one frame so rows line up, whatever the source size */
.lab-gallery, .cc-gallery { align-items: start; }
.lab-gallery .shot, .cc-gallery .shot { aspect-ratio: 16 / 10; background: #0F1114; }
.cc-gallery { margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cc-gallery .shot { aspect-ratio: 1 / 1; }
.lab-gallery .shot img, .lab-gallery .shot video,
.cc-gallery .shot img, .cc-gallery .shot video { width: 100%; height: 100%; object-fit: cover; }
.lab-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.cc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) {
  .lab-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cc-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .lab-gallery { grid-template-columns: 1fr; } }
