/* Hard Days — harddayspodcast.com
   Palette matches what the clips and thumbnails are rendered with, so the
   site and the video output read as one thing: build/lib/render.py defines
   BG 0x0E0E10 and ACCENT 0x0CB4FF. */

:root {
  --bg: #0e0e10;
  --surface: #17171b;
  --text: #f2f2f4;
  --muted: #9a9aa2;
  --accent: #0cb4ff;
  --radius: 14px;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0 1.25rem env(safe-area-inset-bottom, 0px);
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #00232f; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; z-index: 10; }

.wrap { max-width: 46rem; margin: 0 auto; }
.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 3rem; }

/* Masthead ---------------------------------------------------------------- */
.hero { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; padding: 3.5rem 0 2.5rem; }
.hero__art { width: 190px; height: 190px; border-radius: var(--radius); flex: none; display: block; }
.hero__body { flex: 1 1 18rem; }
.hero__tag { color: var(--accent); font-weight: 700; letter-spacing: .08em;
             text-transform: uppercase; font-size: .8rem; }
.lede { font-size: 1.15rem; color: var(--text); max-width: var(--measure); }
.muted { color: var(--muted); }

/* Listen buttons ---------------------------------------------------------- */
.listen { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.button {
  display: inline-block; padding: .7rem 1.15rem; border-radius: 999px;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid #2a2a31; font-weight: 600; font-size: .95rem;
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button--primary { background: var(--accent); color: #00232f; border-color: var(--accent); }
.button--primary:hover { filter: brightness(1.08); color: #00232f; }

/* Episodes ---------------------------------------------------------------- */
.episodes { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.episode {
  background: var(--surface); border: 1px solid #22222a; border-radius: var(--radius);
  padding: 1rem 1.15rem; display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
}
.episode__label { color: var(--accent); font-weight: 700; font-size: .78rem;
                  letter-spacing: .08em; text-transform: uppercase; flex: none; }
.episode__title { font-weight: 600; }
.episode__topic { color: var(--muted); width: 100%; font-size: .95rem; }

/* Prose (privacy / terms) -------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose h2 { margin: 2.1rem 0 .6rem; font-size: .95rem; }
.prose p { margin: 0 0 .9rem; }
.prose code { background: var(--surface); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid #22222a; margin-top: 4rem; padding: 1.5rem 0 3rem;
               display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .9rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Elsewhere bar above the masthead ---------------------------------------- */
.topbar { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1.25rem 0 0;
          font-size: .9rem; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--accent); }

/* Platform pills and chips ------------------------------------------------
   Brand-coloured dots rather than logo marks: a hand-drawn approximation of
   someone's wordmark looks worse than no mark at all, and these cost nothing
   to serve. The dot is decorative and hidden from assistive tech -- the link
   text already says where it goes. */
.episode__meta { width: 100%; display: flex; align-items: center; gap: .5rem;
                 flex-wrap: wrap; font-size: .95rem; }
.episode__show { color: var(--muted); margin-right: .15rem; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .7rem; border-radius: 999px;
  background: #1e1e25; border: 1px solid #2d2d36;
  color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600;
}
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; flex: none; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill--spotify::before { background: #1db954; }
.pill--apple::before   { background: #d56dfb; }
.pill--youtube::before { background: #ff0033; }

.dot { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block;
       margin-right: .5rem; vertical-align: baseline; flex: none; }
.dot--apple   { background: #d56dfb; }
.dot--spotify { background: #1db954; }
.dot--youtube { background: #ff0033; }
.button--primary .dot--apple { background: #3a0d4d; }
.button { display: inline-flex; align-items: center; }

.chip {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: 999px;
  border: 1px solid #2a2a31; background: var(--surface);
  color: var(--muted); text-decoration: none; font-size: .85rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Show artwork in "Ory elsewhere" --------------------------------------- */
.episode:has(.showart) { align-items: center; flex-wrap: nowrap; gap: .9rem; }
.showart { width: 42px; height: 42px; border-radius: 9px; flex: none; display: block; }
.episode__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.episode__body .episode__title { font-weight: 600; }

/* Platform links on the show's own episodes ------------------------------ */
.episode__links { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .15rem; }

@media (max-width: 30rem) {
  .episode:has(.showart) { flex-wrap: nowrap; }
  .showart { width: 38px; height: 38px; }
}

/* Phones ------------------------------------------------------------------
   A lot of this traffic arrives from an Instagram bio link, so the small
   screen is the common case, not the edge one. The layout already reflows
   without horizontal scroll; what needed fixing was hit area. Pills were 31px
   tall and footer links 24px, against the ~44px a thumb actually wants.
   The visual size barely changes -- the padding does the work. */
@media (max-width: 40rem) {
  .pill { min-height: 44px; padding: .5rem .9rem; font-size: .85rem; }
  .button { min-height: 44px; }
  .chip { min-height: 44px; padding: .5rem .9rem; }
  .site-footer { gap: .25rem 1.25rem; }
  .site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .topbar { gap: .5rem; }
  .episode__links { gap: .5rem; }
  /* The masthead reads better centred once the art sits above the words. */
  .hero { gap: 1.1rem; padding-top: 1.75rem; }
  .hero__art { width: 128px; height: 128px; }
}
