/* 7° andar — setimoandar.com
   Palette comes from the existing brand: logo ink, logo paper, Substack night + accent.
   Amber is reserved for "lit" states (latest floor, now playing, current page). */
:root {
  --night: #200704;
  --night-2: #2d1613;
  --night-3: #3e2926;
  --ink: #491c13;
  --paper: #fff7f2;
  --paper-2: #f3e6dd;
  --rust: #af4d3a;
  --rust-hi: #d0644d;
  --amber: #f4b860;
  --smoke: #c9bcb6;
  --smoke-2: #9d8d87;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Lora", Georgia, serif;
  --dots: "Doto", ui-monospace, monospace;

  --gutter: 20px;
  --pad-x: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  --wrap: 1120px;
  --dock-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --radius-plate: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + var(--safe-b));
  overflow-x: hidden;
}
/* faint film grain over the night background */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px;
}
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: var(--paper); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.i { width: 22px; height: 22px; flex: none; }

/* ------------------------------------------------ type */
.h1, .h2, .h3, .hero-h, .feat-title, .ep-title, .paper-h, .row-title, .read-title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.01em;
  margin: 0;
}
.h1 { font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.02; font-weight: 800; }
.h2 { font-size: clamp(1.75rem, 6.4vw, 2.6rem); line-height: 1.08; font-weight: 750; }
.h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 700; margin: 2em 0 .4em; }
.lede { color: var(--smoke); margin: .5em 0 0; max-width: 34em; }

/* ------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(32,7,4,.86);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--pad-x) 12px;
}
.brand { display: block; color: var(--paper); }
.wordmark { height: 34px; width: auto; }
.top-nav { display: none; }

/* elevator floor indicator */
.floor {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 64px; justify-content: center;
  padding: 6px 12px 5px;
  background: #120302;
  border: 1px solid var(--night-3);
  border-radius: 10px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.8);
  color: var(--amber);
  text-shadow: 0 0 8px rgba(244,184,96,.65);
}
.floor-num { font: 800 1.5rem/1 var(--dots); min-width: 1.3ch; text-align: center; font-variant-numeric: tabular-nums; }
.floor-i { width: 14px; height: 14px; filter: drop-shadow(0 0 4px rgba(244,184,96,.7)); transition: transform .25s var(--ease), opacity .25s; }
.floor[data-dir="down"] .floor-i { transform: rotate(180deg); }
.floor[data-dir="idle"] .floor-i { opacity: .25; }

/* ------------------------------------------------ elevator call button (the recurring device) */
.call {
  --s: 52px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: 50%;
  font: 800 1.25rem/1 var(--display); font-variation-settings: "SOFT" 100;
  color: var(--paper);
  background: radial-gradient(circle at 50% 38%, var(--night-3), var(--night-2) 70%);
  border: 2px solid #5b4440;
  box-shadow: 0 0 0 4px var(--night), 0 0 0 5px #4a3330, inset 0 -3px 6px rgba(0,0,0,.45);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.call-lit {
  color: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--night), 0 0 0 5px #6b4a2a, 0 0 22px rgba(244,184,96,.35), inset 0 0 10px rgba(244,184,96,.25);
  text-shadow: 0 0 10px rgba(244,184,96,.6);
}
.call-sm { --s: 38px; font-size: 1rem; box-shadow: 0 0 0 3px var(--night), 0 0 0 4px #4a3330; }
.call-sm.call-lit { box-shadow: 0 0 0 3px var(--night), 0 0 0 4px #6b4a2a, 0 0 14px rgba(244,184,96,.35); }

/* ------------------------------------------------ play buttons */
.play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; color: var(--paper);
  font: 600 1rem/1.2 var(--text); cursor: pointer; text-align: left;
}
.play-ring {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--rust); color: var(--paper);
  box-shadow: 0 0 0 3px var(--night), 0 0 0 4px rgba(175,77,58,.6);
  transition: background .2s, transform .15s var(--ease);
}
.play-ring .i { width: 20px; height: 20px; }
.play-ring .i:nth-child(2) { display: none; }
.play[aria-pressed="true"] .play-ring { background: var(--amber); color: var(--night); box-shadow: 0 0 0 3px var(--night), 0 0 0 4px var(--amber), 0 0 24px rgba(244,184,96,.45); }
.play[aria-pressed="true"] .play-ring .i:nth-child(1) { display: none; }
.play[aria-pressed="true"] .play-ring .i:nth-child(2) { display: block; }
.play:active .play-ring { transform: scale(.94); }
.play:hover .play-ring { background: var(--rust-hi); }
.play[aria-pressed="true"]:hover .play-ring { background: var(--amber); }
.play-big .play-ring { width: 60px; height: 60px; }
.play-big .play-ring .i { width: 24px; height: 24px; }
.play-big { font-size: 1.0625rem; }

