/* Now You Know Daily. One stylesheet, self-hosted fonts, no JavaScript.
   Type: Source Serif 4 (headlines + reading text) and Libre Franklin (labels, datelines, navigation).
   Both SIL OFL, Latin subset, files in /fonts/ (licences alongside). Share images use the same fonts, see tools/og.py.
   Brand colours (keep in sync with tools/og.py): ink, paper, accent red, gold. */
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/source-serif-4-regular.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/source-serif-4-italic.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/source-serif-4-bold.woff2) format("woff2")}
@font-face{font-family:"Libre Franklin";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/libre-franklin-var.woff2) format("woff2")}
/* Stand-ins shown for the split second before the real fonts arrive, scaled to the same width so the text does not jump */
@font-face{font-family:"NYK Serif Fallback";font-weight:400;src:local("Georgia");size-adjust:102.6%}
@font-face{font-family:"NYK Serif Fallback";font-weight:700;src:local("Georgia Bold"),local("Georgia-Bold");size-adjust:88%}
@font-face{font-family:"NYK Sans Fallback";src:local("Arial"),local("ArialMT");size-adjust:104%}
:root{
  --ink:#1d2433;--bg:#fffdf8;--paper:#fff;--fg:#20242c;--muted:#535965;
  --accent:#b3361f;--gold:#f2b632;--link:#0b4f9c;
  --rule:#ddd5c3;--rule-strong:#cdc3ad;--tint:#f4eee1;
  --sans:"Libre Franklin","NYK Sans Fallback","Helvetica Neue",Arial,sans-serif;
  --serif:"Source Serif 4","NYK Serif Fallback",Georgia,"Times New Roman","Noto Serif",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:20px/1.65 var(--serif);overflow-wrap:break-word}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.16em}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:3px solid #b45f06;outline-offset:2px}
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:0;background:#fff;color:#000;padding:8px 12px;z-index:10}
.skip:focus{left:8px;top:8px}

/* ---------- Masthead: nameplate, dateline, section nav ---------- */
.masthead{background:var(--paper)}
.mast-inner{display:flex;justify-content:center;padding-top:24px;padding-bottom:14px}
.logo{display:flex;align-items:center;gap:18px;color:var(--ink);text-decoration:none}
.logo svg{width:60px;height:60px;flex:none}
.wm{display:flex;flex-direction:column;line-height:1;padding-left:18px;border-left:1px solid var(--rule-strong)}
.wm-name{font:700 2.7rem/1 var(--serif);letter-spacing:-.02em;padding-bottom:8px;border-bottom:4px solid var(--accent)}
.dateline{display:grid;grid-template-columns:1fr auto 1fr;align-items:baseline;gap:16px;margin:0;padding:9px 0 10px;border-top:1px solid var(--rule);font:.8rem/1.3 var(--sans);color:var(--muted)}
.dl-date{color:var(--ink);font-weight:600}
.dateline em{font:italic .95rem/1.3 var(--serif)}
.dateline a{justify-self:end;color:var(--ink)}
.secnav{background:var(--paper);border-top:1px solid var(--rule-strong);border-bottom:1px solid var(--rule-strong)}
.secnav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:0 32px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;font:600 .95rem/1.3 var(--sans)}
.secnav ul::-webkit-scrollbar{display:none}
.secnav a{display:inline-block;padding:12px 0 11px;color:var(--ink);text-decoration:none}
.secnav a:hover{text-decoration:underline;text-underline-offset:.3em}
.secnav a[aria-current]{color:var(--accent);box-shadow:inset 0 -3px var(--accent)}

