/* Parsewave Competitions, the host site. It borrows the main site's system: Supreme for text, Geist Mono for small
   labels (both self-hosted in assets/fonts), warm paper, hairline rules and square buttons. Amber marks live things. */
@font-face { font-family: "Supreme"; src: url(fonts/Supreme-Variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-Latin.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
:root {
  --paper: #f1f0ec;
  --ink: #111111;
  --ink-2: #504f4e;
  --ink-3: #868582;
  --line: rgba(17, 17, 17, 0.12);
  --line-2: rgba(17, 17, 17, 0.24);
  --night: #0e0f0c;
  --panel: #171915;
  --bone: #f1f0ec;
  --bone-2: rgba(241, 240, 236, 0.66);
  --bone-3: rgba(241, 240, 236, 0.42);
  --hair: rgba(241, 240, 236, 0.13);
  --amber: #f2a900;
  --sans: "Supreme", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
a { color: inherit; }
svg { display: block; flex: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 8px; z-index: 9; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font: 400 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
[id] { scroll-margin-top: 24px; }

/* Buttons: square, like the main site's */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font: 500 15px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); }
.btn svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ink { background: var(--ink); color: var(--paper); } .btn.ink:hover { background: #2b2b29; }
.btn.line { border-color: var(--line-2); } .btn.line:hover { border-color: var(--ink); }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; }

/* Header */
.top { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 500 18px/1 var(--sans); letter-spacing: -0.025em; white-space: nowrap; }
.logo svg { width: 22px; height: 22px; }
.logo em { font-style: normal; color: var(--ink-3); }
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .top nav { display: none; } }
@media (max-width: 420px) { .top { gap: 12px; height: 64px; } .logo { font-size: 16px; gap: 8px; } .logo svg { width: 20px; height: 20px; } .top .btn.sm { height: 36px; padding: 0 12px; font-size: 13.5px; } }
@media (max-width: 350px) { .logo em { display: none; } }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 120px); padding-bottom: clamp(28px, 4vw, 56px); }
/* the stipple board: full width under the hero, sized and drawn by assets/board.js */
.board-art { display: block; width: 100%; height: clamp(264px, 36vw, 514px); opacity: 0; transition: opacity 0.9s ease; }
.board-art.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .board-art { transition: none; } }
.hero h1 { font-size: clamp(38px, 6.4vw, 90px); line-height: 0.97; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 8vw, 128px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 33em; }
.lede strong { font-weight: 500; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.teaser { display: grid; gap: 14px; text-decoration: none; padding-bottom: 6px; }
.teaser-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.teaser-top .rule { flex: 1; height: 1px; background: var(--line-2); }
.teaser-top .dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.18); }
.teaser-line { font: 500 clamp(19px, 1.7vw, 23px)/1.3 var(--sans); letter-spacing: -0.02em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-2); transition: text-decoration-color 0.18s; }
.teaser:hover .teaser-line { text-decoration-color: var(--ink); }
.teaser-line mark { background: var(--amber); color: var(--ink); padding: 0 0.2em; border-radius: 2px; }
.teaser-line svg { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.04em; margin-left: 0.2em; transition: transform 0.25s var(--ease); }
.teaser:hover .teaser-line svg { transform: translateX(3px); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.dot.live { background: var(--amber); border-color: var(--amber); }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

/* The competitions board: a dark sheet set into the page */
.sheet { position: relative; margin: clamp(-56px, -3.4vw, -24px) clamp(8px, 1.4vw, 20px) 0; padding: clamp(56px, 7vw, 104px) 0 clamp(28px, 4vw, 56px); background: var(--night); color: var(--bone); border-radius: clamp(18px, 2.4vw, 32px); }
.sheet-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(40px, 7vw, 112px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sheet-head .dim { color: var(--bone-3); margin-bottom: 20px; }
.sheet-head h2 { font-size: clamp(28px, 4vw, 56px); line-height: 1.03; letter-spacing: -0.04em; text-wrap: pretty; }
.sheet-head h2 span, .sheet-head h2 b { display: block; font-weight: 500; }
.sheet-head h2 span { color: var(--bone-3); }
.sheet-head .note { color: var(--bone-2); font-size: 16px; line-height: 1.5; max-width: 30em; }
.entry { border: 1px solid var(--hair); border-radius: 14px; }
.entry .status { display: flex; align-items: center; gap: 9px; color: var(--bone-2); }

/* Starlight Arena's entry wears the arena's own look: its night blue, typefaces, star mark, cut-corner button and the
   glyph vault from its home page (assets/starlight is copied from the arena by build.py). */
@font-face { font-family: "Instrument Sans"; src: url(starlight/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(starlight/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Departure Mono"; src: url(starlight/departure-mono.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
.entry.sa { --peri: #8c95ff; --sa-text: #eceef7; --sa-soft: #aeb4cc; position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; gap: 40px; min-height: clamp(500px, 44vw, 600px); padding: clamp(24px, 3.4vw, 48px); background: #070a1c; color: var(--sa-text); border-color: rgba(140, 149, 255, 0.26); box-shadow: 0 0 0 1px rgba(140, 149, 255, 0.05), 0 36px 70px -56px rgba(70, 84, 255, 0.85); font-family: "Instrument Sans", var(--sans); }
.sa-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 14px rgba(140, 149, 255, 0.28)); }
.sa-copy { max-width: 34em; }
.sa-brand { display: inline-flex; align-items: center; gap: 12px; }
.sa-brand svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 9px rgba(200, 205, 255, 0.35)); }
.sa-brand .wm { display: inline-grid; gap: 4px; line-height: 1; text-transform: uppercase; }
.sa-brand .wm b { font: 600 18px/1 "Instrument Sans", var(--sans); letter-spacing: 0.01em; color: var(--sa-text); }
.sa-brand .wm span { font: 700 12px/1 "Instrument Sans", var(--sans); letter-spacing: 0.3em; color: var(--peri); }
.sa-status { display: flex; align-items: center; gap: 10px; margin-top: clamp(28px, 4vw, 56px); font: 400 12px/1 "Departure Mono", var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--peri); }
.sa-status i { width: 7px; height: 7px; background: var(--peri); box-shadow: 0 0 10px var(--peri); }
.sa-line { margin-top: 18px; font: 600 clamp(48px, 6.6vw, 96px)/0.92 "Instrument Sans", var(--sans); letter-spacing: -0.045em; color: #eceaf4; }
.sa-line em { font: italic 400 1.08em/0 "Instrument Serif", Georgia, serif; letter-spacing: -0.02em; color: var(--peri); }
.sa-sub { margin-top: 20px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: #cdd0e4; }
.sa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
/* the two actions, as on the arena home: cut corners, a glint every few seconds, and on hover a sweep of light, deeper
   cuts and a small lift */
.sa-go { --btn: var(--peri); --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px 0 24px; font: 700 17px/1 "Instrument Sans", var(--sans); color: #070a1c; text-decoration: none; white-space: nowrap; transition: transform 220ms var(--sa-ease); --sa-ease: cubic-bezier(0.23, 1, 0.32, 1); }
.sa-go::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn); clip-path: var(--cut); transition: clip-path 280ms var(--sa-ease); }
.sa-go::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; clip-path: var(--cut); background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0; transition: clip-path 280ms var(--sa-ease); animation: sa-glint 6.5s ease-in-out 1.2s infinite; }
@keyframes sa-glint { 0%, 74% { background-position: 130% 0; } 94%, 100% { background-position: -30% 0; } }
.sa-go .arw { display: inline-block; transition: transform 220ms var(--sa-ease); }
.sa-go.discord { --btn: #5865f2; color: #fff; gap: 10px; }
.sa-go.discord::after { animation-delay: 2.4s; }
.sa-go.discord svg { width: 22px; height: 22px; fill: currentColor; transition: transform 260ms var(--sa-ease); }
@media (hover: hover) and (pointer: fine) {
  .sa-go:hover { transform: translateY(-2px); }
  .sa-go:hover::before, .sa-go:hover::after { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
  .sa-go:hover::after { animation: none; background-position: -30% 0; transition: background-position 650ms var(--sa-ease), clip-path 280ms var(--sa-ease); }
  .sa-go:hover .arw { transform: translateX(5px); }
  .sa-go.discord:hover svg { transform: rotate(-10deg) scale(1.08); }
}
.sa-go:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .sa-go::after { animation: none; background: none; } .sa-go, .sa-go::before { transition: none; } }
.sa-stats div { display: flex; align-items: center; gap: 12px; }
.sa-stats dd { font: 600 clamp(22px, 2vw, 30px)/1 "Instrument Sans", var(--sans); letter-spacing: -0.02em; color: #eceaf4; font-variant-numeric: tabular-nums lining-nums; }
.sa-stats dt { font: 400 12px/1 "Instrument Sans", var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sa-soft); }
@media (max-width: 900px) {
  .entry.sa { min-height: 0; gap: 0; padding-bottom: 28px; }
  .sa-field { position: relative; inset: auto; z-index: 0; order: 2; width: calc(100% + 2 * clamp(24px, 3.4vw, 48px)); margin: 8px calc(-1 * clamp(24px, 3.4vw, 48px)) 4px; height: min(86vw, 440px); }
  .sa-stats { order: 3; }
  .sa-line { font-size: clamp(46px, 13.5vw, 80px); }
}
@media (max-width: 520px) { .sa-go { width: 100%; } }
.entry.next { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; align-items: baseline; margin-top: 12px; padding: 22px clamp(24px, 3.4vw, 48px); border-style: dashed; }
.next h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.03em; color: var(--bone-2); }
.next .what { color: var(--bone-3); font-size: 16px; }
@media (max-width: 900px) { .sheet-head, .entry.next { grid-template-columns: 1fr; } }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 120px); }
.faq h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.03em; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 clamp(18px, 1.6vw, 21px)/1.25 var(--sans); letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--ink-2); }
.qa details[open] summary:hover { color: var(--ink); }
.qa details p a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.qa summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat; transition: transform 0.3s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 38em; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--night); color: var(--bone); }
.footer-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 48px; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer .logo { font-size: 20px; }
.footer .logo em { color: var(--bone-3); }
.footer .about p { margin-top: 14px; color: var(--bone-2); max-width: 22em; }
.footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.footer nav div { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer nav .mono { color: var(--bone-3); margin-bottom: 6px; }
.footer nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; color: var(--bone-2); text-decoration: none; transition: color 0.15s; }
.footer nav a:hover { color: var(--bone); }
.footer nav svg { width: 12px; height: 12px; opacity: 0.7; }
.footer-base { padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--hair); color: var(--bone-3); font-size: 14px; }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .footer nav { grid-template-columns: 1fr 1fr; } }
