/* Giants on Film: the site's styles.
   Colours come only from the theme tokens in the :root block every page carries
   (gof_site/theme.py). Text uses --text, --text-body, --text-soft and --accent, and
   every element that holds text gets its colour from a rule here, never from the
   browser's default. Buttons are light text inside an amber outline. */

@font-face{font-family:"Anton";src:url(../fonts/Anton-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Mono";src:url(../fonts/SpaceMono-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Space Mono";src:url(../fonts/SpaceMono-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url(../fonts/SourceSerif4-VF.woff2) format("woff2");font-weight:200 900;font-style:normal;font-display:swap}
@font-face{font-family:"Source Serif 4";src:url(../fonts/SourceSerif4-Italic-VF.woff2) format("woff2");font-weight:200 900;font-style:italic;font-display:swap}

/* Base */
*,*::before,*::after{box-sizing:border-box}
html{color-scheme:dark;background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Source Serif 4",Georgia,serif;font-size:18px;line-height:1.55}
h1,h2,h3,h4,h5,h6{margin:0;color:var(--text);font-family:Anton,Impact,"Arial Narrow",sans-serif;font-weight:400;line-height:1.05;letter-spacing:.02em}
p,li,dd,blockquote{color:var(--text-body)}
dt,th,td,caption,label,legend,summary{color:var(--text)}
figcaption{color:var(--text-soft)}
span,strong,b,em,i,small,time,cite,q,code,abbr,sup,sub{color:inherit}
mark{background:rgba(232,163,58,.25);color:inherit}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--text)}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
button,input,select,textarea{color:var(--text);font:inherit}
::selection{background:rgba(232,163,58,.35);color:var(--text)}
img,video{max-width:100%;height:auto}

/* Labels, dates and buttons: Space Mono, upper case */
.label,.nav-link,.btn,.more,.card-label,.frame-tag,.frame-credit,.footer-note,.footer-nav a,.skip-link,.fig-label,.chapter-watch,.hero-meta,.yt-label,.chapter-time,.number-label,.breadcrumb,.archive-filter,.archive-kind,.archive-key,.archive-original,.archive-film,.model-help,.model-state,.model-start,.model-full{font-family:"Space Mono",ui-monospace,Menlo,Consolas,monospace;font-size:12px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase}
.label{margin:0;color:var(--accent)}

/* Page width */
.wrap{max-width:1280px;margin-left:auto;margin-right:auto;padding-left:40px;padding-right:40px}
.wrap-narrow{max-width:760px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}

.skip-link{position:absolute;left:-9999px;top:12px;z-index:10;padding:12px 18px;border:1px solid var(--accent);border-radius:4px;background:var(--bg-raised);color:var(--text)}
.skip-link:focus{left:12px}

/* Header, with the film's sprocket band under it */
.site-header{background:var(--bg)}
.header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;gap:12px;color:var(--text)}
.brand-icon{display:block;width:40px;height:40px;border-radius:50%}
.wordmark{font-family:Anton,Impact,"Arial Narrow",sans-serif;font-size:26px;line-height:1;letter-spacing:.06em;color:var(--text)}
.wordmark-accent{color:var(--accent)}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}
.nav-link{color:var(--text)}
.nav-link:hover,.nav-link[aria-current="page"]{color:var(--accent)}
.sprockets{display:flex;align-items:center;height:22px;background:var(--film)}
.sprockets::before{content:"";display:block;width:100%;height:9px;background:repeating-linear-gradient(90deg,rgba(214,194,156,.5) 0 16px,transparent 16px 40px)}

/* Buttons: light text in an amber outline */
.btn{display:inline-block;padding:13px 20px;border:1px solid var(--accent);border-radius:4px;background:rgba(232,163,58,.16);color:var(--text);font-weight:700;text-align:center}
.btn:hover,.btn:focus-visible{background:rgba(232,163,58,.3);color:var(--text)}
.btn-quiet{border-color:var(--text);background:transparent;font-weight:400}
.btn-quiet:hover,.btn-quiet:focus-visible{background:rgba(244,234,214,.1);color:var(--text)}
.btn-big{padding:16px 26px}
.actions{display:flex;flex-wrap:wrap;gap:14px}

