/* the public Daily brief (/brief/<date>, /week/<date>): the app's Daily brief screen on the web */
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url("fonts/geist_regular.woff2") format("woff2"); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url("fonts/geist_semibold.woff2") format("woff2"); }
@font-face { font-family: Geist; font-weight: 700; font-display: swap; src: url("fonts/geist_bold.woff2") format("woff2"); }
@font-face { font-family: GeistMono; font-display: swap; src: url("fonts/geist_mono_medium.woff2") format("woff2"); }

/* the app's CnColors */
:root {
  --bg: #0E1012; --surface: #16191C; --raised: #1E2226; --border: #22272B; --divider: #1F2327;
  --text: #EDEFF1; --text2: #C9CFD4; --muted: #98A1A9; --faint: #6E777F;
  --accent: #3CC4BA; --accent-bg: #12302E; --on-accent: #0E1012;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #E9ECEF; --surface: #FFFFFF; --raised: #F1F3F5; --border: #D5DADF; --divider: #D9DEE2;
    --text: #101315; --text2: #384047; --muted: #5D666E; --faint: #8A939B;
    --accent: #138A82; --accent-bg: #DDF3F1; --on-accent: #FFFFFF;
  }
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: GeistMono, ui-monospace, monospace; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px 40px; }

/* top bar like the app: N, then "Daily brief · THU 22 OCT" */
.bar { position: sticky; top: 0; background: var(--bg); border-bottom: 2px solid var(--divider); z-index: 2; }
.bar-in { max-width: 640px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 10px; }
.bar .home img { display: block; width: 28px; height: 28px; border-radius: 7px; }
.bar .t { font-weight: 600; font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .t .dot { color: var(--muted); }
.bar .t .d { color: var(--accent); font-size: 13px; }
.bar .get { font-weight: 600; font-size: 14px; color: var(--on-accent); background: var(--accent); padding: 8px 14px; border-radius: 18px; white-space: nowrap; }

.head { padding: 24px 0 14px; }
.head h1 { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; }
.head p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 24px; }

.label { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.label .n { color: var(--accent); font-size: 15px; }

/* 01: big cover, like the app's TopPick */
.top { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.top .cover { aspect-ratio: 16/9; background: var(--raised) center/cover no-repeat; }
.top .body { padding: 16px; display: grid; gap: 8px; }
.top h2 { font-size: 19px; line-height: 25px; font-weight: 600; letter-spacing: -.01em; }

/* 02-05: thumbnail rows, like PickRow */
.row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.row:last-child { border-bottom: 0; }
.row .thumb { flex: 0 0 84px; height: 84px; border-radius: 10px; background: var(--raised) center/cover no-repeat; }
.row .body { display: grid; gap: 5px; align-content: start; min-width: 0; }
.row h2 { font-size: 15px; line-height: 20px; font-weight: 600; }

/* the free first TL;DR point */
.tldr { font-size: 14px; line-height: 21px; color: var(--text2); }
.tldr b { font-family: GeistMono, monospace; font-weight: 400; font-size: 11px; color: var(--accent); background: var(--accent-bg); padding: 2px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.read { font-size: 13px; color: var(--accent); font-weight: 600; }
.top:hover h2, .row:hover h2 { text-decoration: underline; text-underline-offset: 3px; }

.list { margin-top: 10px; }

/* the call to the app, after the stories */
.cta { margin-top: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 1fr 150px; gap: 18px; align-items: center; }
.cta h3 { font-size: 21px; line-height: 27px; font-weight: 700; letter-spacing: -.01em; }
.cta p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 22px; }
.cta .badge { display: inline-block; margin-top: 16px; }
.cta .badge img { height: 48px; display: block; }
.cta .shot { width: 150px; border-radius: 18px; border: 1px solid var(--border); display: block; }
@media (max-width: 480px) { .cta { grid-template-columns: 1fr; } .cta .shot { display: none; } }

.days { display: flex; justify-content: space-between; margin-top: 22px; font-size: 13px; color: var(--muted); }
.days a { color: var(--accent); }
.foot { margin-top: 30px; font-size: 12px; color: var(--faint); text-align: center; line-height: 18px; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* the landing's cookie banner (landing.js) */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; font-weight: 600; font-size: 14px; border: 0; font-family: inherit; cursor: pointer; }
.btn-teal { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--border); background: none; color: var(--text); }
.consent { position: fixed; z-index: 10; left: 20px; right: 20px; bottom: 20px; max-width: 560px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.4); font-size: 14px; }
.consent[hidden] { display: none; }
.consent p { color: var(--muted); }
.consent div { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent div .btn { flex: 1; justify-content: center; }
}