.ghost {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--paper); text-decoration: underline; text-decoration-color: var(--rust);
  text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 500;
}
.ghost:hover { text-decoration-color: var(--amber); }

/* ------------------------------------------------ hero */
.hero { padding: 4px var(--gutter) 44px; max-width: var(--wrap); margin: 0 auto; }
.hero-in { display: grid; gap: 18px; }
.hero-cat {
  width: min(46vw, 210px); height: auto; color: var(--paper); margin: 32px auto 8px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.hero-h {
  font-size: clamp(1.9rem, 7.9vw, 4.4rem);
  line-height: 1.04; font-weight: 800;
  text-wrap: balance;
}
.hero-p { margin: 0; color: var(--smoke); font-size: 1.125rem; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
/* phones and tablets: centred hero, subtitle on three deliberate lines */
@media (max-width: 899px) {
  .hero-in { text-align: center; justify-items: center; }
  .hero-p span { display: block; }
  .hero-cta { justify-content: center; }
}

/* the one orchestrated moment: the cat's lens lights up on arrival */
@media (prefers-reduced-motion: no-preference) {
  .hero-cat { animation: arrive 1.1s var(--ease) both .15s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------ featured (latest) */
.feat {
  margin: 0 auto; max-width: var(--wrap);
  display: grid;
}
.feat-art-link { display: block; }
.feat-art, .ep-art {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
}
.feat-body { padding: 22px var(--gutter) 8px; display: grid; gap: 12px; }
.feat-kicker { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--smoke); font-size: .95rem; }
.feat-title { font-size: clamp(1.9rem, 7.4vw, 3rem); line-height: 1.06; font-weight: 800; text-wrap: balance; }
.feat-title a { text-decoration: none; }
.feat-title a:hover { text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.feat-sub { margin: 0; font-style: italic; color: var(--paper-2); font-size: 1.125rem; }
.feat-film { margin: 0; color: var(--smoke); }
.feat-actions { margin-top: 6px; }

/* artwork fallback for episodes that use the logo as cover */
.art-fallback {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 3 / 2; width: 100%;
  background: radial-gradient(120% 90% at 30% 20%, var(--night-3), var(--night-2) 55%, var(--night));
  overflow: hidden;
}
.art-fallback .fb-cat { width: 42%; height: auto; color: var(--paper); opacity: .92; }
.art-fallback span {
  position: absolute; right: 6%; bottom: -4%;
  font: 900 clamp(4rem, 22vw, 9rem)/1 var(--display); font-variation-settings: "SOFT" 100;
  color: transparent; -webkit-text-stroke: 2px rgba(244,184,96,.55);
}
.row-art.art-fallback .fb-cat { width: 62%; }
.row-art.art-fallback span { display: none; }

/* ------------------------------------------------ the building: episode directory */
.building { max-width: var(--wrap); margin: 0 auto; padding: 56px 0 24px; }
.building-head { padding: 0 var(--gutter) 18px; }
.building-full { padding-top: 8px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-3); }
.row { border-bottom: 1px solid var(--night-3); }
.row-link {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  text-decoration: none;
  min-height: 96px;
  transition: background .2s;
}
.row-link:hover, .row-link:focus-visible { background: var(--night-2); }
.row-link:hover .call:not(.call-lit) { border-color: var(--paper); }
.row-text { display: grid; gap: 4px; min-width: 0; }
.row-title { font-size: 1.2rem; line-height: 1.2; font-weight: 650; text-wrap: pretty; }
.row-meta { color: var(--smoke-2); font-size: .9rem; line-height: 1.35; display: flex; flex-wrap: wrap; gap: 0 10px; }
.row-meta .film { color: var(--smoke); font-style: italic; }
.row-meta .year { margin-left: -6px; }
.row-art {
  width: 76px; height: 76px; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  background: var(--night-2);
}

/* ------------------------------------------------ paper band (the lens) */
.paper {
  background: var(--paper); color: var(--ink);
  margin-top: 40px;
  position: relative; overflow: hidden;
}
.paper::after { /* the lens: one circle echoing the logo's monocle */
  content: ""; position: absolute; width: 360px; height: 360px; right: -150px; top: -120px;
  border-radius: 50%; border: 10px solid var(--ink); opacity: .08;
}
.paper-in { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 60px; position: relative; z-index: 1; }
.paper-h { font-size: clamp(2.1rem, 8.4vw, 3.6rem); line-height: 1.02; font-weight: 850; margin-bottom: 18px; }
.paper p { font-size: 1.125rem; margin: 0 0 22px; max-width: 34em; }
.ink-link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 5px;
}

/* ------------------------------------------------ hub: listen + read + subscribe */
.hub {
  max-width: var(--wrap); margin: 0 auto;
  padding: 8px var(--gutter) 56px;
  display: grid; gap: 44px;
}
.hub > section { padding: 0; max-width: none; margin: 0; min-width: 0; }

/* platforms as an elevator call panel: one round button per app */
.listen { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 8px; }
.panel { margin-top: 28px; }
.pls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 4px; }
.pl { display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--smoke); padding: 4px 2px; border-radius: 14px; }
.pl-btn {
  display: grid; place-items: center;
  width: 94px; height: 94px; border-radius: 50%;
  color: var(--brand);
  background: radial-gradient(circle at 50% 32%, #44302c, #1a0704 72%);
  border: 2px solid #6a514c;
  box-shadow: 0 0 0 4px #2a140f, 0 0 0 5px #4a3330, inset 0 -4px 8px rgba(0,0,0,.55);
  transition: border-color .2s, box-shadow .2s, transform .12s var(--ease);
}
.pl-logo { width: 42px; height: 42px; }
.pl-name { font-size: .84rem; line-height: 1.2; text-align: center; font-weight: 500; }
.pl:hover .pl-btn, .pl:focus-visible .pl-btn {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px #2a140f, 0 0 0 5px color-mix(in srgb, var(--brand) 55%, #4a3330), 0 0 22px color-mix(in srgb, var(--brand) 40%, transparent), inset 0 -4px 8px rgba(0,0,0,.55);
}
.pl:hover .pl-name { color: var(--paper); }
.pl:active .pl-btn { transform: scale(.94); }
.pl:focus-visible { outline: none; }

/* reading card */
.read { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 8px; }
.read-card {
  display: grid; grid-template-rows: auto 1fr;
  margin-top: 20px; border-radius: 24px; overflow: hidden;
  text-decoration: none; background: var(--rust); color: var(--paper);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: background .2s;
}
.read-card:hover { background: var(--rust-hi); }
.read-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.read-body { display: grid; align-content: start; gap: 6px; padding: 18px 20px 22px; }
.read-title { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.55rem; line-height: 1.1; font-weight: 800; }
.read-sub { font-style: italic; opacity: .9; }
.read-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; }
.read-go .i { width: 16px; height: 16px; }