/* Film frames: an image between two sprocket strips */
.frame{position:relative;display:block;padding:13px 0;border-radius:4px;background:var(--film)}
.frame::before,.frame::after{content:"";position:absolute;left:8px;right:8px;height:5px;background:repeating-linear-gradient(90deg,rgba(214,194,156,.45) 0 9px,transparent 9px 20px)}
.frame::before{top:4px}
.frame::after{bottom:4px}
.frame img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.frame-tag{position:absolute;top:21px;left:8px;padding:4px 8px;border-radius:3px;background:rgba(17,15,12,.85);color:var(--text);font-size:11px}
.frame-credit{position:absolute;right:8px;bottom:21px;max-width:calc(100% - 16px);padding:3px 7px;border-radius:3px;background:rgba(17,15,12,.85);color:var(--text);font-size:10px;letter-spacing:.06em}

/* The hero: the newest documentary on the home page, and the top of each story.
   Phones and tablets show the image first, 16:9 with nothing over it, its kind and
   credit chips under it, then the text panel on the page background. Wide screens
   (the min-width:1000px block below) let the image fill the hero and set the text
   panel over its left side; only the panel has a scrim, dark enough for 4.5:1 even
   over a white sky (tests/test_build_site.py checks it), and the rest of the image
   stays clear but for the chips, on their own 0.85 backing at the bottom right.
   A story whose image has its subject on the left sets "hero_side": "right" in
   meta.json, and its hero gets .hero-right: the same panel at the right edge of the
   content and the chips at the bottom left. Phones show both alike. */
.hero{position:relative}
.hero-media{position:relative}
.hero-img{display:block;width:100%;height:auto;max-width:none;aspect-ratio:16/9;object-fit:cover}
/* Under the image the chips' own backing is the page's colour; their text lines up
   with the panel's (each chip has 8 px of padding). */
.hero-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px 32px 0;color:var(--text)}
.hero-tags .frame-tag,.hero-tags .frame-credit{position:static;max-width:100%}
.hero-body{padding-top:22px}
.hero-text{display:flex;flex-direction:column;gap:18px}
.hero-title{max-width:900px;font-size:clamp(40px,6vw,64px);line-height:1.02;color:var(--text)}
.hero-dek{max-width:680px;margin:0;font-size:20px;line-height:1.5;color:var(--text-body)}
.hero-meta{margin:0;color:var(--text-soft)}
.hero-caption{max-width:680px;margin:0;font-size:15px;line-height:1.45;color:var(--text-soft)}
.hero .actions{margin-top:8px}
@media (min-width:1000px){
  .hero{display:flex;align-items:flex-end;min-height:clamp(600px,48vw,760px);background:var(--bg-raised)}
  .hero-media{position:absolute;inset:0}
  .hero-img{height:100%;aspect-ratio:auto}
  /* Right of the panel: the page's 1200 px of content less the panel and a gap.
     In max-width, 732 = the panel's 620 px + the .wrap's 2 x 40 px padding + a
     32 px gap, taken off the .wrap's width (the hero's, up to 1280 px): the chips
     get 1280 - 732 = 548 px on wide screens and 268 px at 1000 px. */
  .hero-tags{position:absolute;right:max(40px,calc((100% - 1200px) / 2));bottom:24px;justify-content:flex-end;max-width:calc(min(100%,1280px) - 732px);padding:0}
  .hero-body{position:relative;width:100%;padding-top:48px;padding-bottom:56px}
  .hero-text{max-width:620px;padding:30px 34px 34px;border-radius:4px;background:rgba(17,15,12,.85)}
  .hero-title{font-size:clamp(44px,4.2vw,60px)}
  .hero-dek{font-size:19px}
  /* .hero-right mirrors it: the panel at the right edge of the content column, the
     chips from its left edge. Their max-width above holds here too, so they end the
     same 32 px short of the panel: 732 = 620 panel + 2 x 40 padding + 32 gap. */
  .hero-right .hero-tags{left:max(40px,calc((100% - 1200px) / 2));right:auto;justify-content:flex-start}
  .hero-right .hero-text{margin-left:auto}
}

