/* ==========================================================================
   NATURE vzw / prototype 1: veldjournaal
   Editorial field journal. Warm paper, one rust accent, ruled like a ledger.
   Two colours and composure. Motion nearly invisible.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Paper family */
  --paper:      #F2F2E9;
  --paper-2:    #EAE9DC;
  --paper-3:    #DFDDCB;
  /* Ink */
  --ink:        #17170F;
  --ink-2:      #55554B;
  --rule:       rgba(23, 23, 15, 0.16);
  --rule-soft:  rgba(23, 23, 15, 0.08);
  /* The single accent */
  --rust:       #C31428;
  --rust-deep:  #97101F;
  /* Night panel (the teen track lives here) */
  --forest:     #1E2A23;
  --forest-2:   #16201A;
  --cyan:       #44B4D4;
  --olive:      #B3B200;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Instrument Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 62ch;
  --page-max: 1360px;
  --gutter: clamp(1.15rem, 4vw, 4rem);

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.11rem);
  --step-1:  clamp(1.18rem, 1.1rem + 0.4vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.28rem + 0.8vw, 2rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.7vw, 3rem);
  --step-4:  clamp(2.4rem, 1.6rem + 3.7vw, 4.6rem);
  --step-5:  clamp(3rem, 1.5rem + 6.6vw, 7.4rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-cover: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- 2. Reset and base -------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-x: hidden;
}

/* Grain. One tiled SVG turbulence, very low opacity. Highest craft per byte. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; display: block; }
img, video { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 100, "SOFT" 20, "WONK" 1;
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--rust-deep); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--rust); color: var(--paper); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-140%);
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0.5rem); color: var(--paper); }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Editorial furniture --------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* the small mono label that runs down the left gutter of every section */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.label--rust { color: var(--rust-deep); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--heavy { border-top-width: 2px; border-color: var(--ink); }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.brackets { color: var(--rust-deep); font-weight: 600; }

/* Section scaffold: mono label left, content right, hairline on top */
.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.band__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 60rem) {
  .band__inner { grid-template-columns: 9rem minmax(0, 1fr); gap: 3rem; }
}
.band__head { display: flex; flex-direction: column; gap: 0.35rem; }
.band__title { font-size: var(--step-3); margin-bottom: 0.5rem; }
.band__lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; max-width: 46ch; }

/* --- 4. Header, nav, corner chip ---------------------------------------- */

.hub-chip {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 24px;
  padding: 0.4rem 0.7rem;
  background: rgba(242, 242, 233, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration: none;
}
.hub-chip:hover { color: var(--ink); border-color: var(--ink); }
@media (min-width: 48rem) {
  /* from here up the chip docks into the sticky header instead of floating */
  .hub-chip { position: static; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  view-transition-name: masthead;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-block: 0.7rem;
  padding-top: 3rem;
}
@media (min-width: 48rem) {
  .site-header__inner { padding-top: 0.8rem; padding-bottom: 0.8rem; }
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { height: 34px; width: auto; view-transition-name: brandmark; }
@media (min-width: 48rem) { .brand img { height: 42px; } }
.brand__meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-left: 1px solid var(--rule);
  padding-left: 0.75rem;
}
@media (min-width: 62rem) { .brand__meta { display: block; } }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: wrap;
  gap: 0.55rem clamp(0.7rem, 2vw, 1.75rem);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
@media (min-width: 40rem) { .nav a { font-size: 0.76rem; letter-spacing: 0.06em; } }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
}
@media (prefers-reduced-motion: no-preference) {
  .nav a::after { transition: transform 0.32s var(--ease); }
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--rust-deep); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav__hide { display: none; }
@media (min-width: 40rem) { .nav a.nav__hide { display: inline-flex; } }

/* --- 5. The intro moment ------------------------------------------------ */

.intro { display: none; }

html.intro-on { overflow: hidden; }
html.intro-on .intro {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  background: var(--paper);
  transform: translateY(0);
  transition: transform 0.62s var(--ease-cover);
}
html.intro-on .intro::before {
  /* the ruled journal page behind the mark */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--rule-soft) 43px 44px);
  opacity: 0.9;
}
html.intro-on.intro-out .intro { transform: translateY(-101%); }