/* ---------- Shared type ---------- */
main.wrap{padding-top:32px;padding-bottom:72px}
h1{font:700 2.5rem/1.12 var(--serif);letter-spacing:-.015em;margin:.2em 0 .4em;color:var(--ink)}
h2{font:700 1.55rem/1.22 var(--serif);letter-spacing:-.008em;margin:1.7em 0 .5em;color:var(--ink)}
h3{font:700 1.3rem/1.22 var(--serif);letter-spacing:-.005em;margin:.3em 0;color:var(--ink)}
.kicker{margin:0;font:700 .8rem/1.3 var(--sans)}
.kicker a{color:var(--accent);text-decoration:none}
.kicker a:hover{text-decoration:underline}
.dek{font-size:1.15rem;line-height:1.45;color:var(--muted);margin:.2em 0 .6em}
.meta{font:.8rem/1.45 var(--sans);color:var(--muted);margin:.4em 0 1em}
.small{font-size:.85rem;color:var(--muted)}
.lead h1 a,.card h3 a,.toplist a,.briefs a,.readnext a{color:var(--ink);text-decoration:none}
.lead h1 a:hover,.card h3 a:hover,.toplist a:hover .tl-title,.briefs a:hover .tl-title,.readnext a:hover .rn-title{text-decoration:underline;text-decoration-thickness:2px}

/* ---------- Home: lead story + more top stories ---------- */
.top{display:grid;gap:32px}
.lead-img{display:block;margin-bottom:14px}
.lead-img img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--tint)}
.lead h1{font-size:2.75rem;line-height:1.08;margin:.15em 0 .3em}
.lead .dek{font-size:1.2rem;max-width:36em;color:var(--fg)}
.lead .meta{margin-bottom:0}
.toplist h2,.rail-h{margin:0;padding:0 0 8px;font:700 .95rem/1.3 var(--sans);letter-spacing:0;color:var(--ink);border-bottom:1px solid var(--ink)}
.toplist ol,.briefs{list-style:none;margin:0;padding:0}
.toplist li,.briefs li{border-bottom:1px solid var(--rule)}
.toplist li:last-child,.briefs li:last-child{border-bottom:0}
.toplist a,.briefs a{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:14px;align-items:start;padding:15px 0 16px}
.tl-cat{display:block;font:700 .8rem/1.3 var(--sans);color:var(--accent);margin-bottom:3px}
.tl-title{display:block;font:700 1.1rem/1.25 var(--serif);letter-spacing:-.005em}
.tl-date{display:block;font:.8rem/1.4 var(--sans);color:var(--muted);margin-top:6px}
.tl-img{width:96px;height:72px;object-fit:cover;background:var(--tint)}
@media (min-width:940px){
  .top{grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:0}
  .lead{padding-right:32px}
  .toplist{border-left:1px solid var(--rule);padding-left:32px}
}

/* ---------- Home sections: one bigger story, the rest as a ruled list ---------- */
.sec{margin-top:52px}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:2px solid var(--ink);padding-top:10px;margin-bottom:18px}
.sec-head h2{margin:0;font-size:1.5rem}
.sec-head h2 a{color:var(--ink);text-decoration:none}
.sec-head h2 a:hover{text-decoration:underline}
.sec-more{font:.85rem/1.3 var(--sans);white-space:nowrap;color:var(--ink)}
.sec-body{display:grid;gap:8px}
.sec-body .kicker,.grid-front .kicker{display:none}   /* the section name is already in the heading above */
.sec-foot{display:none;margin:4px 0 0;padding-top:12px;border-top:1px solid var(--rule);font:600 .85rem/1.3 var(--sans)}
.briefs{border-top:1px solid var(--rule)}
@media (min-width:800px){
  .sec-body{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:0}
  .sec-body>.card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:24px;align-content:start;padding-right:32px}
  .sec-body>.card>*{grid-column:2}
  .sec-body>.card .card-img{grid-column:1;grid-row:1/span 3;margin:0}
  .sec-body>.card h3{font-size:1.6rem;line-height:1.15;margin-top:-.12em}
  .sec-body>.card:only-child{grid-column:1/-1;padding-right:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .briefs{border-top:0;border-left:1px solid var(--rule);padding-left:32px}
  .briefs li:first-child a{padding-top:0}
}

