/* AaSS.community: the billboard. Tokens trimmed from aass.co's design system:
   ink, paper and yellow; light and dark, the system decides. Yellow means
   ownership: never text, always a field with ink on it. One radius (6px). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/SchibstedGrotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 96%;
  ascent-override: 101.7%;
  descent-override: 26.9%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;
  --bg: #F3F3F1;
  --surface: #E6E6E2;
  --ink: #12161C;
  --ink-2: #454B55;
  --ink-3: #5A606B;
  --edge: #6B7280;
  --line: #D6D6D2;
  --signal: #FFD23F;
  --signal-hover: #F2C22A;
  --on-signal: #12161C;
  --stamp-bg: #12161C;
  --stamp-fg: #F3F3F1;
  --error: #B3261E;
  --font-sans: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --wrap: 1100px;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1216;
    --surface: #181C22;
    --ink: #F3F3F1;
    --ink-2: #B9BEC6;
    --ink-3: #8A929E;
    --edge: #8A929E;
    --line: #2A2F37;
    --error: #F0A596;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; font-weight: 800; line-height: 1.08; overflow-wrap: break-word; }
p, li { text-wrap: pretty; overflow-wrap: break-word; }
::selection { background: var(--signal); color: var(--on-signal); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--signal); } }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--signal); color: var(--on-signal);
  padding: 12px 18px; border-radius: var(--r); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.link {
  text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: var(--edge);
}
.link:hover, .link:focus-visible { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.005em; color: var(--ink-3); }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; font-size: 1.15rem; }
.mark img { width: 34px; height: 34px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-size: 0.95rem; font-weight: 600; }
.site-header .wrap { padding-block: 10px; }
@media (max-width: 640px) { .site-header .wrap { flex-wrap: wrap; } .site-header nav { justify-content: flex-start; } }

/* the highlighter: yellow marks what is yours (a field with ink on it) */
.hl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFD23F' d='M2.4 4.8C16 2.2 33 5.6 50 3.4S82 2.1 98.3 3.9L99.6 34.2C86 37.6 69 34.4 52 36.9S19 34.8 1.2 37.1L.3 20.6Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 1.08em;
  background-position: 0 58%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.02em 0.16em;
  margin-inline: -0.16em;
  color: var(--on-signal);
}

/* hero */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 9rem) clamp(3rem, 2rem + 5vw, 6rem); }
.hero h1 {
  font-size: clamp(3rem, 9vw + 0.5rem, 8rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-block: 18px 28px;
}
.lead { font-size: clamp(1.15rem, 0.4vw + 1.05rem, 1.35rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 52ch; }
.hero .lead + .lead { margin-top: 16px; color: var(--ink-2); }

/* bands */
.band { border-top: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.band h2 { font-size: clamp(1.8rem, 2vw + 1.1rem, 3rem); letter-spacing: -0.025em; margin-bottom: clamp(24px, 3vw, 44px); }
.band .intro { color: var(--ink-2); max-width: 52ch; margin: -12px 0 28px; }

.rows { list-style: none; padding: 0; border-top: 1px solid var(--line); counter-reset: rec; }
.rows > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 6px 0;
  padding-block: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
  counter-increment: rec;
}
.rows > li::before {
  content: counter(rec, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); padding-top: 0.5em;
}
.rows h3 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); letter-spacing: -0.01em; font-weight: 700; }
.rows p { color: var(--ink-2); max-width: 60ch; }
.rows .go { margin-top: 6px; font-weight: 650; }
@media (min-width: 901px) {
  .rows > li { grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; align-items: baseline; }
  .rows > li::before { grid-row: auto; padding-top: 0; }
}