.intro__stack {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding-inline: 1.5rem;
  text-align: center;
}
.intro__logo {
  width: min(230px, 56vw);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: introWipe 0.62s var(--ease-cover) 0.06s forwards;
}
.intro__line {
  width: min(230px, 56vw);
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  animation: introRule 0.5s var(--ease) 0.42s forwards;
}
.intro__meta {
  opacity: 0;
  animation: introFade 0.5s var(--ease) 0.5s forwards;
}
@keyframes introWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes introRule { to { transform: scaleX(1); } }
@keyframes introFade { to { opacity: 1; } }

/* --- 6. Hero (index) ---------------------------------------------------- */

.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
  border-bottom: 2px solid var(--ink);
}
.hero__kicker { max-width: none; }
.hero__kicker span { white-space: nowrap; }
.hero__kicker span + span::before { content: "·"; margin-right: 1rem; color: var(--rule); }

.hero__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: end; }
}

.hero__title {
  font-size: var(--step-5);
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-weight: 400;
  letter-spacing: -0.032em;
  line-height: 0.94;
  margin-bottom: clamp(1.1rem, 2.5vw, 1.75rem);
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust-deep);
}
/* staggered reveal, aria-safe: the h1 carries aria-label, fragments are hidden */
.hero__title .frag { display: block; overflow: hidden; }
.hero__title .frag > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .frag > span {
    transform: translateY(102%);
    animation: fragUp 0.85s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 0.15s);
  }
  html.intro-on .hero__title .frag > span { animation-delay: calc(var(--i, 0) * 90ms + 0.85s); }
}
@keyframes fragUp { to { transform: translateY(0); } }

.hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; color: var(--ink-2); }
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* the framed plate: video treated like a pasted-in print with a caption */
.plate { display: grid; gap: 0.6rem; }
.plate__frame {
  position: relative;
  padding: 0.55rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.plate__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
}
@media (min-width: 62rem) { .plate__media { aspect-ratio: 5 / 6; } }
.plate__media img, .plate__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.plate__media video { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .plate__media video { transition: opacity 0.7s var(--ease); }
  .plate__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease-cover); }
  .plate.is-in .plate__media { clip-path: inset(0 0 0 0); }
}
.plate__media video.is-on { opacity: 1; }
.plate__caption {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

/* --- 7. Buttons --------------------------------------------------------- */

.btn {
  --btn-bg: var(--rust);
  --btn-fg: #FFFFFF;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--rust-deep);
  transform: translateY(101%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.3s var(--ease); }
  .btn::before { transition: transform 0.42s var(--ease-cover); }
  .btn:hover, .btn:focus-visible { transform: translateY(-2px); }
  .btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
  .btn:active { transform: translateY(0); }
  .btn svg { transition: transform 0.32s var(--ease); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .btn--ghost:hover, .btn--ghost:focus-visible { color: var(--paper); }
}
.btn--night { --btn-bg: var(--cyan); --btn-fg: #0D1512; border-color: var(--cyan); }
.btn--night::before { background: #FFFFFF; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- 8. Index: the four ways in (an editorial index list) ---------------- */

.ways { border-top: 1px solid var(--ink); }
.way {
  position: relative;
  display: grid;
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.6vw, 1.6rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 48rem) {
  .way { grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr) 2rem; align-items: center; }
}
.way__n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--rust-deep); font-variant-numeric: tabular-nums; }
.way__title { font-size: var(--step-2); font-variation-settings: "opsz" 72, "SOFT" 24, "WONK" 1; }
.way__title a { color: inherit; text-decoration: none; }
.way__title a::after { content: ""; position: absolute; inset: 0; } /* whole-row click */
.way__body { color: var(--ink-2); max-width: 48ch; }
.way__arrow { justify-self: end; color: var(--rust); display: none; }
@media (min-width: 48rem) { .way__arrow { display: block; } }
.way::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
}
@media (prefers-reduced-motion: no-preference) {
  .way::before { transition: transform 0.42s var(--ease); }
  .way__arrow svg { transition: transform 0.42s var(--ease); }
  .way:hover::before, .way:focus-within::before { transform: scaleX(1); transform-origin: left; }
  .way:hover .way__arrow svg, .way:focus-within .way__arrow svg { transform: translateX(6px); }
}