/* subscribe */
.sub { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 64px; }
.sub-in {
  display: grid; gap: 18px;
  padding: 26px 22px;
  border-radius: 24px;
  background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden;
}
.sub-in::after { /* the monocle again, faint */
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px;
  border-radius: 50%; border: 8px solid var(--ink); opacity: .07; pointer-events: none;
}
.sub-text { position: relative; z-index: 1; }
.sub .h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.sub p { color: #6b4a42; margin: 8px 0 0; }
.sub-form { display: grid; gap: 10px; position: relative; z-index: 1; }
.sub-form input[type="email"] {
  min-height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid #d9c3b8; background: #fff; color: var(--ink);
  font: 400 1.0625rem var(--text);
}
.sub-form input::placeholder { color: #a8877d; }
.sub-form input:focus-visible { outline: 3px solid var(--rust); outline-offset: 1px; }
.sub-form button {
  min-height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 700 1.0625rem var(--text);
  transition: background .2s;
}
.sub-form button:hover { background: var(--rust); }

/* ------------------------------------------------ inner pages */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 28px; }
.prose { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.prose p { margin: 0 0 1.1em; }
.prose .big { font-family: var(--display); font-variation-settings: "SOFT" 100; font-size: 1.5rem; line-height: 1.3; font-weight: 500; }
.prose a { text-decoration-color: var(--rust); text-underline-offset: 4px; }

/* ------------------------------------------------ episode page */
.ep { max-width: var(--wrap); margin: 0 auto; }
.ep-art-wrap { position: relative; }
.ep-art-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.ep-head-text { padding: 0 var(--gutter); margin-top: -36px; position: relative; display: grid; gap: 14px; }
.ep-kicker { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--smoke); font-size: .95rem; line-height: 1.35; }
.ep-title { font-size: clamp(2.1rem, 9vw, 3.8rem); line-height: 1.02; font-weight: 850; text-wrap: balance; }
.ep-sub { margin: 0; font-style: italic; font-size: 1.15rem; color: var(--paper-2); }
.ep-player { display: grid; gap: 14px; margin-top: 8px; padding: 16px; border-radius: 18px; background: var(--night-2); border: 1px solid var(--night-3); }
.scrub input { width: 100%; accent-color: var(--amber); height: 28px; }
.scrub-times { display: flex; justify-content: space-between; color: var(--smoke-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.ep-body { padding: 28px var(--gutter) 0; max-width: 720px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 0 0 30px; padding: 18px 0; border-top: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); }
.facts div { min-width: 0; }
.facts dt { color: var(--smoke-2); font-size: .85rem; }
.facts dd { margin: 2px 0 0; font-weight: 600; line-height: 1.3; }
.notes { font-size: 1.0625rem; line-height: 1.75; }
.notes p { margin: 0 0 1.1em; }
.notes h3 { font: 700 1.3rem/1.25 var(--display); font-variation-settings: "SOFT" 100; margin: 1.6em 0 .5em; }
.notes a { text-decoration-color: var(--rust); text-underline-offset: 4px; }
.notes strong { color: var(--paper); font-weight: 600; }
.notes blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--rust); font-style: italic; color: var(--paper-2); }
.ep-links { margin: 26px 0 0; }
.ep-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration-color: var(--rust); text-underline-offset: 4px; min-height: 44px; }
.ep-links .i { width: 16px; height: 16px; }

