:root {
  --paper: #f2eddf;
  --ink: #162e28;
  --signal: #f04b2f;
  --acid: #d7e23f;
  --line: rgba(22, 46, 40, 0.22);
  --mono: "DM Mono", monospace;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.grain { position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }

.masthead { height: 94px; padding: 0 4vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { color: inherit; text-decoration: none; font: 500 23px/1 var(--mono); letter-spacing: -1.5px; display: flex; align-items: center; gap: 12px; }
.brand > span:last-child > span { color: var(--signal); }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; display: flex; justify-content: center; gap: 3px; align-items: center; }
.brand-mark i { display: block; width: 2px; background: var(--ink); }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 17px; }.brand-mark i:nth-child(3) { height: 11px; }
.on-air { font: 500 10px/1 var(--mono); letter-spacing: 1.7px; display: flex; align-items: center; gap: 9px; }
.on-air span { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(240,75,47,.12); animation: pulse 1.8s infinite; }

main { min-height: calc(100vh - 152px); }
.hero { min-height: calc(100vh - 152px); padding: clamp(70px, 10vh, 130px) 8vw 50px; position: relative; background: radial-gradient(circle at 83% 42%, rgba(215,226,63,.45) 0 12%, transparent 12.5%), linear-gradient(112deg, transparent 0 64%, rgba(22,46,40,.055) 64% 64.3%, transparent 64.3%); }
.hero::after { content: "FM"; position: absolute; right: 6vw; bottom: -3vw; font: 600 clamp(150px, 25vw, 390px)/.7 var(--serif); letter-spacing: -30px; opacity: .045; pointer-events: none; }
.eyebrow, .question-kicker { font: 500 10px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 38px; height: 1px; margin-right: 12px; background: var(--signal); }
h1 { max-width: 920px; margin: 24px 0 22px; font: 400 clamp(76px, 11vw, 164px)/.77 var(--serif); letter-spacing: -.075em; }
h1 em { color: var(--signal); font-weight: 400; }
.dek { max-width: 570px; margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 42px; }
.primary-button { border: 0; background: var(--ink); color: var(--paper); padding: 19px 22px; min-width: 218px; display: flex; justify-content: space-between; cursor: pointer; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .6px; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-3px); background: var(--signal); }
.text-button { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 8px 0; cursor: pointer; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.play-mini { color: var(--signal); margin-right: 8px; }
.proof-line { position: absolute; right: 7vw; top: 28%; width: 240px; transform: rotate(5deg); padding-top: 12px; border-top: 3px solid var(--ink); }
.proof-line span { font: 500 44px/1 var(--mono); letter-spacing: -4px; }
.proof-line p { font: 400 16px/1.2 var(--serif); }

.setup { min-height: calc(100vh - 152px); display: grid; grid-template-columns: minmax(230px, 27vw) 1fr; }
.setup-rail { border-right: 1px solid var(--line); padding: 48px 3vw; display: flex; flex-direction: column; justify-content: space-between; background: rgba(22,46,40,.035); }
.setup-rail > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
.rail-label { font: 500 9px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.setup-rail strong { color: var(--signal); font: 400 17px/1 var(--mono); }
.setup-rail > p { max-width: 200px; font-size: 16px; line-height: 1.3; }
.frequency { display: flex; flex-direction: column; align-items: center; gap: 7px; font: 400 8px/1 var(--mono); opacity: .55; }
.frequency i { display: block; width: 1px; height: 21px; background: var(--ink); }
.setup-stage { position: relative; padding: 7vh 8vw 36px; display: flex; flex-direction: column; overflow: hidden; }
.voice-orb { position: absolute; width: 360px; height: 360px; right: -75px; top: -80px; border-radius: 50%; background: var(--acid); display: grid; place-items: center; opacity: .88; }
.voice-orb span { position: absolute; height: 90px; width: 2px; background: var(--ink); transform-origin: center; animation: sound 1s ease-in-out infinite alternate; }
.voice-orb span:nth-of-type(1) { transform: translateX(-21px); animation-delay: -.5s; }.voice-orb span:nth-of-type(2) { transform: translateX(-7px); animation-delay: -.1s; }.voice-orb span:nth-of-type(3) { transform: translateX(7px); animation-delay: -.8s; }.voice-orb span:nth-of-type(4) { transform: translateX(21px); animation-delay: -.25s; }
.voice-orb.listening { background: var(--signal); }
.email-orb span, .email-orb .orb-center { display: none; }
.email-orb::before { content: "@"; font: 400 150px/.8 var(--serif); letter-spacing: -.08em; color: var(--ink); transform: rotate(-7deg); }
.orb-center { width: 120px; height: 120px; border: 1px solid rgba(22,46,40,.3); border-radius: 50%; }
.question-wrap { position: relative; z-index: 1; max-width: 780px; }
.question-kicker { color: var(--signal); }
.question-wrap h2 { max-width: 680px; margin: 18px 0 13px; font: 400 clamp(42px, 5vw, 72px)/.98 var(--serif); letter-spacing: -.04em; }
.question-wrap > p { margin: 0 0 30px; font-size: 17px; opacity: .7; }
.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { border: 1px solid var(--ink); border-radius: 100px; background: transparent; padding: 12px 17px; cursor: pointer; font: 400 11px/1 var(--mono); transition: background .15s, color .15s, transform .15s; }
.choice:hover { transform: translateY(-2px); }.choice.selected { color: var(--paper); background: var(--ink); }.choice.other.selected { background: var(--signal); border-color: var(--signal); }
.voice-input { margin-top: 18px; }.voice-input input { width: min(720px, 100%); border: 0; border-bottom: 2px solid var(--ink); background: transparent; padding: 10px 2px; outline: none; font: 400 24px/1.25 var(--serif); }
.voice-input input::placeholder { color: color-mix(in srgb, var(--ink) 38%, transparent); font-size: .72em; }
.ranked-topics { display: grid; gap: 8px; width: min(620px, 100%); margin-top: 22px; }
.ranked-topic { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 12px; border: 1px solid var(--ink); padding: 12px 13px; background: color-mix(in srgb, var(--paper) 84%, white); font: 500 10px/1 var(--mono); cursor: grab; transition: transform .15s, background .15s, opacity .15s; }
.ranked-topic:hover { background: color-mix(in srgb, var(--acid) 22%, var(--paper)); transform: translateX(3px); }
.ranked-topic.dragging { opacity: .35; cursor: grabbing; }
.ranked-topic > i { color: color-mix(in srgb, var(--ink) 52%, transparent); font-style: normal; font-size: 17px; line-height: 1; }
.ranked-topic b { color: var(--signal); letter-spacing: .08em; }.ranked-topic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.ranked-topic button { width: 24px; height: 24px; border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 50%; background: transparent; cursor: pointer; line-height: 1; }.ranked-topic button:disabled { opacity: .2; cursor: default; }
.setup-controls { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; }
.listen-button { border: 0; background: none; display: flex; align-items: center; gap: 10px; cursor: pointer; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .7px; }
.mic-icon { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; position: relative; }.mic-icon::after { content: ""; width: 7px; height: 12px; border: 1px solid var(--ink); border-radius: 5px; position: absolute; left: 12px; top: 7px; }
.next-button { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 10px 0; cursor: pointer; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .8px; }.next-button:disabled { opacity: .25; cursor: default; }

.briefing { min-height: calc(100vh - 152px); padding: 7vh 8vw; display: grid; grid-template-columns: 1fr minmax(380px, 560px); align-items: center; gap: 8vw; }
.briefing h1 { font-size: clamp(66px, 8vw, 120px); }.briefing-copy .dek { max-width: 440px; }.edit-button { margin-top: 28px; }
.player-card { background: var(--ink); color: var(--paper); padding: 24px 28px 22px; box-shadow: 20px 20px 0 var(--acid); transform: rotate(1deg); }
.card-topline { display: flex; justify-content: space-between; font: 400 8px/1 var(--mono); letter-spacing: 1.4px; }
.record { width: 210px; aspect-ratio: 1; border-radius: 50%; margin: 28px auto 20px; display: grid; place-items: center; background: repeating-radial-gradient(circle, #142823 0 4px, #233d36 5px, #142823 7px); animation: spin 5s linear infinite; animation-play-state: paused; box-shadow: 0 0 0 1px rgba(242,237,223,.2); }
.player-card.playing .record { animation-play-state: running; }
.record-label { width: 80px; height: 80px; border-radius: 50%; background: var(--signal); color: var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--mono); }.record-label strong { font-size: 20px; }.record-label small { font-size: 7px; letter-spacing: 1px; }
.now-playing span { color: var(--acid); font: 400 8px/1 var(--mono); text-transform: uppercase; letter-spacing: 1.6px; }.now-playing h2 { margin: 8px 0 18px; font: 400 29px/1 var(--serif); }
.waveform { height: 38px; display: flex; gap: 3px; align-items: center; opacity: .7; }.waveform i { width: 2px; background: var(--paper); display: block; }
.player-controls { border-top: 1px solid rgba(242,237,223,.25); border-bottom: 1px solid rgba(242,237,223,.25); margin-top: 9px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; font: 400 9px/1 var(--mono); }.player-controls button { width: 48px; height: 48px; border: 1px solid var(--paper); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; padding-left: 4px; }.player-controls button:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); }
details { font: 400 10px/1.5 var(--mono); } summary { padding-top: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: .6px; }
.transcript-copy { margin-top: 16px; font: 400 15px/1.45 var(--serif); opacity: .84; }
.transcript-copy p { margin: 0 0 12px; }
.source-list { display: grid; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(242,237,223,.2); }
.source-list::before { content: "SOURCES"; color: var(--acid); font: 400 8px/1 var(--mono); letter-spacing: 1.5px; }
.source-list a { color: var(--paper); text-decoration-color: rgba(242,237,223,.35); text-underline-offset: 3px; font: 400 9px/1.35 var(--mono); }

/* Email-first release. The original player styles stay above for the later
   audio phase, while this card previews the actual morning reading experience. */
.email-card { background: #fffdf5; color: var(--ink); border: 1px solid var(--ink); box-shadow: 18px 18px 0 var(--acid); transform: rotate(.35deg); padding: 0; overflow: hidden; }
.email-card .card-topline { padding: 20px 24px; background: var(--ink); color: var(--paper); }
.email-card .email-heading { padding: 30px 30px 22px; border-bottom: 1px solid var(--line); }
.email-card .email-heading span { color: var(--signal); }
.email-card .email-heading h2 { margin: 12px 0 0; max-width: 460px; font-size: clamp(34px, 4vw, 50px); line-height: .98; letter-spacing: -.04em; }
.newscast-studio { margin: 0; padding: 24px 30px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: center; }
.newscast-studio span { color: var(--acid); font: 400 8px/1 var(--mono); letter-spacing: 1.5px; }
.newscast-studio h3 { margin: 8px 0 6px; font: 400 26px/1.05 var(--serif); }
.newscast-studio p { max-width: 390px; margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); font: 400 10px/1.45 var(--mono); }
.newscast-studio button { border: 0; background: var(--signal); color: white; min-width: 150px; min-height: 76px; padding: 14px; cursor: pointer; display: grid; place-items: center; gap: 6px; font: 500 9px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.newscast-studio button i { font: normal 21px/1 sans-serif; }.newscast-studio button:disabled { opacity: .5; cursor: wait; }
.newscast-studio audio { width: 100%; grid-column: 1 / -1; accent-color: var(--signal); }
.newscast-studio a { color: var(--paper); grid-column: 1 / -1; font: 500 9px/1 var(--mono); text-transform: uppercase; text-underline-offset: 4px; }
.email-card details { padding: 0 30px 30px; }
.email-card summary { padding: 20px 0 16px; border-bottom: 1px solid var(--ink); }
.email-card .transcript-copy { color: var(--ink); opacity: 1; font-size: 17px; line-height: 1.5; }
.email-card .transcript-copy p { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.email-card .source-list { border-top-color: var(--ink); }
.email-card .source-list::before { color: var(--signal); }
.email-card .source-list a { color: var(--ink); text-decoration-color: var(--line); font-size: 10px; }

footer { min-height: 58px; border-top: 1px solid var(--line); padding: 0 4vw; display: flex; justify-content: space-between; align-items: center; font: 400 8px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.toast { position: fixed; z-index: 20; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 17px; font: 400 10px/1 var(--mono); opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes sound { from { height: 20px; } to { height: 95px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 850px) {
  .proof-line { display: none; }.hero { padding-left: 6vw; padding-right: 6vw; }.hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .setup { grid-template-columns: 1fr; }.setup-rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 6vw; flex-direction: row; }.frequency { display: none; }.setup-rail > p { display: none; }.setup-stage { min-height: calc(100vh - 210px); padding: 7vh 6vw 30px; }.voice-orb { width: 210px; height: 210px; right: -85px; top: -45px; }.voice-orb span, .orb-center { display: none; }
  .briefing { grid-template-columns: 1fr; padding: 7vh 6vw 80px; }.briefing-copy h1 { margin-bottom: 20px; }.player-card { transform: none; box-shadow: 10px 10px 0 var(--acid); }
}
@media (max-width: 520px) { .masthead { height: 76px; }.on-air { font-size: 0; }.on-air span { display: block; } h1 { font-size: 70px; }.hero { min-height: calc(100vh - 134px); padding-top: 70px; }.question-wrap h2 { font-size: 42px; }.setup-controls { gap: 20px; }.listen-button b { display: none; }.player-card { padding: 20px; }.email-card { padding: 0; }.briefing { display: block; }.briefing-copy { margin-bottom: 50px; }.newscast-studio { grid-template-columns: 1fr; }.newscast-studio button { width: 100%; } }