/* --- 9. The timetable (binnenkort strip + agenda rows) ------------------- */

.tt { border-top: 2px solid var(--ink); }
.tt__row {
  position: relative;
  display: grid;
  gap: 0.15rem 1.5rem;
  padding-block: clamp(1rem, 2.4vw, 1.45rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 62rem) {
  .tt__row {
    grid-template-columns: 10.5rem minmax(0, 1fr) 14.5rem 8.5rem;
    align-items: center;
    gap: 1.5rem;
  }
}
.tt__row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: right;
}
@media (prefers-reduced-motion: no-preference) {
  .tt__row::before { transition: transform 0.45s var(--ease); }
  .tt__row:hover::before, .tt__row:focus-within::before { transform: scaleX(1); transform-origin: left; }
  .tt__row .tt__date { transition: transform 0.4s var(--ease); }
  .tt__row:hover .tt__date, .tt__row:focus-within .tt__date { transform: translateX(4px); }
}
.tt__date {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
}
.tt__dur {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.tt__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: "opsz" 48, "SOFT" 24, "WONK" 1;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.tt__title a { color: inherit; text-decoration: none; }
.tt__title a::after { content: ""; position: absolute; inset: 0; }
.tt__meta {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 0.15rem;
}
.tt__meta .sep { color: var(--rule); padding-inline: 0.3rem; }
.tt__price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}
/* both prices always on one line, never stacked, never struck through */
.tt__price small { display: inline; color: var(--ink-2); font-size: 0.82rem; }
.tt__price small::before { content: "\00a0\00b7\00a0"; color: var(--ink-2); }
.tt__status { justify-self: start; }
@media (min-width: 62rem) { .tt__status { justify-self: end; } }

/* status: word plus shape, never colour alone */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 24px;
  padding: 0.2rem 0.6rem 0.2rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  white-space: nowrap;
}
.status__mark { flex: none; width: 9px; height: 9px; background: currentColor; }
.status--open { color: var(--rust-deep); }
.status--open .status__mark { border-radius: 50%; }
.status--soon { color: var(--ink-2); }
.status--soon .status__mark { border-radius: 1px; transform: rotate(45deg); }
.status--past { color: var(--ink-2); opacity: 0.85; }
.status--past .status__mark { background: none; border-top: 2px solid currentColor; height: 0; width: 11px; }
.status--full { color: var(--ink); }
.status--full .status__mark { border-radius: 2px; }

.tt__row--past { opacity: 0.78; }
.tt__row--past .tt__title { font-weight: 400; }
.tt__row--note {
  background:
    linear-gradient(to right, rgba(195, 20, 40, 0.06), rgba(195, 20, 40, 0));
  border-left: 2px solid var(--rust);
  padding-left: 1rem;
}
@media (min-width: 56rem) { .tt__row--note { padding-left: 1.25rem; } }

/* --- 10. Agenda page ---------------------------------------------------- */

.page-head { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { font-size: var(--step-4); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1; font-weight: 400; }
.page-head p { margin-top: 1rem; font-size: var(--step-1); color: var(--ink-2); max-width: 44ch; line-height: 1.45; }

.notice {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1rem 1.15rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--rust);
  border-radius: 3px;
}
.notice .label { display: block; margin-bottom: 0.35rem; }
.notice__body { max-width: 60ch; font-size: 0.97rem; margin: 0; }
.notice__body b { font-weight: 500; }

.filters {
  position: sticky;
  top: 5.9rem;
  z-index: 40;
  background: var(--paper);
  border-block: 1px solid var(--rule);
  padding-block: 0.7rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 48rem) { .filters { top: 4.4rem; } }
