/* antiGRVL — direction "The sentence is the layout".
   Colours: pine night ground, birch ink, road-dust ochre for the one action. */
:root {
  --bg: #11130f;
  --surface: #1b1e18;
  --ink: #e7e6df;
  --muted: #b2ad9c;
  --accent: #d6a443;
  --accent-strong: #e8b75a;
  --accent-ink: #15120a;
  --field-1: #c99a3c;
  --field-1-ink: #17130a;
  --field-2: #26331f;
  --field-2-ink: #e7e6df;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Five sizes do all the work. */
  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-head: clamp(1.5rem, 1.25rem + 0.9vw, 2.125rem);
  --step-display: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem);

  --margin: clamp(20px, 3vw, 40px);
  --content: 1200px;
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(48px, 5vw, 80px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
p { max-width: 58ch; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
h3 { font-family: var(--text); font-weight: 500; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.frame { padding-inline: max(var(--margin), (100% - var(--content)) / 2); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: calc(var(--section) * 0.6); }
.section-title { font-size: var(--step-head); }

.link {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 46px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--accent-strong); } }
.button--quiet { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .button--quiet:hover { background: #fff; } }

.preview-bar { background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 500; padding: 8px var(--margin); }

/* ---------- Header ---------- */
.header { position: relative; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.header__logo { font: 800 var(--step-body)/1 var(--display); letter-spacing: 0.02em; text-decoration: none; margin-right: auto; }
.header__menu { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); font: 400 var(--step-body)/1 var(--text); text-decoration: none;
}
.nav__link.is-active { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--accent); } }
.nav__item--parent > .nav__link::after { content: "▾"; margin-left: 0.35em; font-size: 0.75em; }
.nav__item--button .nav__link {
  background: var(--accent); color: var(--accent-ink); padding: 0 18px; min-height: 42px; font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.nav__item--button .nav__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .nav__item--button .nav__link:hover { background: var(--accent-strong); color: var(--accent-ink); } }
.nav__sub {
  list-style: none; margin: 0; padding: 8px 0; min-width: 200px;
  position: absolute; top: calc(100% + 8px); left: -20px;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); /* taste-skill-ignore: a dropdown menu floats */
  display: none;
}
/* Invisible bridge over the gap, so the pointer can travel from the item into the menu. */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
.nav__item--parent:hover .nav__sub,
.nav__item--parent:focus-within .nav__sub,
.nav__item--parent.is-open .nav__sub { display: block; }
.nav__sublink { display: block; padding: 10px 20px; text-decoration: none; }
.nav__sublink.is-active { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .nav__sublink:hover { background: #d9d4c5; } }

@media (max-width: 860px) {
  .header__inner { height: 60px; }
  .header__menu {
    display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0;
    color: var(--ink); font: 500 var(--step-body)/1 var(--text); cursor: pointer;
  }
  .nav {
    display: none; position: fixed; inset: 60px 0 0; z-index: 60; overflow-y: auto;
    background: var(--surface); padding: 24px var(--margin) 40px;
  }
  .nav-open .nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { font: 800 1.375rem/1.1 var(--display); letter-spacing: -0.02em; min-height: 52px; }
  .nav__item--parent > .nav__link::after { font-size: 0.6em; }
  .nav__sub {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; /* taste-skill-ignore */
    background: none; color: var(--ink); padding: 0 0 12px; min-width: 0;
  }
  .nav__item--parent.is-open .nav__sub { display: block; }
  .nav__sublink { padding: 10px 0; font-size: 1.25rem; }
  .nav__item--button { margin-top: 24px; }
  .nav__item--button .nav__link { font: 500 var(--step-body)/1 var(--text); justify-content: center; width: 100%; }
}

/* ---------- Hero: the sentence with the picture inside ---------- */
.hero { display: flex; flex-direction: column; padding-block: clamp(24px, 3.5vw, 48px) clamp(24px, 3vw, 40px); }
.hero__title { font-size: var(--step-display); line-height: 0.98; max-width: 100%; }
/* A panorama between the title and the description, inside the content column. */
.hero__pano { margin-top: clamp(16px, 2vw, 24px); aspect-ratio: 11 / 2; max-height: 240px; width: 100%; overflow: hidden; background: var(--surface); }
.hero__pano img { width: 100%; height: 100%; object-fit: cover; }
.hero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 20px; align-items: start; }
.hero__lede { grid-column: 1 / span 7; font-size: var(--step-lead); line-height: 1.35; max-width: 48ch; }
.hero__actions { grid-column: 9 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; justify-self: end; }


@media (max-width: 700px) {
  .hero { min-height: auto; padding-block: 40px 48px; }
  .hero__title { line-height: 1.02; }
  .hero__pano { aspect-ratio: 4 / 1; margin-top: 12px; }
  .hero__foot { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .hero__actions { justify-self: stretch; align-items: stretch; }
}

/* ---------- Tags: a marquee of the four words ---------- */
.tags { overflow: hidden; padding-block: 14px; background: var(--surface); }
.tags__track { display: flex; width: max-content; animation: marquee 110s linear infinite; }
.tags__list { list-style: none; margin: 0; padding: 0; display: flex; }
.tags__item { font: 800 var(--step-body)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; }
.tags__item::after { content: ""; width: 0.32em; height: 0.32em; background: var(--accent); margin: 0 0.9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (heading block) ---------- */
.statement { padding-block: calc(var(--section) * 0.8); text-align: center; }
.statement__inner { max-width: 66%; margin-inline: auto; }
.statement__title { font-size: var(--step-head); margin-bottom: 20px; }
.statement__text { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }
@media (max-width: 700px) {
  .statement { text-align: left; padding-block: 56px; }
  .statement__inner { max-width: none; }
}

/* ---------- Rows with margin photographs (cards, bikefitters) ---------- */
.rows { padding-block: calc(var(--section) * 0.6); }
.rows__head { grid-column: 1 / span 4; align-self: start; padding-top: 4px; }
.rows__title { font-size: var(--step-head); }
.rows__list { grid-column: 5 / -1; display: flex; flex-direction: column; gap: 28px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gap); align-items: start; }
.row__title { margin-bottom: 8px; }
.row__text { max-width: 34ch; font-size: var(--step-body); }
.row__text p + p { margin-top: 0.6em; }
.row__meta { color: var(--muted); margin-bottom: 8px; }
.row__link { display: inline-block; margin-top: 14px; }
.row__img { height: auto; object-fit: cover; background: var(--surface); }
.row:nth-child(3n + 1) .row__img { width: 168px; aspect-ratio: 4 / 3; }
.row:nth-child(3n + 2) .row__img { width: 200px; aspect-ratio: 16 / 9; }
.row:nth-child(3n + 3) .row__img { width: 140px; aspect-ratio: 1; }
.row__img--logo { object-fit: contain; background: #fff; }
@media (max-width: 860px) {
  .rows__head { grid-column: 1 / -1; position: static; margin-bottom: 28px; }
  .rows__list { grid-column: 1 / -1; gap: 28px; }
  .row { grid-template-columns: 1fr; row-gap: 20px; }
  .row { grid-template-columns: minmax(0, 1fr) 96px; }
  .row .row__img, .row:nth-child(n) .row__img { width: 96px; aspect-ratio: 1; }
}

/* ---------- Strip of cards (cards block): photo, title, one line ---------- */
.strip__title { margin-bottom: 20px; }
.strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: var(--gap); }
.strip__item { min-width: 0; }
.strip__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface); filter: grayscale(1) contrast(1.06); }
.strip__name { margin-top: 12px; font-size: var(--step-body); font-weight: 500; line-height: 1.25; }
.strip__name a { text-decoration: none; }
.strip__text { margin-top: 4px; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .strip__img { transition: filter var(--t-ui) ease; }
  .strip__item:hover .strip__img { filter: grayscale(0.2) contrast(1.02); }
}
@media (max-width: 860px) {
  .strip__list {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scroll-padding-inline: var(--margin);
    scrollbar-width: none;
  }
  .strip__list::-webkit-scrollbar { display: none; }
  .strip__item { scroll-snap-align: start; }
}