.ep-yt { padding: 34px var(--gutter) 0; max-width: 720px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; color: var(--paper); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.yt:hover img { opacity: .9; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; }
.yt-label { position: absolute; left: 14px; bottom: 12px; font-weight: 600; text-shadow: 0 1px 8px #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ep-nav { display: grid; gap: 10px; padding: 36px var(--gutter) 0; max-width: 720px; }
.ep-nav-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--night-3); text-decoration: none; line-height: 1.3;
}
.ep-nav-btn:hover { background: var(--night-2); }
.ep-nav-btn small { display: block; color: var(--smoke-2); font-size: .85rem; }
.ep-nav-btn > span:last-child { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 650; font-size: 1.05rem; }

/* ------------------------------------------------ 404 */
.lost { max-width: 640px; margin: 0 auto; padding: 40px var(--gutter) 80px; }
.lost-floor { margin: 0; font: 800 5rem/1 var(--dots); color: var(--amber); text-shadow: 0 0 18px rgba(244,184,96,.5); }

/* ------------------------------------------------ footer */
.foot { background: #160402; border-top: 1px solid var(--night-3); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 36px; display: grid; gap: 14px; }
.foot-cat { width: 64px; height: auto; color: var(--paper); }
.foot-line { font: italic 500 1.2rem/1.35 var(--display); font-variation-settings: "SOFT" 100; margin: 0; max-width: 26em; }
.foot-links { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.foot-links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--smoke); text-decoration-color: var(--night-3); text-underline-offset: 4px; }
.foot-links a:hover { color: var(--paper); }
.foot-small { margin: 0; color: var(--smoke-2); font-size: .85rem; }