.filters__inner { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
}
.chip__n {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.chip::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
}
.chip > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .chip::before { transition: transform 0.3s var(--ease-cover); }
  .chip:hover::before { transform: scaleY(0.06); transform-origin: bottom; }
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.chip[aria-pressed="true"] .chip__n { color: rgba(242, 242, 233, 0.7); }
.chip[aria-pressed="true"]::before { display: none; }

.month {
  position: sticky;
  top: 9.8rem;
  z-index: 30;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  padding-block: 0.85rem 0.55rem;
  border-bottom: 2px solid var(--ink);
  margin-top: clamp(2rem, 5vw, 3.25rem);
}
@media (min-width: 48rem) { .month { top: 8.4rem; } }
.month h2 {
  font-size: var(--step-2);
  font-variation-settings: "opsz" 72, "SOFT" 24, "WONK" 1;
  text-transform: lowercase;
}
.month h2 .yr { color: var(--ink-2); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; margin-left: 0.5rem; vertical-align: 0.35em; }
.month__count { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-2); text-transform: uppercase; }
.month-group[hidden] { display: none; }
.month + .tt { border-top: 0; }

.empty {
  padding: 3rem 0;
  font-size: var(--step-1);
  color: var(--ink-2);
}

/* --- 11. Night panel (the teen track) ----------------------------------- */

.night {
  background: var(--forest);
  color: var(--paper);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 3.25rem);
  position: relative;
  overflow: hidden;
}
.night::before {
  /* contour hint, drawn not photographed */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background:
    repeating-radial-gradient(circle at 70% 30%, transparent 0 22px, rgba(68, 180, 212, 0.16) 22px 23px);
  opacity: 0.7;
  pointer-events: none;
}
.night h2 { color: var(--paper); font-size: var(--step-3); position: relative; }
.night p { color: rgba(242, 242, 233, 0.86); position: relative; }
.night a:not(.btn) { color: var(--cyan); }
.night .label { color: var(--olive); }
.night :focus-visible { outline-color: var(--cyan); }
.night__grid { display: grid; gap: 1.75rem; position: relative; }
@media (min-width: 56rem) { .night__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 3rem; align-items: center; } }
.night__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.night__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(242, 242, 233, 0.16);
  font-size: 0.95rem;
  color: rgba(242, 242, 233, 0.9);
}
.night__list b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--cyan);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* --- 12. Money / trust -------------------------------------------------- */

.money { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .money { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.money__item { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.money__item h3 { font-size: var(--step-1); margin-bottom: 0.5rem; font-variation-settings: "opsz" 48, "SOFT" 24, "WONK" 1; }
.money__item p { font-size: 0.95rem; color: var(--ink-2); }

.steps { counter-reset: s; list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--rust-deep);
  padding-top: 0.22rem;
}

.proof { display: grid; gap: 0.5rem; margin: 0; padding: 0; }
.proof div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.92rem; color: var(--ink-2); }
.proof svg { width: 17px; height: 17px; color: var(--rust); margin-top: 0.22rem; flex: none; }

/* --- 13. Detail page ---------------------------------------------------- */

.detail-hero { padding-block: clamp(1.75rem, 4vw, 3.25rem) 0; }
.detail-hero__title { font-size: var(--step-4); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1; font-weight: 400; }
.detail-hero__sub { font-size: var(--step-1); color: var(--ink-2); margin-top: 1rem; max-width: 46ch; line-height: 1.45; }
.detail-hero__strip {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.55rem;
  background: var(--paper-2);
}
.detail-hero__strip .plate__media { aspect-ratio: 16 / 7; }
.detail-hero__strip .plate__media img,
.detail-hero__strip .plate__media video { object-position: center 72%; }
@media (max-width: 47.99rem) { .detail-hero__strip .plate__media { aspect-ratio: 4 / 3; } }

.detail-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 62rem) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 21.5rem; align-items: start; gap: 4rem; }
}