/* Rows and grids of story cards */
.section{padding-top:64px;padding-bottom:16px}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:28px}
.section-title{font-size:40px;color:var(--text)}
.more{color:var(--accent)}
.more:hover{color:var(--text)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:32px 24px}
.cards-large{grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr))}
.card{display:flex;flex-direction:column;gap:12px;min-width:0;color:var(--text)}
.card-label{color:var(--text-soft)}
.card-title{font-size:20px;line-height:1.3;font-weight:600;color:var(--text)}
.card:hover .card-title,.card:focus-visible .card-title{color:var(--accent)}

/* Home: the 3D teaser */
.teaser{margin-top:72px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--bg-raised)}
.teaser-inner{display:flex;flex-wrap:wrap;align-items:center;gap:40px;padding-top:64px;padding-bottom:64px}
.teaser-text{display:flex;flex:1 1 360px;flex-direction:column;gap:16px;min-width:0}
.teaser-title{font-size:48px;color:var(--text)}
.teaser-dek{margin:0;font-size:18px;line-height:1.55;color:var(--text-body)}
.teaser-frame{flex:1.4 1 480px;min-width:0}

/* Home: a new documentary every Monday */
.monday{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:80px;padding-bottom:80px;text-align:center}
.monday-icon{display:block;width:72px;height:72px;border-radius:50%}
.monday-title{max-width:820px;font-size:52px;color:var(--text)}
.monday-dek{max-width:640px;margin:0;font-size:19px;line-height:1.55;color:var(--text-body)}
.monday .btn{margin-top:8px}

/* List pages, the about page and the 404 page */
.page-head{display:flex;flex-direction:column;gap:14px;padding-top:56px;padding-bottom:8px}
.page-title{font-size:clamp(40px,6vw,72px);color:var(--text)}
.page-dek{max-width:680px;margin:0;font-size:19px;line-height:1.55;color:var(--text-body)}
.page-head .actions{margin-top:12px}
.about{padding-top:56px;padding-bottom:72px}
.about .actions{margin-top:8px}

/* Reading text: the about page here, and the story body */
.prose h1{margin:8px 0 28px;font-size:clamp(40px,6vw,64px);color:var(--text)}
.prose h2{margin:48px 0 12px;font-size:34px;color:var(--text)}
.prose h3{margin:32px 0 10px;font-size:26px;color:var(--text)}
.prose p,.prose li{font-size:20px;line-height:1.68;color:var(--text-body)}
.prose p{margin:0 0 22px}
.prose ul,.prose ol{margin:0 0 22px;padding-left:1.2em}
.prose li{margin-bottom:10px}
.prose strong{color:var(--text)}
.prose blockquote{margin:0 0 22px;padding-left:20px;border-left:2px solid var(--accent);color:var(--text-body)}
.prose a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.prose a:hover{color:var(--text)}

/* Story body (content.render_story_body): figures, pairs and chapter links.
   A body figure's img has no wrapper, so its film frame is drawn as backgrounds
   in its own padding rather than with pseudo-elements. */
.fig{margin:36px 0;color:var(--text-soft)}
.fig-3d,.fig-archive,.fig-diagram,.fig-photo{color:var(--text-soft)}
.fig img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;padding:13px 0;border-radius:4px;background:repeating-linear-gradient(90deg,rgba(214,194,156,.45) 0 9px,transparent 9px 20px) left 8px top 4px/calc(100% - 16px) 5px no-repeat,repeating-linear-gradient(90deg,rgba(214,194,156,.45) 0 9px,transparent 9px 20px) left 8px bottom 4px/calc(100% - 16px) 5px no-repeat,var(--film)}
.fig figcaption{margin-top:10px;font-size:15px;line-height:1.45;color:var(--text-soft)}
.fig-label{margin-right:6px;font-size:11px;color:var(--accent)}
.fig-caption{color:var(--text-soft)}
.fig-credit{font-style:italic;color:var(--text-soft)}
.fig-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:24px;margin:36px 0;color:var(--text-soft)}
.fig-pair .fig{margin:0}
.chapter-watch{margin:0 0 22px;color:var(--accent)}
.chapter-watch a{color:var(--accent);text-decoration:none}
.chapter-watch a:hover{color:var(--text)}