/* the waiting list */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: clamp(20px, 3vw, 36px); max-width: 44rem; }
.field-label { display: block; font-weight: 620; font-size: 0.975rem; margin-bottom: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.input {
  flex: 1 1 16rem; min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--edge); border-radius: var(--r); font-size: 1.0625rem;
}
.input::placeholder { color: var(--ink-3); }
.input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-color: var(--signal); }
.input[aria-invalid="true"] { border-color: var(--error); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: var(--r);
  background: var(--signal); color: var(--on-signal);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
}
.btn:hover { background: var(--signal-hover); }
.btn:active { transform: translateY(1px); }
fieldset { border: 0; padding: 0; min-width: 0; }
fieldset:disabled .input, fieldset:disabled .btn { opacity: 0.55; cursor: not-allowed; }
fieldset:disabled .btn:hover { background: var(--signal); }
.note { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.note strong { color: var(--ink); }
.status { margin-top: 16px; font-weight: 650; }
.status[data-state="error"] { color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the yellow field: the hero, full bleed. Ink on yellow, in both themes. */
.field { background: var(--signal); color: var(--on-signal); overflow: hidden; }
.field .mono { color: var(--on-signal); font-size: 0.95rem; }
.field a { color: inherit; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
@media (min-width: 981px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.field h1 {
  font-size: clamp(3rem, 7.4vw, 6.75rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin-block: 14px 26px;
}
.word-stamp {
  display: inline-block;
  background: var(--stamp-bg);
  color: var(--stamp-fg);
  padding: 0.02em 0.14em 0.06em;
  border-radius: var(--r);
  transform: rotate(-2.5deg);
  animation: press 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.25s both;
}
@keyframes press { from { transform: rotate(-9deg) scale(1.5); opacity: 0; } to { transform: rotate(-2.5deg) scale(1); opacity: 1; } }
.field .lead { max-width: 34em; }
.field .lead + .lead { margin-top: 14px; }

/* the box: paper on the field, a hard edge, the one thing to do on this page */
.field .panel { background: var(--bg); color: var(--ink); border: 2px solid #12161C; box-shadow: 8px 8px 0 #12161C; max-width: none; }
.box { position: relative; }
.promise { font-size: clamp(1.25rem, 0.9rem + 0.9vw, 1.55rem); font-weight: 750; line-height: 1.22; letter-spacing: -0.015em; margin: 10px 0 20px; }
.letter { color: var(--ink); transition: transform 0.45s cubic-bezier(0.2, 1.2, 0.4, 1); }
.letter-seal { fill: var(--signal); stroke: var(--ink); stroke-width: 2; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1) 0.2s; }
.flap-open { transition: opacity 0.2s; }
.flap-shut { opacity: 0; transition: opacity 0.2s 0.1s; }
.box[data-state="saved"] .letter { transform: translateY(6px) rotate(-3deg); }
.box[data-state="saved"] .letter-seal { transform: scale(1); }
.box[data-state="saved"] .flap-open { opacity: 0; }
.box[data-state="saved"] .flap-shut { opacity: 1; }

/* the crane: the community going up, in ink on the field */
/* the drawing keeps its proportions and sits on the right; on a phone its left end runs off the screen */
.scene-wrap { display: flex; justify-content: flex-end; overflow: hidden; }
.scene { display: block; flex: none; max-width: none; height: clamp(170px, 25vw, 300px); aspect-ratio: 4 / 1; overflow: visible; }
.scene text { fill: currentColor; font-family: var(--font-mono); font-size: 19px; }
.scene .room text { fill: #12161C; }
.scene .load-word { fill: #F3F3F1; }
.draw { stroke-dasharray: 4800; stroke-dashoffset: 0; animation: draw 1.6s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 4800; } to { stroke-dashoffset: 0; } }
.room { animation: rise 0.7s ease-out both; }
.r1 { animation-delay: 0.2s; } .r2 { animation-delay: 0.45s; } .r3 { animation-delay: 0.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.trolley { animation: trolley 16s ease-in-out 1.2s infinite both; }
.load { animation: lower 16s ease-in-out 1.2s infinite both; }
/* out along the jib, down into the slot, rest, then back for the next block */
@keyframes trolley {
  0%, 6% { transform: translateX(-70px); opacity: 1; }
  34%, 74% { transform: translateX(-330px); opacity: 1; }
  86%, 92% { transform: translateX(-70px); opacity: 1; }
  96% { transform: translateX(-70px); opacity: 0; }
  100% { transform: translateX(-70px); opacity: 1; }
}
@keyframes lower {
  0%, 34% { transform: translateY(-40px); }
  56%, 66% { transform: translateY(70px); }
  78%, 100% { transform: translateY(-40px); }
}

/* the board: what is true today, in three columns */
.tinted { background: var(--surface); }
.board { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 901px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.col-head h3 { font-size: 1.15rem; font-weight: 750; }
.stamp {
  display: inline-block; flex: none;
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 4px; border: 2px solid var(--ink); transform: rotate(-3deg);
}
.col[data-state="live"] .stamp { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.col[data-state="coming"] .stamp { border-style: dashed; }
.cards { list-style: none; padding: 0; }
.card { padding-block: 18px; border-bottom: 1px solid var(--line); }
.card h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.card p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.card .go { margin-top: 6px; font-weight: 650; color: var(--ink); }
.crawl { display: none; width: 100%; height: 4px; margin-top: 12px; color: var(--ink); }
.col[data-state="building"] .crawl { display: block; }
.crawl path { animation: crawl 1.6s linear infinite; }
@keyframes crawl { to { stroke-dashoffset: -12; } }
/* marks land as the reader reaches them (alive.js; never with reduced motion) */
.alive .stamp[data-tick]:not(.in) { opacity: 0; transform: rotate(-8deg) scale(1.35); transform-origin: 100% 50%; }
.alive .stamp[data-tick].in { transition: opacity 0.25s, transform 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.alive .card[data-tick]:not(.in) { opacity: 0; transform: translateY(14px); }
.alive .card[data-tick].in { transition: opacity 0.5s, transform 0.5s; }

.split { display: grid; gap: clamp(16px, 3vw, 48px); }
@media (min-width: 901px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split h2 { margin-bottom: 0; } }
.plain { color: var(--ink-2); max-width: 60ch; margin-top: 14px; }
.go { margin-top: 14px; font-weight: 650; }
.rows strong { color: var(--ink); }
.btn-ink { text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