/* ------------------------------------------------ now playing bar */
.np {
  position: fixed; z-index: 30;
  left: 10px; right: 10px; bottom: calc(var(--dock-h) + var(--safe-b) + 8px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 14px 12px 10px;
  background: rgba(45,22,19,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid #5b4440; border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}
.np[hidden] { display: none; }
.np-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--amber); color: var(--night); cursor: pointer; }
.np-btn .i { width: 20px; height: 20px; }
.np-btn .i:nth-child(2) { display: none; }
.np[data-paused] .np-btn .i:nth-child(1) { display: none; }
.np[data-paused] .np-btn .i:nth-child(2) { display: block; }
.np[data-paused] .np-btn { background: var(--paper); }
.np-meta { min-width: 0; text-decoration: none; display: grid; line-height: 1.25; }
.np-num { color: var(--amber); font-size: .8rem; }
.np-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-time { color: var(--smoke); font-size: .85rem; font-variant-numeric: tabular-nums; }
.np-bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.np-bar span { display: block; height: 100%; width: 0; background: var(--amber); }

/* ------------------------------------------------ mobile dock: the elevator panel */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(6px + var(--safe-b));
  background: linear-gradient(180deg, #2b1411, #1a0604);
  border-top: 1px solid #553b36;
  box-shadow: 0 -10px 30px rgba(0,0,0,.45);
}
.dock-btn { display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--smoke); padding-top: 2px; }
.dock-ring {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid #6a514c;
  background: radial-gradient(circle at 50% 35%, #3e2926, #241009);
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.dock-ring .i { width: 20px; height: 20px; }
.dock-label { font-size: .72rem; line-height: 1; letter-spacing: .01em; }
.dock-btn[aria-current="page"] { color: var(--paper); }
.dock-btn[aria-current="page"] .dock-ring { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 14px rgba(244,184,96,.35), inset 0 0 8px rgba(244,184,96,.2); }
.dock-btn:active .dock-ring { transform: scale(.94); }

/* ------------------------------------------------ wider screens */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .sub-form { grid-template-columns: 1fr auto; }
  .sub-form button { padding: 0 26px; }
  .pl-btn { width: 108px; height: 108px; }
  .pl-logo { width: 48px; height: 48px; }
  .row-art { width: 132px; height: 88px; aspect-ratio: 3 / 2; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { padding-bottom: 0; }
  .dock { display: none; }
  .np { left: auto; right: 24px; bottom: 24px; width: 420px; }
  .top { padding-top: 18px; padding-bottom: 18px; }
  .wordmark { height: 40px; }
  .top-nav { display: flex; gap: 28px; margin-left: auto; }
  .top-nav a { text-decoration: none; color: var(--smoke); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
  .top-nav a:hover { color: var(--paper); }
  .top-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--amber); }

  .hero { padding-top: 40px; padding-bottom: 72px; }
  .hero-in { grid-template-columns: 1.25fr .9fr; grid-template-areas: "h cat" "p cat" "cta cat"; align-items: center; column-gap: 64px; row-gap: 22px; }
  .hero-cat { grid-area: cat; width: 100%; max-width: 360px; margin: 0; justify-self: end; }
  .hero-p span { display: inline; }
  .hero-h { grid-area: h; align-self: end; }
  .hero-p { grid-area: p; }
  .hero-cta { grid-area: cta; align-self: start; }

  .feat { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 0 var(--gutter); }
  .feat-art, .feat .art-fallback { border-radius: 22px; }
  .feat-body { padding: 0; }

  .building-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
  .row-link { grid-template-columns: auto 1fr auto; gap: 28px; padding: 18px var(--gutter); }
  .row-title { font-size: 1.45rem; }
  .row-art { width: 168px; height: 112px; }

  .paper-in { padding: 88px var(--gutter); }

  .hub { grid-template-columns: 1.2fr 1fr; grid-template-areas: "listen read" "sub sub"; gap: 48px 48px; padding-bottom: 80px; }
  .hub .listen { grid-area: listen; display: flex; flex-direction: column; }
  .hub .read { grid-area: read; display: flex; flex-direction: column; }
  .hub .sub { grid-area: sub; }
  .hub .panel, .hub .read-card { flex: 1; }
  .hub .panel { display: grid; align-content: center; }
  .hub .pls { row-gap: 40px; }
  .hub .pl-btn { width: 124px; height: 124px; }
  .hub .pl-logo { width: 54px; height: 54px; }
  .hub .pl-name { font-size: .92rem; }
  .sub-in { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding: 36px 40px; }
  .paper::after { width: 560px; height: 560px; right: -160px; top: -200px; border-width: 14px; }

  .ep { padding: 0 var(--gutter); }
  .ep-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 12px; }
  .ep-art, .ep-head .art-fallback { border-radius: 22px; }
  .ep-art-wrap::after { display: none; }
  .ep-head-text { margin-top: 0; padding: 0; }
  .ep-body, .ep-yt, .ep-nav { padding-left: 0; padding-right: 0; }
  .ep-nav { grid-template-columns: 1fr 1fr; max-width: none; }
  .facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 40px; }

  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 28px; }
  .foot-cat { grid-row: span 2; width: 84px; }
  .foot-links { grid-row: span 2; justify-items: end; }
}
.nowrap { white-space: nowrap; }
