/* The home page: one weekend, one phone. The logo's dark #151B18
   and lime #CAFF4B carry the story, the organizers' card, the download band and the footer. The phone's
   screens are app.css. Base, type, buttons, header, organizers, download and footer came from the
   home page before it (home.css, removed 2026-11-17) unchanged. */
@font-face {
  font-family: Commissioner;
  src: url(/fonts/commissioner-latin.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  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: Commissioner;
  src: url(/fonts/commissioner-greek.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  color-scheme: light dark;
  --ink: #151b18;
  --ink-line: #2f3a33;
  --on-ink: #eef2e8;
  --on-ink-muted: #b3bcb0;
  --lime: #caff4b;
  --lime-hover: #d9ff80;
  --white: #fff;
  /* Text on the lime band. */
  --on-lime-muted: #26330d;

  /* The drawn phone and its heads-up notification (Android, dark). The screens inside it are app.css. */
  --phone-body: #0b0e0c;
  --phone-rim: #2b332e;
  --push-bg: #2b312d;
  --push-on: #e2e3de;
  --push-muted: #c4c8c0;

  --bg: #f6f7f1;
  --fg: #151b18;
  --muted: #4b5249;
  --link: #3d5a00;
  --focus: #3d5a00;

  --gutter: clamp(16px, 4vw, 48px);
  --page: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151b18;
    --fg: #eef2e8;
    --muted: #b3bcb0;
    --link: #caff4b;
    --focus: #caff4b;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Commissioner, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

.skip,
.top,
.organizers-card,
.foot {
  --focus: var(--lime);
}

.download {
  --focus: var(--ink);
}

.i {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  left: 12px;
}

/* ---------- Type ---------- */

h1,
main h2 {
  font-variation-settings: "FLAR" 100;
  text-wrap: balance;
}

main h2 {
  margin: 0 0 20px;
  font-size: clamp(2.25rem, 1.35rem + 3.4vw, 4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.035em;
  /* At 850 and this tracking the word spaces nearly closed ("Ask to join."): give them back a little. */
  word-spacing: 0.06em;
}

.lead {
  margin: 0;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 54px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.btn .i {
  width: 1.25em;
  height: 1.25em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--lime-hover);
}

.btn-small {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.soon {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--on-ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.soon-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--lime);
}

/* Which phones, under it: the page's one word about iPhone. */
.soon small {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  color: var(--white);
}

/* The header's and footer's links are 44 px tall to a finger, whatever their text's height. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 31px;
  fill: var(--lime);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.top-link:hover {
  text-decoration: underline;
}

@media (max-width: 759px) {
  .top-link-wide {
    display: none;
  }
}

/* On a phone the language link must fit; the demo request is in the schools band, further down. */
@media (max-width: 459px) {
  .top .btn {
    display: none;
  }
}


/* ---------- Schools and clubs ---------- */

.organizers {
  padding: 0 var(--gutter) clamp(72px, 10vw, 136px);
}

.organizers-card {
  display: grid;
  max-width: var(--page);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  color: var(--on-ink);
}

@media (min-width: 900px) {
  .organizers-card {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.organizers-photo {
  position: relative;
  min-height: 380px;
}

.organizers-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.org-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.5);
}

.org-link span {
  font-weight: 500;
}

.organizers-text {
  padding: clamp(32px, 5vw, 72px);
}

.organizers-text h2 {
  color: var(--white);
}

.organizers-text .lead {
  color: var(--on-ink-muted);
}

.ticks {
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.ticks .i {
  width: 24px;
  height: 24px;
  color: var(--lime);
}

.organizers-note {
  margin: 0 0 24px;
  color: var(--on-ink-muted);
  font-size: 0.95rem;
}

/* The questionnaire first; email for whoever would rather write. */
.organizers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.organizers-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-ink);
  font-weight: 650;
}

.organizers-mail:hover {
  color: var(--lime);
}

/* The demo request (demo.js): a name, a school or club and one way to reach them, on the ink card.
   Fields are rounded rectangles in the card's hairline, the button the band's one lime pill. */
.demo-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-bottom: 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 519px) {
  .demo-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 6px;
  color: var(--on-ink-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.field input {
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: transparent;
  color: var(--white);
  caret-color: var(--lime);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s;
}

.field input:hover {
  border-color: var(--on-ink-muted);
}

.field input:focus-visible {
  border-color: var(--lime);
  border-radius: 14px;
}

/* The browser's own fill colour would light the field up on the ink. */
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--ink) inset;
  -webkit-text-fill-color: var(--white);
}

.demo-consent {
  margin: 0 0 16px;
  color: var(--on-ink-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.demo-consent a {
  color: var(--on-ink);
}

.demo-status {
  margin: 0 0 14px;
  color: var(--white);
  font-weight: 650;
}

.demo-status.is-info {
  color: var(--on-ink-muted);
  font-weight: 500;
}

.demo-status:empty {
  display: none;
}

.demo-done {
  padding: 18px 20px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  font-size: 1.0625rem;
}

.demo-done p {
  margin: 0;
}

.demo-done b {
  color: var(--lime);
}

/* Bots fill every field; people never see this one. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Download ---------- */

.download {
  padding: clamp(80px, 11vw, 144px) var(--gutter);
  background: var(--lime);
  color: var(--ink);
  text-align: center;
}

/* The app icon's own art is lime on lime here, so the mark sits on the logo's dark instead. */
.download-icon {
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 24px 40px -18px rgb(21 27 24 / 0.6);
}

.download-icon .logo-mark {
  width: 62px;
  height: 56px;
}

.download h2 {
  margin: 28px 0 16px;
  font-size: clamp(2.75rem, 1.5rem + 5.4vw, 5.5rem);
  letter-spacing: -0.04em;
}

.download .lead {
  margin: 0 auto;
  color: var(--on-lime-muted);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.soon-ink {
  color: var(--ink);
}

.soon-ink .soon-dot {
  background: var(--ink);
}

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

.foot {
  padding: 64px var(--gutter) 32px;
  background: var(--ink);
  color: var(--on-ink-muted);
}

.foot-top {
  display: grid;
  gap: 40px;
  max-width: var(--page);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .foot-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.foot .logo {
  color: var(--white);
}

.foot-brand p {
  max-width: 22rem;
  margin: 14px 0 0;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.foot-cols h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 750;
}

/* The address breaks rather than push the page sideways when the browser's text is set large. */
.foot-cols a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-ink-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot-cols a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.foot-legal {
  max-width: var(--page);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.9rem;
}

/* ---------- The weekend: one phone stays put while the story scrolls past ----------
   Four columns on a computer: the day rail, the words, the phone, the notes. The phone and the rail
   are sticky across every chapter; weekend.js sets data-ch and data-day on .story as each chapter
   reaches the middle of the screen, and the CSS below does the rest. On a shorter window the phone gets
   smaller, so it is always whole on screen. Below 1180 px wide the chapters stack, each with its own
   screen after it. */

/* clip, not hidden: it keeps the glow in without making a scroll box, so sticky still works. */
.story-band {
  overflow: clip;
  background: var(--ink);
  color: var(--on-ink);
  --focus: var(--lime);
  --link: var(--lime);
}

.story {
  --s: 0.776;
  --phone-w: calc(412px * var(--s) + 20px);
  --phone-h: calc(915px * var(--s) + 20px);
  --gap: clamp(28px, 3.2vw, 56px);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) var(--phone-w) minmax(0, 1fr);
  grid-template-rows: repeat(6, auto);
  column-gap: var(--gap);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 8vw, 120px);
}

@media (max-height: 860px) {
  .story {
    --s: 0.7;
  }
}

@media (max-height: 760px) {
  .story {
    --s: 0.62;
  }
}

/* A laptop's window under its browser bars (1366 × 768 leaves about 657 px): each step keeps the phone,
   pinned 84 px down, whole above the window's bottom edge, with the sheet and the composer the demos tap. */
@media (max-height: 690px) {
  .story {
    --s: 0.56;
  }
}

@media (max-height: 635px) {
  .story {
    --s: 0.5;
  }
}

@media (max-height: 580px) {
  .story {
    --s: 0.45;
  }
}

/* The days, cut from the app's date strip. */
.rail {
  grid-column: 1;
  grid-row: 1 / -1;
}

.rail-in {
  position: sticky;
  top: calc(50vh - 120px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 120px;
}

.d {
  padding: 10px 0;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  color: var(--on-ink-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s;
}

.d b {
  display: block;
  color: var(--on-ink);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease-out);
}

/* The first screen is the weekend as a whole, so no day is lit: the rail starts at Friday as you scroll
   (2026-11-19: lighting Saturday there stepped it back to Friday on the first scroll). */
.story:not([data-ch="hero"])[data-day="fri"] .d-fri,
.story:not([data-ch="hero"])[data-day="sat"] .d-sat,
.story:not([data-ch="hero"])[data-day="sun"] .d-sun {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.story:not([data-ch="hero"])[data-day="fri"] .d-fri b,
.story:not([data-ch="hero"])[data-day="sat"] .d-sat b,
.story:not([data-ch="hero"])[data-day="sun"] .d-sun b {
  color: var(--ink);
}

/* The phone, with the day's footage glowing behind it. */
.stage {
  grid-column: 3;
  grid-row: 1 / -1;
}

.stage-in {
  position: sticky;
  top: max(84px, calc(50vh - var(--phone-h) / 2));
  height: var(--phone-h);
}

/* The day's place behind the phone, sharp enough to tell (the sky over the rock, the bowl's graffiti, the
   sea): a tall column of footage the phone stands in, full strength across the phone and the gaps beside
   it, then 120 px more at a fifth under the words' columns, fading out, so their text stays on near-ink
   (2026-11-19: blurred, it read as a muddy halo; reaching the words, it took Friday's lead to 4.4:1). */
.glow {
  position: absolute;
  inset: -26% calc(-1 * var(--gap) - 120px);
  z-index: 0;
  pointer-events: none;
}

.glow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) brightness(0.72);
  -webkit-mask-image:
    linear-gradient(to right, transparent, rgb(0 0 0 / 0.2) 120px, #000 calc(120px + var(--gap) - 8px), #000 calc(100% - 120px - var(--gap) + 8px), rgb(0 0 0 / 0.2) calc(100% - 120px), transparent),
    linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, rgb(0 0 0 / 0.2) 120px, #000 calc(120px + var(--gap) - 8px), #000 calc(100% - 120px - var(--gap) + 8px), rgb(0 0 0 / 0.2) calc(100% - 120px), transparent),
    linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
  transition: opacity 1.2s var(--ease-out);
}

.story[data-day="fri"] .glow-fri,
.story[data-day="sat"] .glow-sat,
.story[data-day="sun"] .glow-sun {
  opacity: 0.72;
}

.phone {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: calc(52px * var(--s) + 10px);
  background: var(--phone-body);
  box-shadow: 0 0 0 2px var(--phone-rim), 0 40px 80px -20px rgb(0 0 0 / 0.7);
}

.frame {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: calc(52px * var(--s));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
}

.frame .screen {
  position: relative;
  transform: scale(var(--s));
  transform-origin: 0 0;
}

/* A phone with a demo plays it again when clicked or tapped (weekend.js). */
@media (prefers-reduced-motion: no-preference) {
  .f-fri,
  .f-school,
  .f-join,
  .f-chat,
  .f-sun {
    cursor: pointer;
  }
}

.story[data-ch="hero"] .f-hero,
.story[data-ch="fri"] .f-fri,
.story[data-ch="school"] .f-school,
.story[data-ch="join"] .f-join,
.story[data-ch="chat"] .f-chat,
.story[data-ch="sun"] .f-sun {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-out), visibility 0s;
}

/* The push that says you're in drops in on the first screen, inside the phone at its top, as Android
   shows a heads-up notification: dark, as the phone is, in Roboto. Inside the phone it never reaches the
   words beside it, at any width (it hung off the phone's edge onto the Saturday note, 2026-11-17). */
.push {
  position: absolute;
  top: calc(6px * var(--s) + 10px);
  right: calc(8px * var(--s) + 10px);
  left: calc(8px * var(--s) + 10px);
  z-index: 2;
  display: flex;
  gap: calc(12px * var(--s));
  align-items: center;
  /* From just under the phone's top to the end of the avatar and Public / Crew row (110 dp): it covers
     that row whole, as a heads-up does, and ends above the date strip. */
  min-height: calc(104px * var(--s));
  padding: calc(10px * var(--s)) calc(14px * var(--s));
  border-radius: calc(24px * var(--s));
  background: var(--push-bg);
  color: var(--push-on);
  font-family: "Roboto App", Roboto, system-ui, sans-serif;
  font-size: calc(14px * var(--s));
  line-height: 1.35;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.6);
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.push img {
  flex: none;
  width: calc(40px * var(--s));
  height: calc(40px * var(--s));
  border-radius: 50%;
}

.push small {
  display: block;
  color: var(--push-muted);
  font-size: calc(12px * var(--s));
}

/* As Android collapses a heads-up: the title and the text on one line each, cut with an ellipsis. */
.push > span {
  flex: 1;
  min-width: 0;
}

.push b,
.push .push-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.push b {
  display: block;
  font-size: calc(15px * var(--s));
  font-weight: 500;
}

/* Only at the very top: once you scroll, the words move up past the pinned phone and would slide under
   it, so it goes (weekend.js sets .scrolled after 40 px). */
.story[data-ch="hero"]:not(.scrolled) .push {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}

/* Wide and tall enough that the note beside the phone clears it: the push breaks out over the phone's
   right edge, the first screen's one break of the frame. Below that it stays inside (1190 px, 2026-11-17). */
@media (min-width: 1360px) and (min-height: 861px) {
  /* From just inside the phone's top to the gap above the date strip (10 to 96 px): it covers the
     status bar and the avatar and bell row as a heads-up does, cuts no row, and ends well above the
     right-hand words in both languages («χωρίς παρέα.» takes two lines). */
  .push {
    top: 10px;
    right: auto;
    left: calc(100% - 64px);
    width: max-content;
    max-width: 420px;
    min-height: 86px;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    font-size: 13px;
  }

  .push img {
    width: 36px;
    height: 36px;
  }

  .push small {
    font-size: 11px;
  }

  .push b {
    font-size: 14px;
  }
}

/* ---------- The chapters ---------- */

/* Positioned above the stage: the sticky phone and its glow would otherwise paint over the words. Clicks
   pass through its empty middle to the phone under it (a click on a phone replays its demo), and its
   words and controls take them back. */
.ch {
  position: relative;
  z-index: 1;
  pointer-events: none;
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 100vh;
  padding: 72px 0;
}

.ch > *,
.hero-words > * {
  pointer-events: auto;
}

.ch-hero { grid-row: 1; }
.ch-fri { grid-row: 2; }
.ch-school { grid-row: 3; }
.ch-join { grid-row: 4; }
.ch-chat { grid-row: 5; }
.ch-sun { grid-row: 6; }

.ch-l {
  grid-column: 1;
  justify-self: end;
  max-width: 27rem;
}

.ch-r {
  grid-column: 3;
  max-width: 25rem;
}

.ch h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.4rem);
}

.story .lead {
  color: var(--on-ink-muted);
}

/* A note beside the phone says what it shows. */
.note {
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--ink-line);
  color: var(--on-ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Its lead (the time, or who you follow) is a line of its own in the headings' flared face, so the
   column beside the phone carries weight in every chapter, not only the hero's. */
.note b {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 850;
  font-variation-settings: "FLAR" 100;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.note small {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
}

/* The first screen: the words around the phone. */
.ch-hero {
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 32px;
  min-height: 100svh;
  padding-top: 112px;
}

.hero-words {
  display: contents;
}

/* In px, not rem: with the browser's text set large, rem sizes ran «χωρίς παρέα.» past the window's edge,
   where the band clips it. At these sizes the words need no help being read. */
.w-a,
.w-b {
  font-size: clamp(72px, 7.2vw, 112px);
  font-weight: 900;
  letter-spacing: -0.04em;
  word-spacing: 0.06em;
  line-height: 0.88;
}

/* On wide screens the words grow toward the phone's weight; their columns still hold "alone." whole. */
@media (min-width: 1360px) {
  .w-a,
  .w-b {
    font-size: clamp(112px, 8.4vw, 132px);
  }
}

.w-a {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: min-content;
  color: var(--white);
  text-align: right;
}

.w-b {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  width: min-content;
  color: var(--lime);
}

.hero-copy {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  max-width: 25rem;
}

.hero-copy .lead {
  margin-bottom: 26px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-note {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  max-width: 22rem;
}

/* Ask to join: "You’re in." waits dimmed beside the request and lights up when the demo gets its yes
   (weekend.js sets data-joined at that step). Dimmed, it still reads: 3.4:1, large text's floor is 3. */
.youre-in {
  display: block;
  color: var(--lime);
  opacity: 0.4;
  transition: opacity 0.45s var(--ease-out);
}

.story[data-joined] .youre-in {
  opacity: 1;
}

/* Sunday: every sport, a group at a time. */
.groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  background: transparent;
  color: var(--on-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.g .mark {
  width: 32px;
  height: 32px;
  border-radius: 16px;
}

.g .mark .i {
  width: 18px;
  height: 18px;
}

.g:hover {
  border-color: var(--on-ink-muted);
}

.g[aria-pressed="true"] {
  border-color: var(--t-glyph);
  background: var(--t-fill);
}

.sports {
  display: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--ink-line);
  list-style: none;
  columns: 2;
  column-gap: 24px;
}

.sports li {
  padding: 4px 0;
  color: var(--on-ink);
  font-weight: 600;
  break-inside: avoid;
}

.story .feed {
  display: none;
}

.story[data-group="water"] .list-water,
.story[data-group="mountain"] .list-mountain,
.story[data-group="snow"] .list-snow,
.story[data-group="street"] .list-street,
.story[data-group="fitness"] .list-fitness,
.story[data-group="air"] .list-air,
.story[data-group="balance"] .list-balance,
.story[data-group="outdoors"] .list-outdoors {
  display: block;
}

.story[data-group="water"] .feed-water,
.story[data-group="mountain"] .feed-mountain,
.story[data-group="snow"] .feed-snow,
.story[data-group="street"] .feed-street,
.story[data-group="fitness"] .feed-fitness,
.story[data-group="air"] .feed-air,
.story[data-group="balance"] .feed-balance,
.story[data-group="outdoors"] .feed-outdoors {
  display: block;
}

/* The story ends on dark; the schools band starts a step below it. */
.organizers {
  padding-top: clamp(72px, 10vw, 136px);
}

/* ---------- Stacked: phones, tablets, short screens ----------
   Each chapter is followed by its own screen in its own phone; the rail and the push stay out. */

@media (max-width: 1179px) {
  .story {
    --s: 0.72;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 72px;
  }

  .rail,
  .glow,
  .push {
    display: none;
  }

  .stage,
  .stage-in,
  .phone {
    display: contents;
  }

  .frame {
    position: relative;
    inset: auto;
    width: var(--phone-w);
    height: var(--phone-h);
    padding: 10px;
    border-radius: calc(52px * var(--s) + 10px);
    background: var(--phone-body);
    box-shadow: 0 0 0 2px var(--phone-rim), 0 30px 60px -20px rgb(0 0 0 / 0.7);
    opacity: 1;
    visibility: visible;
  }

  .frame .screen {
    border-radius: 52px;
  }

  .ch {
    display: block;
    width: 100%;
    max-width: 34rem;
    min-height: 0;
    padding: 72px 0 40px;
  }

  .ch-l,
  .ch-r {
    max-width: none;
  }

  .ch-r {
    margin-top: 28px;
  }

  .ch-hero { order: 1; padding-top: 120px; }
  .f-hero { order: 2; }
  .ch-fri { order: 3; }
  .f-fri { order: 4; }
  .ch-school { order: 5; }
  .f-school { order: 6; }
  .ch-join { order: 7; }
  .f-join { order: 8; }
  .ch-chat { order: 9; }
  .f-chat { order: 10; }
  .ch-sun { order: 11; }
  .f-sun { order: 12; }

  .w-a,
  .w-b {
    display: inline;
    font-size: clamp(3.25rem, 1.6rem + 7vw, 5.5rem);
  }

  .w-a {
    width: auto;
    text-align: left;
  }

  .hero-words {
    display: block;
    margin: 0 0 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-note {
    margin-top: 32px;
  }

  /* The yes plays in the phone below the heading, after you have read it: lit from the start. */
  .youre-in {
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .story {
    --s: 0.68;
  }
}

/* Nothing fades. `.story[data-ch] .frame` matches the specificity of the rule that shows a chapter's
   frame, which sets its own transition, and wins by coming later. */
@media (prefers-reduced-motion: reduce) {
  .story[data-ch] .frame,
  .glow img,
  .push,
  .d,
  .d b,
  .youre-in {
    transition: none;
  }
}