/* ---------- Cards and grids ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:36px 32px}
.card{min-width:0}
.card-img{display:block;margin-bottom:10px}
.card-img img{width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--tint)}
.card h3{margin:.2em 0 .3em}
.card .dek{font-size:1rem;line-height:1.45;margin:0 0 .4em}
.card .meta{margin:0}
.cat-list{list-style:none;margin:0;padding:0;columns:2 320px;column-gap:48px}
.cat-list li{break-inside:avoid;border-bottom:1px solid var(--rule)}
.cat-list a{display:block;padding:12px 0 13px;color:var(--muted);text-decoration:none;font:.85rem/1.45 var(--sans)}
.cat-list strong{display:block;font:700 1.15rem/1.3 var(--serif);color:var(--ink)}
.cat-list a:hover strong{text-decoration:underline}
.colophon{margin:52px 0 0;padding-top:14px;border-top:1px solid var(--rule-strong);font:.85rem/1.55 var(--sans);color:var(--muted);max-width:44em}

/* ---------- Section (category) page ---------- */
.page-head{border-bottom:2px solid var(--ink);padding-bottom:14px;margin-bottom:28px}
.page-head h1{margin:0 0 .15em;font-size:2.9rem}
.page-head .dek{margin:0;max-width:38em}
@media (min-width:800px){
  .grid-front>.card:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:32px;align-content:start;padding-bottom:32px;border-bottom:1px solid var(--rule)}
  .grid-front>.card:first-child>*{grid-column:2}
  .grid-front>.card:first-child .card-img{grid-column:1;grid-row:1/span 3;margin:0}
  .grid-front>.card:first-child h3{font-size:2.1rem;line-height:1.1;margin-top:-.1em}
  .grid-front>.card:first-child .dek{font-size:1.15rem}
}

/* ---------- Article ---------- */
.article{max-width:700px;margin:0 auto}
.article h1{font-size:2.8rem;line-height:1.08;margin:.2em 0 .35em}
.article>header .dek{font-size:1.3rem;line-height:1.4;margin:0 0 .9em}
.byline{margin:0 0 22px;font:.85rem/1.5 var(--sans);color:var(--muted)}
.byline p{margin:0}
.by-name{font-weight:700;color:var(--ink)}
.byline a{color:inherit}
.hero{margin:0 0 1.4em}
.hero img{width:100%;background:var(--tint)}
figcaption{font:.8rem/1.45 var(--sans);color:var(--muted);margin-top:8px}
.credit{display:block;font-size:.8rem}
figcaption a{color:inherit}
.note{border-top:1px solid var(--rule-strong);border-bottom:1px solid var(--rule-strong);padding:0;margin:0 0 1.5em;font:.85rem/1.55 var(--sans);color:var(--muted)}
.note p{margin:.75em 0}
.prose p,.prose ul,.prose ol{margin:0 0 1.15em}
.prose ul,.prose ol{padding-left:1.2em}
.prose li{margin-bottom:.45em}
.prose h2{margin:1.7em 0 .5em}
figure.inline{margin:1.8em 0}
figure.inline img{width:100%;background:var(--tint)}
.readnext{margin:2em 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--rule-strong)}
.readnext a{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:16px;align-items:center;padding:14px 0}
.readnext img{order:2;width:112px;aspect-ratio:4/3;object-fit:cover;background:var(--tint)}
.rn-label{display:block;font:700 .8rem/1.3 var(--sans);color:var(--accent);margin-bottom:3px}
.rn-title{display:block;font:700 1.15rem/1.25 var(--serif)}
.questions{border-top:1px solid var(--rule-strong);padding:18px 0 0;margin:2.4em 0 0}
.questions h2{margin:0 0 .5em;font-size:1.35rem}
.questions ul{margin:0 0 .8em;padding-left:1.2em}
.questions li{margin-bottom:.5em}
.trust{border-top:2px solid var(--ink);padding:14px 0 0;margin:2.2em 0;scroll-margin-top:16px}
.trust h2{font-size:1.35rem;margin:0 0 .4em}
.trust .trust-lede{font:.85rem/1.55 var(--sans);color:var(--muted);margin:0 0 1em}
.trust ol{margin:0 0 1em;padding:0 0 0 1.5em;font:.85rem/1.5 var(--sans);color:var(--muted)}
.trust li{padding:0 0 9px 2px}
.trust li a{font-weight:600}
.trust .small{margin:0;font-family:var(--sans)}
.keep{margin:60px 0 0}
.keep h2{border-top:2px solid var(--ink);padding-top:10px;margin:0 0 18px;font-size:1.5rem}