.facts { border-top: 2px solid var(--ink); margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 29.99rem) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.22rem;
}
.facts dd { margin: 0; font-size: 1.02rem; }
.facts dd .num { font-size: 0.98rem; }

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.price-line b { font-size: 1.15rem; font-weight: 500; }
.price-line .sep { color: var(--rule); }
.circled { position: relative; display: inline-block; padding: 0.1rem 0.45rem; }
.circled svg {
  position: absolute;
  left: -14%;
  top: -52%;
  width: 128%;
  height: 205%;
  color: var(--rust);
  pointer-events: none;
  overflow: visible;
}
.circled svg path { stroke-dasharray: 340; stroke-dashoffset: 340; }
@media (prefers-reduced-motion: no-preference) {
  .circled svg path { transition: stroke-dashoffset 1.1s var(--ease) 0.2s; }
  .circled.is-in svg path { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .circled svg path { stroke-dashoffset: 0; }
}

.pay-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--rust);
  border-radius: 3px;
}
.pay-note p { font-size: 0.97rem; }

details.acc {
  border-bottom: 1px solid var(--rule);
}
details.acc:first-of-type { border-top: 1px solid var(--ink); }
details.acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: 0.85rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--rust);
  border-bottom: 1.5px solid var(--rust);
  transform: rotate(45deg) translate(-2px, -2px);
}
@media (prefers-reduced-motion: no-preference) {
  details.acc > summary::after { transition: transform 0.3s var(--ease); }
}
details.acc[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details.acc .acc__body { padding-bottom: 1.15rem; color: var(--ink-2); }

.book {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rust);
  border-radius: 4px;
  background: var(--paper-2);
  padding: 1.25rem;
}
@media (min-width: 62rem) { .book { position: sticky; top: 6rem; } }
.book h2 { font-size: var(--step-1); font-variation-settings: "opsz" 48, "SOFT" 24, "WONK" 1; margin-bottom: 0.65rem; }
.book p { font-size: 0.9rem; color: var(--ink-2); }
.book .btn { width: 100%; justify-content: center; margin-top: 0.9rem; }
.book__meta { margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--ink-2); text-transform: uppercase; }

.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem var(--gutter);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(242, 242, 233, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ink);
}
@media (min-width: 62rem) { .stickybar { display: none; } }
.stickybar__price { max-width: none; white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.72rem; line-height: 1.3; }
.stickybar__price small { color: var(--ink-2); font-size: 0.74rem; }
.stickybar__price small::before { content: "\00a0\00b7\00a0"; }
.stickybar .btn { min-height: 44px; padding-inline: 0.85rem; font-size: 0.88rem; white-space: nowrap; }
.stickybar .btn svg { width: 16px; height: 16px; }
body.has-stickybar { padding-bottom: 5.5rem; }
@media (min-width: 62rem) { body.has-stickybar { padding-bottom: 0; } }

.stub {
  border: 1px dashed var(--ink-2);
  border-radius: 4px;
  padding: 1.35rem;
  background: var(--paper-2);
}
.stub .label { margin-bottom: 0.5rem; display: block; }

/* --- 14. Footer --------------------------------------------------------- */

.site-footer {
  background: var(--forest);
  color: var(--paper);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: var(--cyan); }
.site-footer :focus-visible { outline-color: var(--cyan); }
.site-footer .label { color: var(--olive); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.footer__mark { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.footer__mark img { width: 92px; height: auto; }
.footer__grid p, .footer__grid li { color: rgba(242, 242, 233, 0.84); font-size: 0.95rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.footer__list a { display: inline-flex; align-items: center; min-height: 24px; }
.footer__bottom {
  max-width: none;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(242, 242, 233, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 242, 233, 0.66);
}

/* --- 15. Quiet reveals -------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .r {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .r.is-in { opacity: 1; transform: none; }
}

/* --- 16. Hand accent ---------------------------------------------------- */

.hand { color: var(--rust); display: block; }
.hand path { stroke-dasharray: 600; stroke-dashoffset: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hand path { transition: stroke-dashoffset 1.4s var(--ease) 0.15s; }
  .hand.is-in path { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hand path { stroke-dashoffset: 0; }
}
.hand-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--rust-deep);
  line-height: 1.25;
  max-width: 26ch;
}

/* --- 17. View transitions ----------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.24s; }
  ::view-transition-new(root) { animation-duration: 0.32s; }
}
