/* whylatch.com: one stylesheet, phone first (the build fills in the font files' type: woff2, or ttf without fontTools).
   Dark navy by default; the light theme is cream with navy text, picked by prefers-color-scheme. Amber is for the mark, accents and large text only (it fails contrast for body text). */
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("montserrat-600.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("montserrat-800.ttf") format("truetype"); }

:root {
  --navy: #102844; --amber: #EB9A15; --cream: #FFF7E8;
  --bg: var(--navy); --fg: var(--cream); --muted: #c9cfd8; --card: #17365c; --line: #2c4b72;
  --why: var(--amber); --focus: var(--amber); --btn-bg: var(--cream); --btn-fg: var(--navy);
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: var(--cream); --fg: var(--navy); --muted: #3b5372; --card: #fbe9c9; --line: #e6d3b0;
    --why: #9a5f00; --focus: #9a5f00; --btn-bg: var(--navy); --btn-fg: var(--cream); color-scheme: light; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--body); overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .name, .btn, .kicker { font-family: var(--head); }
h1 { font-weight: 800; font-size: clamp(1.75rem, 6vw, 2.75rem); line-height: 1.15; margin: 0.2em 0 0.5em; }
h2 { font-weight: 800; font-size: 1.25rem; margin: 1.8em 0 0.5em; }
h3 { font-weight: 600; font-size: 1.05rem; margin: 1.2em 0 0.4em; }
.small { font-size: 0.875rem; color: var(--muted); }
.skip { position: absolute; left: 16px; top: -48px; padding: 10px 14px; background: var(--btn-bg); color: var(--btn-fg); z-index: 9; }
.skip:focus { top: 8px; }

.site-head, main, .site-foot { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 14px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.mark { width: 40px; height: 40px; flex: none; }
.name { font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; }
.why { color: var(--why); }
.tagline { margin: 0; color: var(--muted); font-size: 0.95rem; }
main { padding-bottom: 32px; }
.site-foot { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 32px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-foot li a { display: inline-block; min-height: 44px; line-height: 44px; }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--fg); background: transparent; color: var(--fg); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.kicker { margin: 0; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--why); }
.kicker a { color: inherit; }

.frame { aspect-ratio: 9 / 16; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0a1a2e; }
.frame video, .frame iframe, .frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }

.hero { display: grid; gap: 20px; padding-top: 12px; }
.reel { display: grid; gap: 20px; padding-top: 12px; }
.answer { font-size: 1.15rem; }
.sources-list, .health-list, .fixes { padding-left: 1.3em; }
.sources-list li, .health-list li, .fixes li { margin: 0.45em 0; }
.claim, .authority { color: var(--muted); }
.platforms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.series-nav { display: grid; gap: 6px; margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); }
.series-nav a { min-height: 44px; display: flex; align-items: center; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2em; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card > a { display: flex; flex-direction: column; text-decoration: none; flex: 1; }
.card img, .no-cover { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #0a1a2e; }
.card .q { font-family: var(--head); font-weight: 800; font-size: 1rem; line-height: 1.25; padding: 10px 12px 2px; }
.card .meta { font-size: 0.8rem; color: var(--muted); padding: 0 12px 12px; }
.card-sources { display: block; padding: 0 12px 12px; min-height: 44px; font-size: 0.9rem; }
.card.big { grid-column: 1 / -1; }
.card.big img { aspect-ratio: 3 / 4; }
.series-row h2 a { text-decoration: none; }
.plain { max-width: 680px; }

@media (min-width: 760px) {
  .hero, .reel { grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; gap: 40px; }
  .reel-video { position: sticky; top: 16px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .card.big { grid-column: span 2; }
  .series-nav { grid-template-columns: 1fr 1fr; }
  .series-nav .more { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