/* ---------- Text: plain article, or large paragraph with a picture drop cap ---------- */
.article__head { grid-column: 1 / span 4; }
.article__body { grid-column: 5 / span 7; }
.rich > * + * { margin-top: 0.9em; }
.rich h2 { font-size: var(--step-lead); font-family: var(--text); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin-top: 1.6em; }
.rich h3 { margin-top: 1.6em; }
.rich h2:first-child, .rich h3:first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li + li { margin-top: 0.45em; }
.rich li::marker { color: var(--accent); }
.rich a { text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
.rich p[style*="center"] { text-align: left !important; }

.dropcap__facts { grid-column: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; color: var(--muted); font-size: var(--step-body); padding-top: 0.4em; }
.dropcap__facts li { max-width: 16ch; }
.dropcap__main { grid-column: 3 / -1; }
.dropcap__title { font-size: var(--step-head); margin-bottom: 20px; }
.dropcap__text { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }
.dropcap__text p + p { margin-top: 0.8em; color: var(--muted); }
.dropcap__img { float: left; width: 2.6em; height: 2.6em; border-radius: 50%; object-fit: cover; margin: 0.1em 0.6em 0 0; background: #fff; }
@media (max-width: 860px) {
  .article__head, .article__body { grid-column: 1 / -1; }
  .article__head { margin-bottom: 32px; }
  .dropcap__main { grid-column: 1 / -1; }
  .dropcap__facts { grid-column: 1 / -1; order: 2; flex-direction: row; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; }
  .dropcap__img { width: 3em; height: 3em; }
}

/* ---------- List: statement left, table pushed right ---------- */
.list__title { grid-column: 1 / span 5; font-size: var(--step-head); max-width: 12ch; }
.list__title::first-line { word-spacing: 0; }
.list__img { grid-column: 1 / span 4; align-self: end; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.list__rows { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; }
.list__img + .list__rows { grid-column: 6 / -1; }
.list__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 0 var(--gap); padding-block: 8px; }
.list__row + .list__row { margin-top: 4px; }
.list__kind { color: var(--muted); }
.list__value { font-size: var(--step-lead); line-height: 1.2; }
.list__value a { text-decoration: none; }
.list__value a::after { content: " →"; color: var(--accent); }
@media (max-width: 860px) {
  .list__img { grid-column: 1 / -1; order: 3; width: 60%; justify-self: end; margin-top: 48px; }
  .list__rows { grid-column: 1 / -1; }
  .list__row { grid-template-columns: 1fr; }
}

/* ---------- Gallery: a pile of prints on the ochre table ---------- */
.gallery { position: relative; overflow: hidden; background: var(--field-1); color: var(--field-1-ink); padding-block: calc(var(--section) * 0.8); }
.gallery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.gallery__title { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; }
.gallery__title span { display: block; }
.gallery__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.gallery__note { max-width: 30ch; }
.gallery__shuffle {
  min-height: 42px; padding: 0 18px; border: 2px solid var(--field-1-ink); background: transparent; color: var(--field-1-ink);
  font: 500 var(--step-small)/1 var(--text); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.gallery__shuffle:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .gallery__shuffle:hover { background: var(--field-1-ink); color: var(--field-1); } }

.pile { position: relative; height: calc(var(--rows, 1) * clamp(250px, 24vw, 330px) + 60px); margin-top: 28px; }
.print {
  position: absolute; left: var(--x); top: var(--y); width: clamp(140px, 15vw, 210px); margin: 0;
  padding: 8px 8px 0; background: #f6f5f1; color: #1d1c19;
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: transform 420ms var(--ease-out), left 520ms var(--ease-out), top 520ms var(--ease-out), box-shadow var(--t-ui) ease;
  box-shadow: 0 6px 18px rgba(23, 19, 10, 0.28); /* taste-skill-ignore: photo prints lie on a table */
  touch-action: manipulation; user-select: none;
}
.print__open { display: block; cursor: zoom-in; }
.print img { width: 100%; height: auto; max-height: 260px; object-fit: cover; display: block; background: #ddd; }
.print__caption { font: 700 1.125rem/1.1 "Caveat", "Comic Sans MS", cursive; padding: 6px 2px 8px; text-align: center; }
.print:not(:has(.print__caption)) { padding-bottom: 22px; }
.print.is-dragging { transition: box-shadow var(--t-ui) ease; box-shadow: 0 18px 40px rgba(23, 19, 10, 0.4); cursor: grabbing; }
@media (hover: hover) and (pointer: fine) {
  .print { cursor: grab; }
  .print:hover { transform: translate(-50%, -50%) rotate(calc(var(--r) * 0.4)) scale(1.04); }
}
@media (max-width: 700px) {
  .gallery__side { align-items: flex-start; text-align: left; }
  .pile { height: calc(var(--rows, 1) * 60vw + 24px); }
  .print { width: 40vw; padding: 5px 5px 0; }
  .print img { max-height: 46vw; }
  .print__caption { font-size: 0.9375rem; padding: 4px 2px 6px; }
}

/* Full-screen photo */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 9, 7, 0.94); color: var(--ink); }
.lightbox::backdrop { background: rgba(8, 9, 7, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 64px; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: calc(100dvh - 160px); object-fit: contain; }
.lightbox__caption { font: 700 1.5rem/1.1 "Caveat", "Comic Sans MS", cursive; color: var(--accent); min-height: 1em; }
.lightbox__btn, .lightbox__close {
  position: absolute; border: 0; background: rgba(231, 230, 223, 0.12); color: var(--ink); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font: 400 2rem/1 var(--text); display: grid; place-items: center;
  transition: background-color var(--t-hover) ease;
}
.lightbox__btn--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 16px; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover, .lightbox__close:hover { background: rgba(231, 230, 223, 0.25); } }
@media (max-width: 700px) {
  .lightbox__figure { padding: 56px 8px 72px; }
  .lightbox__btn { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Catalog table (clubs, races) ---------- */
.catalog__head { grid-column: 1 / span 3; align-self: start; position: sticky; top: 24px; }
.catalog__title { font-size: var(--step-head); }
.catalog__lede { margin-top: 20px; color: var(--muted); max-width: 28ch; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.filter[hidden] { display: none; }
.filter__btn {
  min-height: 38px; padding: 0 12px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: 400 var(--step-small)/1 var(--text);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.filter__btn:active { transform: scale(0.97); }
.filter__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter__btn span { color: var(--muted); margin-left: 0.35em; }
.filter__btn[aria-pressed="true"] span { color: #55524a; }
@media (hover: hover) and (pointer: fine) { .filter__btn:hover:not([aria-pressed="true"]) { background: #2a2e25; } }
.catalog__body { grid-column: 4 / -1; }
.catalog__group + .catalog__group { margin-top: 36px; }
.catalog__group-title { font-size: var(--step-body); font-weight: 500; font-family: var(--text); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 16px; color: var(--accent); }
.entries { list-style: none; margin: 0; padding: 0; }
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap); }
.entry {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px;
  align-items: baseline; align-content: start;
}
.entry__img { grid-row: 1 / span 3; align-self: start; }
.entry__head { grid-column: 2; grid-row: 1; }
.entry__link { grid-column: 3; grid-row: 1; justify-self: end; }
.entry__text { grid-column: 2 / -1; }
.entry[hidden] { display: none; }
.entry__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.entry p { max-width: none; }
.entry__name { font-size: var(--step-body); font-weight: 500; line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.entry__kind { color: var(--muted); margin-top: 2px; font-size: var(--step-small); }
.entry__when { color: var(--accent); margin-top: 2px; font-size: var(--step-small); }
.entry__text p + p { margin-top: 0.5em; }
.entry__link { font-size: var(--step-small); white-space: nowrap; text-decoration: none; color: var(--ink); }
.entry__link::after { content: " →"; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .entry__link:hover { color: var(--accent); } }
@media (max-width: 1000px) {
  .entries { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .catalog__head { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .catalog__body { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .entry { grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
  .entry__img { width: 52px; height: 52px; }
  .entry__link { grid-column: 2; grid-row: 4; justify-self: start; }
}

/* ---------- Race calendar: a paper sheet on the fridge, races written in red marker ---------- */
.cal { --paper: #f3efe5; --print: #1f1e1b; --rule: #d9d3c4; --marker: #d3322a; --pen: #2f2e2a;
  margin-bottom: calc(var(--section) * 0.7); }
.cal__title { font-size: var(--step-head); margin-bottom: 20px; }
.cal__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.fridge { position: relative; margin: 12px 0 0; background: var(--paper); color: var(--print); padding: 22px 18px 14px; transform: rotate(-0.7deg); }
.fridge__magnet { position: absolute; top: -11px; left: calc(50% - 13px); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.fridge__month { font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 12px; }
.fridge__month span { color: #8c877a; }
.fridge__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fridge__grid th { font: 500 0.75rem/1 var(--text); color: #6f6a5e; text-align: left; padding: 0 6px 6px; }
.fridge__grid th.is-sunday, .fridge__grid td.is-sunday .fridge__num { color: #c0392b; }
.fridge__grid td { border: 1px solid var(--rule); height: 54px; padding: 5px 6px; vertical-align: top; }
.fridge__grid td.is-blank { background: #ebe6da; }
.fridge__num { position: relative; display: inline-block; font: 500 0.875rem/1 var(--text); font-variant-numeric: tabular-nums; padding: 2px 3px; }
td.is-past .fridge__num { color: #9a9588; }
td.is-today .fridge__num { text-decoration: underline 2px var(--accent); text-underline-offset: 3px; }
.fridge__cross { position: absolute; left: -5px; top: -6px; width: calc(100% + 10px); height: calc(100% + 12px); fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; opacity: 0.75; overflow: visible; }
.fridge__circle { position: absolute; left: -9px; top: -7px; width: calc(100% + 18px); height: calc(100% + 14px); fill: none; stroke: var(--marker); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; overflow: visible; transform: rotate(-6deg); }
.fridge__note {
  display: block; margin-top: 3px; color: var(--marker); text-decoration: none;
  font: 700 1.125rem/0.95 "Caveat", "Comic Sans MS", cursive; transform: rotate(-3deg); transform-origin: left top;
  overflow-wrap: anywhere;
}
td:nth-child(even) .fridge__note { transform: rotate(2deg); }
@media (hover: hover) and (pointer: fine) { .fridge__note:hover { text-decoration: underline; } }
.cal__side-title { font-weight: 500; margin-bottom: 12px; }
.cal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cal__list li { display: grid; grid-template-columns: 9em minmax(0, 1fr); column-gap: 12px; align-items: baseline; }
.cal__date { color: var(--accent); font-size: var(--step-small); }
.cal__list a { text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .cal__list a:hover { color: var(--accent); } }
.cal__note { grid-column: 2; color: var(--muted); font-size: var(--step-small); }
.cal__hint, .cal__empty { color: var(--muted); font-size: var(--step-small); }
@media (max-width: 860px) {
  .cal__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fridge { padding: 18px 10px 10px; transform: rotate(-0.5deg); }
  .fridge__grid th { padding: 0 2px 4px; }
  .fridge__grid td { height: 46px; padding: 4px 2px; }
  .fridge__note { font-size: 0.8125rem; line-height: 0.9; }
}
@media (prefers-reduced-motion: no-preference) {
  .fridge__circle { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw-line 700ms var(--ease-out) 300ms forwards; }
  .fridge__cross path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw-line 400ms var(--ease-out) 200ms forwards; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
}

/* ---------- Workshops with members' reviews, in three verdict sections ---------- */
.filter__label { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }
.filter--tight { margin-top: 8px; }
.filter__empty { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.shops-group { --tone: var(--surface); --tone-ink: var(--ink); }
.shops-group--good { --tone: var(--accent); --tone-ink: var(--accent-ink); }
.shops-group--bad { --tone: #d3322a; --tone-ink: #fff; }
.shops-group[hidden] { display: none; }
.shops-group + .shops-group { margin-top: clamp(40px, 4vw, 64px); }
.shops-group__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 10px 14px;
  background: var(--tone); color: var(--tone-ink); font: 500 var(--step-lead)/1.1 var(--text);
}
.shops-group__title span { font-size: var(--step-small); opacity: 0.75; }
.shops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); align-items: start; }
.shop { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
.shop[hidden] { display: none; }
.shop__badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.125rem/1 var(--display); background: var(--tone); color: var(--tone-ink);
}
.shop__url { display: inline-block; margin-top: 2px; font-size: var(--step-small); color: var(--accent); text-decoration: none; }
.shop__url::after { content: " →"; }
@media (hover: hover) and (pointer: fine) { .shop__url:hover { text-decoration: underline; } }
.shop__summary { margin-top: 6px; }
.shop__places { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--step-small); color: var(--muted); }
.shop__places a { color: var(--ink); }
.shop__district { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.8125rem; }
.shop__quote { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid var(--tone); font-style: italic; max-width: 60ch; }
.shops-group--mixed .shop__quote--good { border-left-color: var(--accent); }
.shops-group--mixed .shop__quote--bad { border-left-color: #d3322a; }
.shop__more { margin-top: 8px; font-size: var(--step-small); }
.shop__more summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
@media (max-width: 1000px) { .shops { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .shop { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
  .shop__badge { width: 44px; height: 44px; font-size: 1rem; }
}

/* ---------- Places it is convenient to ride to ---------- */
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; }
.place { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
.place[hidden] { display: none; }
.place__icon { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; }
.place__icon--letters { display: grid; place-items: center; background: var(--surface); color: var(--ink); font: 800 1.125rem/1 var(--display); }
.place__kind { margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.place__text { margin-top: 6px; }
.place__amenities { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.place__amenities li { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 0.8125rem; }
.place .shop__places { margin-top: 8px; display: block; }
@media (max-width: 1000px) { .places { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .place { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
  .place__icon { width: 52px; height: 52px; }
}

/* ---------- 404: a crash in the woods, toned like a print ---------- */
.oops { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.oops__code { font: 800 clamp(4.5rem, 3rem + 6vw, 9rem)/0.85 var(--display); letter-spacing: -0.05em; color: var(--accent); }
.oops__title { font-size: var(--step-head); margin-top: 12px; }
.oops__lede { margin-top: 14px; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.oops__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.oops__photo { position: relative; margin: 0; background: var(--field-2); transform: rotate(1.2deg); }
/* Duotone: black shadows, gold highlights. Hides the noise of a phone video still. */
.oops__photo img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.35) brightness(0.95); mix-blend-mode: luminosity; opacity: 0.9; }
.oops__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--accent); mix-blend-mode: multiply; opacity: 0.55;
}
/* Coarse halftone dots over the picture. */
.oops__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='3' cy='3' r='1.3' fill='%2311130f'/%3E%3C/svg%3E");
}
.oops__circle {
  position: absolute; z-index: 3; left: 17%; top: 40%; width: 72%; height: 54%;
  fill: none; stroke: #d3322a; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; overflow: visible; transform: rotate(-4deg);
}
.oops__note {
  position: absolute; z-index: 3; right: 4%; top: 26%; transform: rotate(-7deg);
  font: 700 clamp(1.5rem, 1rem + 1.6vw, 2.25rem)/1 "Caveat", "Comic Sans MS", cursive; color: #d3322a;
  background: var(--paper, #f3efe5); padding: 2px 10px 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .oops__circle path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw-line 900ms var(--ease-out) 400ms forwards; }
}
@media (max-width: 860px) {
  .oops { grid-template-columns: 1fr; }
  .oops__photo { order: -1; transform: rotate(0.8deg); }
}

/* ---------- Anchors (in-page menu) ---------- */
.anchors { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.anchors__list { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 28px; }
.anchors__link { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .anchors__link:hover { color: var(--accent); } }
[id] { scroll-margin-top: 80px; }

/* ---------- Video ---------- */
.video__head { grid-column: 1 / span 4; }
.video__grid { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.video__item { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.video__item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .video__head, .video__grid { grid-column: 1 / -1; } .video__head { margin-bottom: 32px; } }

/* ---------- Social ---------- */
.social__list { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- CTA: the question at both edges ---------- */
.cta { background: #0a0b09; text-align: center; padding-block: var(--section); }
.cta__question { font-size: var(--step-display); line-height: 1; letter-spacing: -0.04em; }
.cta__line { display: block; }
.cta__middle { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
.cta__choice { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.cta__or { color: var(--muted); }
.cta__note { color: var(--muted); max-width: 46ch; }
.cta__note a { color: var(--ink); }
@media (max-width: 700px) {
  .cta__choice { flex-direction: column; width: 80%; gap: 10px; }
  .cta__choice .button { width: 100%; }
}

/* ---------- Footer: the contact as the headline ---------- */
.footer { background: var(--field-2); color: var(--field-2-ink); display: flex; flex-direction: column; padding-block: 40px 28px; }
/* Gold topographic lines over the whole footer, under the text. */
.footer { position: relative; isolation: isolate; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/topo.d2c497effa93.svg") center / cover no-repeat; opacity: 0.22;
}
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.footer__notes { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.footer__mark { font: 800 var(--step-body)/1.4 var(--display); letter-spacing: 0.02em; }
.footer__up { grid-column: 9 / -1; justify-self: end; }
.footer__contact { padding-top: 32px; }
.footer__big { display: inline-block; font: 800 clamp(1.5rem, 1rem + 2vw, 2.5rem)/1 var(--display); letter-spacing: -0.04em; text-decoration: none; transition: color var(--t-hover) ease; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .footer__big:hover { color: var(--accent); } }
.footer__meta { display: grid; grid-template-columns: 1fr auto; gap: 16px var(--gap); margin-top: 32px; font-size: var(--step-small); align-items: start; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { min-height: 32px; display: inline-flex; align-items: center; }
.footer__city { text-align: right; }
@media (max-width: 860px) {
  .footer__notes { grid-column: 1 / -1; flex-direction: column; }
  .footer__up { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
  .footer__meta { grid-template-columns: 1fr; }
  .footer__city { text-align: left; }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 80; left: var(--margin); right: var(--margin); bottom: 16px; margin-inline: auto; max-width: 760px;
  display: flex; align-items: center; gap: 16px 24px; padding: 16px 20px;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: a floating notice */
}
.consent[hidden] { display: none; }
.consent__text { font-size: var(--step-small); }
.consent__text a { color: inherit; }
.consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .button { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }
.consent .button--quiet { background: #d9d6cc; color: var(--bg); }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; bottom: 8px; left: 8px; right: 8px; }
  .consent__actions .button { flex: 1; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .shutter { clip-path: inset(0 100% 0 0); transition: clip-path 1100ms var(--ease-in-out) 350ms; }
  .js .shutter.is-in { clip-path: inset(0); }

  .js .hero__title { animation: rise 900ms var(--ease-expo) both 80ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
  .hero__pano img { animation: drift 14s var(--ease-soft) infinite alternate; }
  @keyframes drift { from { transform: scale(1.04) translateX(-2%); } to { transform: scale(1.14) translateX(2%); } }


}
@media (prefers-reduced-motion: reduce) {
  .tags__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* One treatment for every photograph: black and white, like the club's own pictures. */
.hero__pano img, .row__img:not(.row__img--logo), .list__img { filter: grayscale(1) contrast(1.06); }