/* The click-to-load player (static/js/lite-yt.js) beside the chapter list */
.watch{display:flex;flex-wrap:wrap;align-items:flex-start;gap:28px;padding-top:40px}
.yt{flex:2 1 520px;min-width:0}
.yt-poster{position:relative;display:block;color:var(--text)}
.yt-play{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border:2px solid var(--accent);border-radius:50%;background:rgba(17,15,12,.85)}
.yt-play::after{content:"";position:absolute;left:31px;top:24px;border-style:solid;border-width:16px 0 16px 26px;border-color:transparent transparent transparent var(--text)}
.yt-poster:hover .yt-play,.yt-poster:focus-visible .yt-play{background:rgba(232,163,58,.3)}
.yt iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0}
/* Over the poster, one column: the hero's kind and credit chips at the top, the watch
   label at the bottom. Everything in it flows, so a long credit wraps and pushes the
   label down rather than running into it. */
.yt-over{position:absolute;inset:12px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.yt-tags{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:6px;width:100%}
.yt-tags .frame-tag,.yt-tags .frame-credit{position:static;max-width:100%}
.yt-label{max-width:100%;margin-top:auto;padding:6px 10px;border-radius:3px;background:rgba(17,15,12,.85);color:var(--text)}
.chapters{display:flex;flex:1 1 260px;flex-direction:column;gap:14px;min-width:0;padding:22px 24px;border:1px solid var(--line);border-radius:6px;background:var(--bg-raised)}
.archive-btn{margin-bottom:6px}
.chapter-list{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.chapter{color:var(--text)}
.chapter-link{display:flex;gap:14px;color:var(--text);font-size:17px;line-height:1.35}
.chapter-time{flex:none;min-width:52px;padding-top:2px;font-size:13px;color:var(--text-soft)}
.chapter-title{color:var(--text)}
.chapter-link:hover .chapter-title,.chapter-link:focus-visible .chapter-title{color:var(--accent)}

/* The story body: .prose, with figures a little wider than the text on big screens */
.story-body{padding-top:48px;padding-bottom:8px}
.story-body>h2:first-child{margin-top:0}
.prose .chapter-watch{font-size:12px;line-height:1.5}
@media (min-width:1000px){
  .story-body .fig,.story-body .fig-pair{margin-left:-120px;margin-right:-120px}
  .story-body .fig-pair .fig{margin-left:0;margin-right:0}
}

/* Numbers strip and timeline */
.numbers{padding-top:24px;padding-bottom:24px}
.numbers-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:2px;margin:0;padding:0;list-style:none}
.number{display:flex;flex-direction:column;gap:8px;padding:24px 22px;background:var(--bg-raised);color:var(--text)}
.number-value{font-family:Anton,Impact,"Arial Narrow",sans-serif;font-size:48px;line-height:1;letter-spacing:.02em;color:var(--accent)}
.number-label{color:var(--text-soft)}
.timeline{padding-top:48px;padding-bottom:16px}
.timeline-list{display:flex;flex-direction:column;gap:18px;margin:18px 0 0;padding:0 0 0 22px;border-left:2px solid var(--accent);list-style:none}
.timeline-item{font-size:18px;line-height:1.45;color:var(--text-body)}
.timeline-when{margin-right:12px;font-family:Anton,Impact,"Arial Narrow",sans-serif;font-size:24px;letter-spacing:.02em;color:var(--accent)}
.timeline-text{color:var(--text-body)}

/* The 3D block (partials/model.html): a <model-viewer> in a film frame, labelled a
   reconstruction. Its buttons stay hidden until static/js/model-states.js shows
   them; their own display would override the browser's rule for [hidden], hence
   the [hidden] rule. Every button is light text in an amber outline; the pressed
   state is light text on a tint of amber. "Load the 3D model" sits on the still or
   the model, which may be white, so it has a dark backing of its own. */
.model{padding-top:48px;padding-bottom:16px}
.model-panel{display:flex;flex-direction:column;gap:18px;padding:28px;border:1px solid var(--line);border-radius:6px;background:var(--bg-raised)}
.model-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.model-title{font-size:34px;color:var(--text)}
.model-help{margin:0;color:var(--text-soft)}
.model-stage{display:flex;flex-direction:column;gap:14px}
model-viewer{display:block;width:100%;height:auto;aspect-ratio:16/9;background-color:var(--film);--progress-bar-color:var(--accent)}
model-viewer:not(:defined){display:flex;align-items:center;justify-content:center}
.model-noscript{max-width:440px;margin:0;padding:0 20px;font-size:17px;line-height:1.5;text-align:center;color:var(--text-body)}
.model-frame .frame-tag{pointer-events:none}
.model-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-height:44px;padding:10px 18px;border:1px solid var(--accent);border-radius:4px;background:rgba(17,15,12,.85);color:var(--text);cursor:pointer}
.model-start:hover,.model-start:focus-visible{background:rgba(17,15,12,.95);border-color:var(--text)}
.model-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.model-states{display:flex;flex-wrap:wrap;gap:10px}
.model-state,.model-full{min-height:44px;padding:10px 16px;border:1px solid var(--accent);border-radius:4px;background:transparent;color:var(--text);cursor:pointer}
.model-state:hover,.model-full:hover{background:rgba(232,163,58,.12)}
.model-state[aria-pressed="true"]{background:rgba(232,163,58,.28);color:var(--text)}
.model-full{margin-left:auto}
.model-start[hidden],.model-states[hidden],.model-full[hidden]{display:none}
.model-stage:fullscreen{justify-content:center;padding:16px;background:var(--bg-raised)}
.model-stage:fullscreen .model-frame{flex:1 1 auto;min-height:0}
.model-stage:fullscreen model-viewer{height:100%;aspect-ratio:auto}

