/* Three Chairs Games — site styles. Fonts self-hosted (latin subset) from Google Fonts. */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/dmsans-italic.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: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/dmsans.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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/dmsans.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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/dmsans.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrainsmono.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/jetbrainsmono.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: 'Syne';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/syne.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: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/syne.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: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/syne.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;
}

:root {
  color-scheme: dark;
  --ink: #12152B;
  --ink-2: #1B1F3B;
  --ink-3: #262B4E;
  --line: rgba(244, 239, 228, 0.12);
  --oat: #F4EFE4;
  --oat-60: rgba(244, 239, 228, 0.62);
  --oat-35: rgba(244, 239, 228, 0.35);
  --oat-55: rgba(244, 239, 228, 0.55); /* placeholders: 5.1:1 on --ink-2 */
  --marm: #F28C28;
  --marm-deep: #D9741B;
  --marm-glow: rgba(242, 140, 40, 0.22);
  --display: "Syne", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--oat);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--marm); color: var(--ink); }
:focus-visible { outline: 2px solid var(--marm); outline-offset: 3px; }
.ok:focus, .contact-ok:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ambient grid */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  opacity: .7;
}
.glow {
  position: fixed; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--marm-glow), transparent 60%);
  top: -30vmax; right: -25vmax; filter: blur(20px);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.nav .domain { font-family: var(--mono); font-size: 12.5px; color: var(--oat-60); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding-block: clamp(40px, 8vw, 96px) clamp(40px, 6vw, 72px);
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--marm); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--marm); }
h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .95;
  font-size: clamp(52px, 9.2vw, 124px); margin: 0 0 26px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--marm); }
.lede { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; color: var(--oat-60); max-width: 34ch; margin: 0 0 34px; }
.lede strong { color: var(--oat); font-weight: 500; }

/* mark */
.mark { display: grid; place-items: center; }
.mark svg { width: min(100%, 420px); height: auto; overflow: visible; }
.chair { fill: none; stroke: var(--marm); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.chair.c2 { stroke: var(--oat); }
.floor { stroke: var(--oat-35); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .chair { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.4s cubic-bezier(.65,0,.2,1) forwards; }
  .chair.c1 { animation-delay: .15s; } .chair.c2 { animation-delay: .45s; } .chair.c3 { animation-delay: .75s; }
  .hero > * { animation: rise .8s ease-out both; }
  .mark { animation-delay: .1s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: .01; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.signup input {
  flex: 1 1 240px; min-width: 0; height: 54px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--oat);
  font: 500 16px var(--body);
}
.signup input::placeholder { color: var(--oat-55); }
.btn {
  height: 54px; padding: 0 24px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--marm); color: var(--ink); font: 700 15px var(--display); letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--marm-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.note { font-family: var(--mono); font-size: 12px; color: var(--oat-60); margin: 12px 0 0; }
.note.fine { margin-top: 4px; }
.note a, footer .place a { color: var(--oat-60); text-underline-offset: 3px; }
.note a:hover, footer .place a:hover { color: var(--marm); }
.ok { display: none; align-items: center; gap: 10px; color: var(--oat); font-weight: 500; }
.ok svg { width: 22px; height: 22px; }
.signup.done form { display: none; }
.signup.done .ok { display: flex; }

/* strip */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 18px; overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--oat-60);
}
.strip span { display: inline-block; padding-right: 48px; }
.strip span::after { content: "•"; color: var(--marm); margin-left: 48px; }
@media (prefers-reduced-motion: no-preference) {
  .strip .track { display: inline-block; animation: slide 40s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* sections */
section.block { padding-block: clamp(56px, 8vw, 104px); }
h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(30px, 4vw, 48px); margin: 0 0 14px; text-wrap: balance;
}
.sub { color: var(--oat-60); max-width: 56ch; margin: 0 0 40px; font-weight: 300; font-size: 18px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seat {
  border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 28px;
  background: linear-gradient(180deg, rgba(27,31,59,.9), rgba(27,31,59,.5));
  display: grid; gap: 10px; align-content: start;
  transition: border-color .2s ease, transform .2s ease;
}
.seat:hover { border-color: rgba(242,140,40,.55); transform: translateY(-3px); }
.seat .glyph { width: 40px; height: 40px; }
.seat .glyph path { fill: none; stroke: var(--marm); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.seat h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 6px 0 0; }
.seat p { margin: 0; color: var(--oat-60); font-size: 15.5px; }
.three.two { grid-template-columns: repeat(2, 1fr); }
.seat .links { display: flex; flex-wrap: wrap; gap: 0 18px; font-family: var(--mono); font-size: 12.5px; }
.seat .links a { color: var(--oat-60); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.seat .links a:hover { color: var(--marm); }
.seat .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--marm); }

/* first game */
.game {
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2);
}
.game .copy { padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.game .copy h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(30px, 3.6vw, 44px); margin: 0; }
.game .copy p { margin: 0; color: var(--oat-60); }
.game .copy .when { font-family: var(--mono); font-size: 13px; color: var(--marm); letter-spacing: .1em; text-transform: uppercase; }
.game .art { position: relative; min-height: 320px; background: #163E52; overflow: hidden; }
.game .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.game .art .cap {
  position: absolute; left: 20px; bottom: 18px; font-family: var(--mono); font-size: 12px;
  color: rgba(244,239,228,.75); background: rgba(18,21,43,.6); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(6px);
}

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; color: var(--oat-60); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
footer .links a { text-decoration: none; color: var(--oat-60); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
footer .links a:hover { color: var(--marm); }
footer .mail { font-family: var(--mono); font-size: 13px; color: var(--oat); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
footer .mail:hover { color: var(--marm); }
footer .place { margin-top: 2px; }

/* contact */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--oat-60); }
.cform input, .cform select, .cform textarea {
  width: 100%; min-width: 0; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--oat);
  font: 400 16px var(--body); text-transform: none; letter-spacing: 0;
}
.cform textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--oat-55); }
.cform .row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.cform .note { margin: 0; }
.contact-ok { display: none; align-items: center; gap: 10px; color: var(--oat); font-weight: 500; margin: 0; }
.contact-ok svg { width: 22px; height: 22px; flex: none; }
.contact-wrap.done .cform { display: none; }
.contact-wrap.done .contact-ok { display: flex; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .mark { order: -1; }
  .mark svg { width: min(70%, 320px); }
  .three, .three.two { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .game .art { min-height: 260px; }
  .contact { grid-template-columns: 1fr; gap: 8px; }
  .cform { grid-template-columns: 1fr; }
}
