/* Kickflip Club — site styles on top of base.css */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #e8341c;
  --black: #000000;
  --paper: #d7d9d8;

  --bg: var(--red);
  --surface: #f6f3ee;
  --ink: var(--black);
  --muted: #3b1a14;
  --accent: var(--black);
  --accent-ink: #ffffff;

  --font-display: 'Schibsted Grotesk', 'Arial Black', system-ui, sans-serif;
  --font-text: 'Schibsted Grotesk', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.3125rem, 1rem + 1.1vw, 2.125rem);
  --step-head: clamp(2.5rem, 1rem + 5.6vw, 6.5rem);
  --step-poster: clamp(3rem, 0.8rem + 8.2vw, 9rem);
  --step-display: clamp(4rem, 0.6rem + 14.2vw, 15rem);

  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 10.5vw, 10rem);
  --radius: 0px;
}

body { letter-spacing: -0.01em; }
h1, h2, h3, .head, .display { font-weight: 800; letter-spacing: -0.045em; line-height: 0.9; }

/* the found pictures: one treatment, photocopied black and white */
img, video { filter: grayscale(1) contrast(1.25) brightness(1.02); background: var(--black); }

/* ---------- buttons ---------- */
.button { min-height: 3.25rem; padding: 0 1.5rem; font-weight: 700; font-size: var(--step-body); }
.button-ink { background: var(--black); color: #fff; }
.button-red { background: var(--red); color: var(--black); }
@media (hover: hover) and (pointer: fine) {
  .button-ink:hover { background: #fff; color: var(--black); }
  .button-red:hover { background: #fff; color: var(--black); }
}
.button:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.field-ink .button:focus-visible, .field-ink :focus-visible { outline-color: #fff; }

/* ---------- top bar ---------- */
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; font-weight: 600; }
.wordmark { font-weight: 800; font-size: var(--step-body); letter-spacing: -0.03em; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: clamp(1rem, 2.6vw, 2.5rem); font-size: var(--step-body); }
.bar nav a { text-decoration-thickness: 2px; }
.bar .button { min-height: 2.75rem; }

/* ---------- hero ---------- */
.hero { min-height: min(calc(100svh - 5.5rem), 46rem); display: flex; flex-direction: column; padding-top: clamp(1rem, 4vh, 3rem); padding-bottom: clamp(1.25rem, 3.5vh, 2.25rem); }
.hero-title { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.055em; margin-left: -0.04em; }
.hero-line { display: block; white-space: nowrap; }
.hero-line-slot { display: flex; align-items: baseline; gap: 0.18em; }
.hero-line-slot .w:last-child { margin-left: -0.12em; }
.slot { flex: 1 1 auto; align-self: baseline; display: block; height: 0.635em; min-width: 1.6em; overflow: hidden; background: var(--red); }
.slot video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.6) brightness(1.15); background: transparent; }
.hero-sub { font-size: var(--step-body); line-height: 1.4; font-weight: 600; max-width: 40ch; margin-bottom: 1rem; }
.hero-foot { margin-top: auto; padding-top: clamp(1.5rem, 3.5vh, 2.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.hero-date { grid-column: 1 / span 6; }
.date-line { font-size: var(--step-lead); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.clock { margin-top: 0.5rem; font-weight: 600; }
.join { grid-column: 7 / -1; }
.join-label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.join-row { display: flex; }
.join-field { flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 1rem; border: 0; border-radius: 0; background: #fff; color: var(--black); font-size: max(1rem, var(--step-body)); }
.join-field::placeholder { color: #6b6b6b; }
.join-field:focus-visible { outline: 3px solid var(--black); outline-offset: 0; }
.join-field[aria-invalid="true"] { outline: 3px solid var(--black); outline-offset: -3px; }
.join-msg { min-height: 1.5em; margin-top: 0.5rem; font-weight: 600; }

/* the hand stamp shown when someone joins */
.stamp { display: flex; align-items: center; gap: 1.25rem; }
.stamp-mark { flex: none; display: grid; place-items: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; background: var(--black); color: var(--red); text-align: center; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; font-size: 1.05rem; transform: rotate(-12deg); }
.stamp-mark b { display: block; font-size: 2.1rem; }
.stamp p { font-weight: 600; max-width: 30ch; }
.field-ink .stamp-mark { background: var(--red); color: var(--black); }
@media (prefers-reduced-motion: no-preference) {
  .stamp-mark { animation: stamp 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-24deg) scale(1.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}

/* ---------- fields ---------- */
.field-ink { background: var(--black); color: #fff; }
.field-paper { background: var(--paper); color: var(--black); }
.soft { color: #2f3433; }
.field-ink .soft { color: #b8b2aa; }

/* ---------- the night ---------- */
.night { padding-block: var(--section); }
.night-title { font-size: var(--step-head); text-indent: 3vw; }
.night-body { margin-top: clamp(3rem, 6vw, 6rem); align-items: end; }
.night-pic { grid-column: 1 / span 4; grid-row: 1; }
.night-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.night-pic figcaption { margin-top: 0.6rem; color: #b8b2aa; }
.night-name { grid-column: 6 / span 2; grid-row: 1; align-self: start; font-weight: 600; color: #b8b2aa; font-size: var(--step-body); }
.runsheet { grid-column: 8 / -1; grid-row: 1; align-self: start; }
.runsheet li { display: grid; grid-template-columns: 4.5rem 1fr auto; column-gap: 1rem; align-items: baseline; padding-block: 0.8rem; font-size: var(--step-body); }
.runsheet li.group { margin-top: 1.75rem; }
.runsheet .t { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red); }
.runsheet .what { font-weight: 600; }
.runsheet .note { color: #b8b2aa; text-align: right; }

/* ---------- the park ---------- */
.park { padding-block: var(--section); }
.park-grid { row-gap: 2.5rem; }
.park-title { grid-column: 1 / -1; font-size: var(--step-head); }
.park-facts { grid-column: 1 / span 2; font-size: var(--step-small); font-weight: 500; }
.park-facts li + li { margin-top: 1.25rem; }
.park-facts b { display: block; font-weight: 800; font-size: var(--step-body); }
.park-lead { grid-column: 3 / span 7; max-width: none; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.park-more { grid-column: 10 / -1; font-size: var(--step-body); line-height: 1.5; }
.park-more p + p { margin-top: 1em; }
.park-lead strong { font-weight: 800; }
.dropcap { float: left; width: 3.6em; height: 3.6em; margin: 0.15em 0.5em 0 0; object-fit: cover; }
.park-wide { margin-top: clamp(4rem, 8vw, 8rem); }
.park-wide-frame { display: block; overflow: hidden; }
.park-wide img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 60%; }
.park-wide figcaption { margin-top: 0.6rem; color: #3d4241; }

/* ---------- price ---------- */
.price { min-height: min(88svh, 46rem); display: flex; flex-direction: column; justify-content: center; padding-block: var(--section); }
.price-title { font-size: var(--step-poster); line-height: 0.95; }
.price-block { display: inline-block; background: var(--black); color: var(--red); padding: 0 0.15em; line-height: 0.95; }
.price-foot { margin-top: 4rem; align-items: end; }
.price-text { grid-column: 1 / span 6; max-width: 30ch; font-size: var(--step-lead); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.price-pic { grid-column: 7 / span 3; }
.price-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: multiply; background: transparent; }
.price-actions { grid-column: 10 / -1; justify-self: end; text-align: right; }
.price-actions .small { margin-top: 0.75rem; font-weight: 600; font-size: var(--step-body); }

/* ---------- house rules ---------- */
.rules { padding-block: var(--section); }
.qa-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; }
.qa-row + .qa-row { margin-top: clamp(3rem, 5.5vw, 5.25rem); }
.qa-row dt { grid-column: 1 / span 6; }
.qa-row dd { grid-column: 8 / -1; margin: 0; max-width: 40ch; font-size: var(--step-body); line-height: 1.55; }
.q { font-size: clamp(1.625rem, 0.9rem + 2.4vw, 2.75rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.qa-head h2.q { font-weight: 800; }

/* ---------- close ---------- */
.close { min-height: min(100svh, 50rem); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding-block: 2rem 1.5rem; }
.close-q { font-size: var(--step-poster); font-weight: 800; line-height: 0.9; letter-spacing: -0.055em; max-width: none; }
.join-end { width: min(100%, 34rem); margin-inline: auto; }
.join-end .join-label { text-align: center; }
.join-end .join-field { width: 100%; text-align: center; }
.choice { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.25rem; }
.choice .button { min-width: 12rem; min-height: 3.5rem; }
.or { color: #b8b2aa; font-weight: 600; }
.join-end .join-msg { margin-top: 1rem; color: #b8b2aa; max-width: none; }
.join-end .stamp { justify-content: center; text-align: left; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; min-height: min(100svh, 50rem); display: flex; flex-direction: column; padding-top: clamp(3rem, 8vh, 6rem); }
.foot-invite { grid-column: 1 / span 7; }
.foot-line { font-size: var(--step-head); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; max-width: none; margin-bottom: 2rem; }
.foot-links { grid-column: 10 / -1; font-weight: 600; font-size: var(--step-body); }
.foot-links li + li { margin-top: 0.4rem; }
.foot-links a { text-decoration-thickness: 2px; }
.foot-legal { margin-top: auto; display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 0.5rem; font-weight: 500; }
.foot-legal p:first-child { max-width: 62ch; }
.foot-legal p:last-child { white-space: nowrap; font-weight: 700; }
.foot-mark { font-size: 24.5vw; font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap; margin: 0 0 0 -0.04em; transform: translateY(24%); max-width: none; }

/* ---------- tablet ---------- */
@media (max-width: 64em) {
  .bar nav { display: none; }
  .hero-date { grid-column: 1 / -1; margin-bottom: 1.75rem; }
  .join { grid-column: 1 / -1; }
  .night-pic { grid-column: 1 / span 5; }
  .night-name { display: none; }
  .runsheet { grid-column: 6 / -1; }
  .park-facts { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 2rem; }
  .park-facts li + li { margin-top: 0; }
  .park-lead { grid-column: 1 / span 7; }
  .park-more { grid-column: 8 / -1; }
  .price-text { grid-column: 1 / span 7; }
  .price-pic { grid-column: 8 / -1; }
  .price-actions { grid-column: 1 / -1; justify-self: start; text-align: left; margin-top: 2rem; }
  .qa-row dt { grid-column: 1 / span 6; }
  .qa-row dd { grid-column: 7 / -1; }
  .foot-invite { grid-column: 1 / span 8; }
  .foot-links { grid-column: 9 / -1; }
  .hero { min-height: min(calc(100svh - 5.5rem), 46rem); }
  .close { min-height: min(100svh, 46rem); }
  .foot { min-height: auto; }
  .foot-legal { margin-top: clamp(4rem, 12vw, 7rem); }
}

/* ---------- phone ---------- */
@media (max-width: 40em) {
  .bar { gap: 1rem; }
  .bar .button { padding: 0 1rem; font-size: 1rem; }
  .hero { min-height: auto; padding-top: 1.5rem; }
  .hero-title { font-size: 16vw; line-height: 0.9; }
  .slot { min-width: 1.4em; }
  .hero-foot { padding-top: 2.5rem; }
  .join-row { flex-direction: column; gap: 0.5rem; }
  .join-row .button { width: 100%; }

  .night-title { text-indent: 0; }
  .night-body { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 2.5rem; }
  .night-pic { width: 70%; align-self: flex-end; }
  .runsheet li { grid-template-columns: 3.75rem 1fr; }
  .runsheet .note { grid-column: 2; text-align: left; font-size: var(--step-small); }

  .park-lead, .park-more { grid-column: 1 / -1; }
  .dropcap { width: 5em; height: 5em; }
  .park-facts { flex-direction: column; gap: 1rem; }
  .park-wide img { aspect-ratio: 4 / 3; }

  .price { min-height: auto; }
  .price-title { font-size: var(--step-head); }
  .price-foot { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; margin-top: 2.5rem; }
  .price-actions { margin-top: 0; }
  .price-actions .button { width: 100%; }

  .qa-row { display: block; }
  .qa-row + .qa-row { margin-top: 3.5rem; }
  .qa-row dd { margin-top: 0.75rem; }
  .q { font-size: var(--step-lead); }

  .close { min-height: min(92svh, 44rem); }
  .choice { flex-direction: column; gap: 0.75rem; }
  .choice .button { width: 80%; }

  .foot { min-height: auto; }
  .foot-invite, .foot-links { grid-column: 1 / -1; }
  .foot-invite .button { width: 100%; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2rem; }
  .foot-links li + li { margin-top: 0; }
  .foot-legal { flex-direction: column; gap: 0.75rem; }
  .foot-mark { font-size: 34vw; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* entrances start faint, never invisible: a stalled transition still leaves the words readable */
  .js [data-reveal]:not(.shutter) { opacity: 0.2; transform: translateY(32px); }
  .js [data-reveal].is-in:not(.shutter) { opacity: 1; transform: none; }
  .js .runsheet li[data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }
  .js .park-lead[data-reveal], .js .park-more[data-reveal] { transition-delay: 90ms; }
  .js .price-pic[data-reveal] { transition-delay: 90ms; }
  .js .price-actions[data-reveal] { transition-delay: 160ms; }
  .js .slot { animation: shutter 1100ms var(--ease-in-out) 380ms both; }
  .js .slot video { animation: settle 1500ms var(--ease-soft) 380ms both; }
  @keyframes shutter { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
  @supports (animation-timeline: view()) {
    .rise-in { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise-in { from { transform: translateY(48px); } to { transform: none; } }
    .park-wide img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
    .foot-mark { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes rise { from { transform: translateY(60%); } to { transform: translateY(24%); } }
  }
  .runsheet li { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), background-color 180ms ease; }
}
.runsheet li.is-now .what::after { content: ' · on now'; color: var(--red); }