/* Shorts: small upright cards that open on YouTube */
.shorts-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr));gap:24px;margin:0;padding:0;list-style:none}
.shorts-item{color:var(--text)}
.short{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:220px;color:var(--text)}
.short-frame img{aspect-ratio:9/16}
.short-title{font-size:16px;line-height:1.35;font-weight:600;color:var(--text)}
.short:hover .short-title,.short:focus-visible .short-title{color:var(--accent)}

/* Subscribe and watch: the reader's next step, before the next stories */
.next-step{margin-top:64px}
.next-step-inner{display:flex;flex-direction:column;gap:14px;padding:40px;border:1px solid var(--line);border-radius:6px;background:var(--bg-raised)}
.next-step-title{font-size:40px;line-height:1.05;color:var(--text)}
.next-step-dek{max-width:680px;margin:0;font-size:18px;line-height:1.55;color:var(--text-body)}
.next-step .actions{margin-top:4px}

/* Sources: one numbered list of links, at the end */
.sources{padding-top:72px;padding-bottom:48px}
.sources-list{display:flex;flex-direction:column;gap:10px;margin:14px 0 0;padding-left:24px}
.source{font-size:16px;line-height:1.5;overflow-wrap:anywhere;color:var(--text-soft)}
.source-arrow{color:var(--text-soft)}

/* Archive page: the items behind a story. The filter buttons stay hidden until
   static/js/archive-filter.js shows them, so without JavaScript every item shows;
   their own display would override the browser's rule for [hidden], hence the
   [hidden] rule. A pressed button is light text on a tint of amber. */