/* Ad slots: take no space while empty; once an ad network fills one it gets clear air above and below. */
.ad-slot{margin:0;clear:both}
.ad-slot:not(:empty){margin:2.2em 0;text-align:center}

/* ---------- Plain pages (about, privacy, contact, 404) ---------- */
.page{max-width:700px;margin:0 auto}
.page h1{padding-bottom:.4em;border-bottom:2px solid var(--ink);margin-bottom:.7em}
.notfound{padding:16px 0}
.notfound h1{border:0;padding:0;margin-bottom:.3em}
.notfound .dek{margin:0 0 1.2em;max-width:26em}
.btn{display:inline-block;background:var(--ink);color:#fff;font:600 1rem/1.2 var(--sans);padding:14px 22px;border-radius:2px;text-decoration:none}
.btn:hover{background:#2b3550}
.notfound .cat-list{margin-top:36px;border-top:1px solid var(--ink)}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);color:#dfe3ea;padding:40px 0 26px;font:.85rem/1.6 var(--sans)}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.foot-grid{display:grid;gap:32px 48px;grid-template-columns:1.6fr 1fr 1fr}
.foot-about{max-width:27em}
.foot-brand{display:flex;align-items:center;gap:10px;font:700 1.4rem/1.2 var(--serif);color:#fff;margin:0 0 .5em}
.foot-brand svg{width:40px;height:40px;flex:none;margin-left:-4px}
.foot-about p{margin:0}
.foot-h{margin:8px 0 6px;font:700 .85rem/1.3 var(--sans);color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li a{display:inline-block;padding:4px 0}
.foot-base{margin:30px 0 0;padding-top:14px;border-top:1px solid #3a4359;font-size:.8rem;color:#bfc6d3}

/* ---------- Phones ---------- */
@media (max-width:700px){
  body{font-size:19px}
  .wrap{padding:0 16px}
  .mast-inner{padding-top:14px;padding-bottom:10px}
  .logo{gap:11px}
  .wm{padding-left:11px}
  .wm-name{border-bottom-width:3px;padding-bottom:6px}
  .logo svg{width:46px;height:46px}
  .wm-name{font-size:1.95rem}
  .dateline{grid-template-columns:1fr auto;padding:7px 0 8px}
  .dateline em{display:none}
  .secnav ul{justify-content:flex-start;gap:0 24px}
  .secnav .wrap{padding-right:0}
  .secnav li:last-child{padding-right:16px}
  main.wrap{padding-top:20px;padding-bottom:48px}
  h1,.article h1,.lead h1,.page-head h1{font-size:1.95rem;line-height:1.12}
  h2,.prose h2{font-size:1.4rem}
  .lead-img,.article .hero img{margin-left:-16px;margin-right:-16px}
  .lead-img{margin-top:-20px}
  .article .hero img{width:calc(100% + 32px);max-width:none}
  .lead .dek,.article>header .dek{font-size:1.12rem}
  .top{gap:28px}
  .sec{margin-top:40px}
  .sec-head h2,.keep h2{font-size:1.4rem}
  .sec-head .sec-more{display:none}
  .sec-foot{display:block}
  .grid{gap:30px}
  .page-head{margin-bottom:22px}
  .colophon{margin-top:40px}
  .readnext a{grid-template-columns:minmax(0,1fr) 96px;gap:14px}
  .readnext img{width:96px}
  .keep{margin-top:44px}
  .site-footer{padding-top:32px}
  .foot-grid{grid-template-columns:1fr 1fr;gap:24px 20px}
  .foot-about{grid-column:1/-1}
  .site-footer li a{padding:8px 0}
}
@media (max-width:360px){
  .wm-name{font-size:1.65rem}
  .logo svg{width:40px;height:40px}
  .toplist a,.briefs a{grid-template-columns:minmax(0,1fr) 80px}
  .tl-img{width:80px;height:60px}
}
@media print{.dateline a,.secnav,.ad-slot,.skip,.readnext,.keep,.site-footer ul,.foot-h{display:none}}
