:root {
  /* Layout: brand header, then a two-column feed (posts left, show info right) that stacks on phones */
  --navy: #1b2a47;
  --navy-deep: #13203a;
  --cream: #f2efe3;
  --ink: #1b2a47;
  --muted: #5e6880;
  --line: #ddd8c6;
  --amber: #f7b24b;
  --flame: linear-gradient(180deg, #f7b24b 0%, #ee5a4a 50%, #e3166b 100%);
  --flame-flat: #e8345e;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--navy); color: var(--cream); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.masthead { border-bottom: 1px solid rgba(242,239,227,.12); background: var(--navy-deep); }
.masthead-inner { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 8px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-size: 13px; letter-spacing: .12em; color: rgba(242,239,227,.65); font-weight: 600; }
.nav { display: flex; gap: 16px; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; }

.hero { max-width: 1120px; margin: 0 auto; padding: 36px 20px 8px; display: grid; gap: 10px; }
.hero h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 6vw, 60px); line-height: 1.02; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; max-width: 60ch; color: rgba(242,239,227,.8); font-size: 18px; }
.cadence { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--amber); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.section-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--amber); margin: 0 0 12px; }
.stack { display: grid; gap: 32px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters button { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; background: transparent; color: var(--cream); border: 1px solid rgba(242,239,227,.3); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.feed { display: grid; gap: 16px; }
.post { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 20px 22px; display: grid; gap: 10px; position: relative; overflow: hidden; }
.post[hidden] { display: none; }
.post::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--navy); }
.post.episode::before { background: var(--flame); }
.post.clip::before { background: var(--amber); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.tag { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; padding: 3px 9px; border-radius: 4px; background: var(--navy); color: var(--cream); }
.episode .tag { background: var(--flame-flat); }
.clip .tag { background: var(--amber); color: var(--navy); }
.post h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0; text-wrap: balance; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post p { margin: 0; max-width: 65ch; }
.post blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--flame-flat); font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.25; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.topics li { font-size: 14px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.post-feature { grid-template-columns: 140px minmax(0,1fr); column-gap: 20px; }
.post-feature .art { grid-row: span 6; border-radius: 10px; width: 140px; height: 140px; }
.post-feature > :not(.art) { grid-column: 2; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: var(--cream); border: 1px solid var(--navy); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.flame { background: var(--flame-flat); border-color: var(--flame-flat); color: #fff; }
.btn:hover { opacity: .88; }

.tiktok-box { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 16px; display: grid; justify-items: center; }
.tiktok-box blockquote { margin: 0 !important; width: 100%; }

aside { display: grid; gap: 16px; position: sticky; top: 16px; }
.panel { border: 1px solid rgba(242,239,227,.16); border-radius: 14px; padding: 18px 20px; display: grid; gap: 10px; background: rgba(255,255,255,.03); }
.panel h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; margin: 0; color: var(--amber); }
.panel p { margin: 0; font-size: 16px; color: rgba(242,239,227,.85); }
.listen { display: grid; gap: 8px; }
.listen a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; padding: 10px 12px; border-radius: 8px; background: rgba(242,239,227,.08); font-weight: 600; }
.listen a:hover { background: rgba(242,239,227,.16); }
.listen a span { font-size: 13px; color: rgba(242,239,227,.6); font-weight: 500; }
.signup { display: grid; gap: 8px; }
.signup label { font-size: 14px; color: rgba(242,239,227,.75); }
.signup input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(242,239,227,.3); background: var(--navy-deep); color: var(--cream); width: 100%; }
.signup .btn { justify-content: center; }
.hp { position: absolute; left: -9999px; }

/* Article page */
.article { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; display: grid; gap: 18px; }
.article .back { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; text-decoration: none; color: var(--amber); }
.article h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 0; text-wrap: balance; }
.article .standfirst { font-size: 20px; font-weight: 600; margin: 0; }
.article h2 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 12px 0 0; }
.article p { margin: 0; color: rgba(242,239,227,.88); }
.article .meta { color: rgba(242,239,227,.65); }
.article .cover { width: 100%; max-width: 320px; border-radius: 12px; }

footer { border-top: 1px solid rgba(242,239,227,.12); }
footer div { max-width: 1120px; margin: 0 auto; padding: 20px; font-size: 14px; color: rgba(242,239,227,.6); }

@media (max-width: 860px) { .wrap { grid-template-columns: 1fr; } aside { position: static; } }
@media (max-width: 520px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .art { grid-row: auto; width: 100%; height: auto; max-width: 200px; }
  .post-feature > :not(.art) { grid-column: 1; }
  .nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