.archive-head{gap:16px;padding-top:44px;padding-bottom:28px}
.breadcrumb{color:var(--text-soft)}
.breadcrumb-list{display:flex;flex-wrap:wrap;gap:6px 10px;margin:0;padding:0;list-style:none}
.breadcrumb-item{color:var(--text-soft)}
.breadcrumb-item+.breadcrumb-item::before{content:"/";margin-right:10px}
.archive{padding-bottom:72px}
.archive-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:28px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.archive-filters[hidden],.archive-item[hidden]{display:none}
.archive-filter{min-height:44px;padding:10px 16px;border:1px solid rgba(179,163,134,.45);border-radius:4px;background:transparent;color:var(--text);cursor:pointer}
.archive-filter:hover{border-color:var(--accent)}
.archive-filter[aria-pressed="true"]{border-color:var(--accent);background:rgba(232,163,58,.24);color:var(--text)}
.archive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:36px 26px}
.archive-item{display:flex;flex-direction:column;gap:10px;min-width:0;color:var(--text)}
.archive-media{display:flex;align-items:center;justify-content:center;height:250px;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:var(--bg-raised)}
.archive-media img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.archive-video{display:block;width:100%;height:100%}
.archive-tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:23px;color:var(--text-soft)}
.archive-kind{font-size:11px;color:var(--text-soft)}
.archive-key{padding:2px 7px;border:1px solid var(--accent);border-radius:3px;font-size:11px;color:var(--accent)}
.archive-title{font-family:"Source Serif 4",Georgia,serif;font-size:20px;line-height:1.3;font-weight:600;letter-spacing:0;color:var(--text)}
.archive-meta{margin:0;font-size:15px;line-height:1.45;color:var(--text-soft)}
.archive-rights{margin:0;font-size:14px;line-height:1.45;font-style:italic;color:var(--text-soft)}
.archive-links{display:flex;flex-wrap:wrap;gap:0 18px;margin:0;color:var(--text-soft)}
.archive-original,.archive-film{display:inline-block;padding:6px 0;font-size:11px}
.archive-original{color:var(--accent)}
.archive-original:hover{color:var(--text)}
.archive-film{color:var(--text)}
.archive-film:hover{color:var(--accent)}
.archive-note{max-width:760px;margin:44px 0 0;font-size:15px;line-height:1.5;color:var(--text-soft)}

/* Footer */
.site-footer{margin-top:24px;border-top:1px solid var(--line)}
.footer-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-top:28px;padding-bottom:40px}
.footer-note{margin:0;color:var(--text-soft)}
.footer-nav{display:flex;flex-wrap:wrap;gap:12px 24px}
.footer-nav a{color:var(--accent)}
.footer-nav a:hover{color:var(--text)}

/* Phones: narrower margins and smaller headings; rows already wrap */
@media (max-width:640px){
  .wrap{padding-left:18px;padding-right:18px}
  .wrap-narrow{padding-left:18px;padding-right:18px}
  .site-nav{gap:10px 20px}
  .hero-tags{padding:8px 10px 0}
  .hero-body{padding-top:18px}
  .hero-dek{font-size:18px}
  .section{padding-top:48px}
  .section-title,.teaser-title{font-size:32px}
  .teaser-inner{gap:28px;padding-top:40px;padding-bottom:40px}
  .monday{padding-top:56px;padding-bottom:56px}
  .monday-title{font-size:38px}
  .prose p,.prose li{font-size:18px}
  .watch{gap:20px;padding-top:28px}
  .chapters{padding:18px}
  .story-body{padding-top:36px}
  .number-value{font-size:40px}
  .model{padding-top:36px}
  .model-panel{gap:14px;padding:18px 14px}
  .model-title{font-size:28px}
  .next-step-inner{padding:24px 20px}
  .next-step-title{font-size:32px}
  .yt-play{width:64px;height:64px;margin:-32px 0 0 -32px}
  .yt-play::after{left:23px;top:17px;border-width:13px 0 13px 21px}
}
