/* ==========================================================================
   Walk, Shoot and Learn — shared stylesheet
   Charcoal / off-white, analogue black-and-white photography feel.
   No webfonts, no images — system fonts + CSS-only film grain, kept
   deliberately light so the site loads fast on minimal data.
   ========================================================================== */

:root {
  --bg: #131311;
  --bg-panel: #1b1a17;
  --bg-panel-raised: #211f1c;
  --line: rgba(242, 239, 231, 0.14);
  --line-soft: rgba(242, 239, 231, 0.08);
  --text: #f2efe7;
  --text-dim: #a9a59b;
  --text-faint: #726e64;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --mono: "Courier New", ui-monospace, Menlo, Consolas, monospace;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --measure: 42rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Film-grain overlay — pure CSS/SVG, no image request. Kept faint by default.
   Intensity is driven by the ISO dial (see .iso-dial below) via a couple of
   custom properties, so turning it up doesn't cost another asset either. */
:root {
  --grain-opacity: 0.05;
  --grain-size: 220px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: var(--grain-size) var(--grain-size);
  transition: opacity 0.4s ease;
}

body[data-iso="400"] {
  --grain-opacity: 0.09;
  --grain-size: 250px;
}

body[data-iso="1600"] {
  --grain-opacity: 0.18;
  --grain-size: 320px;
}

body[data-iso="3200"] {
  --grain-opacity: 0.3;
  --grain-size: 400px;
}

/* Soft vignette toward the edges — darkroom framing, not a flat rectangle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  box-shadow: inset 0 0 min(18vw, 220px) rgba(0, 0, 0, 0.55);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ---------------------------------------------------------------------- */
/* Header / nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 19, 17, 0.86);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.brand span {
  color: var(--text-dim);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-dim);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: var(--text-dim);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--text);
}

/* ---------------------------------------------------------------------- */
/* Generic sections                                                       */
/* ---------------------------------------------------------------------- */

main {
  display: block;
}

section {
  padding: clamp(2.75rem, 6vw, 5rem) 0;
}

section + section {
  border-top: 1px solid var(--line-soft);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.9rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1rem;
  max-width: var(--measure);
  color: var(--text);
}

p.lede {
  font-size: 1.2rem;
  color: var(--text-dim);
}

.dim {
  color: var(--text-dim);
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.25rem 0;
}

/* ---------------------------------------------------------------------- */
/* Buttons / links                                                        */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.7rem 1.3rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ---------------------------------------------------------------------- */
/* "Coming soon" platform chips (episodes page)                           */
/* ---------------------------------------------------------------------- */

.listen-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0.9rem 0 0.5rem;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border: 1px dashed var(--line);
  padding: 0.4rem 0.7rem;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Season structure list (front page)                                     */
/* ---------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.step .num {
  display: block;
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 42rem) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* Episodes page — paired two-column grid                                 */
/* ---------------------------------------------------------------------- */

.episodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  margin-bottom: 0.25rem;
}

.col-heading {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.ep-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.ep-pair:last-child {
  border-bottom: none;
}

.ep-row {
  padding: 1.6rem 0;
  min-height: 1px;
}

.ep-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.ep-row h3 {
  margin-bottom: 0.5rem;
}

.ep-row p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 0.4rem;
}

.ep-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.ep-empty {
  padding: 1.6rem 0;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  display: flex;
  align-items: center;
}

.card-placeholder {
  margin-top: 0.9rem;
  border: 1px dashed var(--line);
  padding: 1rem;
  aspect-ratio: 4 / 5;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 7px,
      var(--line-soft) 7px,
      var(--line-soft) 8px
    );
}

.card-placeholder .aperture {
  font-size: 1.4rem;
  color: var(--text-faint);
}

@media (max-width: 46rem) {
  .episodes-grid .col-heading:last-child {
    display: none;
  }

  .ep-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ep-pair .ep-row + .ep-row,
  .ep-pair .ep-row + .ep-empty,
  .ep-pair .ep-empty + .ep-row {
    border-top: 1px dashed var(--line-soft);
  }

  .ep-pair .ep-row:first-child,
  .ep-pair .ep-empty:first-child {
    padding-bottom: 0.6rem;
  }

  .ep-pair .ep-row:last-child,
  .ep-pair .ep-empty:last-child {
    padding-top: 0.9rem;
  }

  .ep-empty {
    padding: 1.6rem 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Contact page                                                           */
/* ---------------------------------------------------------------------- */

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--measure);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-list .label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-list .value a {
  text-decoration: none;
  border-bottom: 1px solid var(--text-dim);
}

.contact-list .value a:hover {
  border-color: var(--text);
}

.contact-list .soon {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.site-footer a {
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: var(--text-dim);
  border-color: var(--text-faint);
}

/* ---------------------------------------------------------------------- */
/* ISO dial — a small easter egg that turns up the film grain              */
/* ---------------------------------------------------------------------- */

.iso-dial {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(19, 19, 17, 0.82);
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  backdrop-filter: blur(4px);
  font-family: var(--mono);
}

.iso-dial-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: 0.15rem;
}

.iso-dial-options {
  display: flex;
  gap: 0.3rem;
}

.iso-btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.iso-btn:hover,
.iso-btn:focus-visible {
  border-color: var(--text-dim);
  color: var(--text);
}

.iso-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

@media (max-width: 30rem) {
  .iso-dial {
    right: 0.6rem;
    bottom: 0.6rem;
    padding: 0.4rem 0.5rem;
  }

  .iso-dial-label {
    display: none;
  }
}
