/* Style C: Cartographer. The page is printed in the board's own colours, like a plate from an atlas.
   Every picture sits in a map border labelled with chess coordinates. */
@font-face { font-family: "Fell"; src: url(../fonts/im-fell-english-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fell"; src: url(../fonts/im-fell-english-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(../fonts/spectral-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(../fonts/spectral-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url(../fonts/spectral-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #e8e1cc; --mat: #f0ebdc; --ink: #2a2419; --muted: #675c48; --line: rgba(42,36,25,.2);
  --accent: #2f739b; --accent-ink: #fff; --contour: #8b7756; --seal: #9a782c; --sage: #8fa27a;
  --field: #f7f3e8; --field-ink: #2a2419; --field-line: rgba(42,36,25,.35); --focus: #2f739b;
  --font-body: "Spectral", Georgia, serif; --font-display: "Fell", Georgia, serif;
  --r-btn: 4px; --r-field: 4px;
}
body { font-size: 18px; line-height: 1.6;
  background-image: radial-gradient(rgba(42,36,25,.035) 1px, transparent 1px); background-size: 4px 4px; }
.btn { font-family: "Spectral", serif; font-weight: 500; font-size: 17px; }
.btn-main:hover { background: #276286; }
.title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.8vw, 82px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 44ch; }
section { scroll-margin-top: 70px; }

/* Map border with chess coordinates (letters and numbers are added by the script) */
.neat { position: relative; padding: 22px; background: var(--mat); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 4px var(--mat), inset 0 0 0 5px rgba(42,36,25,.55); }
.neat > picture, .neat > video, .neat > img { display: block; position: relative; box-shadow: 0 0 0 1px var(--ink); }
.neat img, .neat video { width: 100%; }
.neat-x, .neat-y { position: absolute; display: grid; font-style: italic; font-size: 11px; line-height: 1; color: var(--contour); pointer-events: none; }
.neat-x { left: 22px; right: 22px; bottom: 6px; grid-template-columns: repeat(8, 1fr); text-align: center; }
.neat-y { top: 22px; bottom: 22px; left: 0; width: 22px; grid-template-rows: repeat(8, 1fr); align-items: center; text-align: center; }
figcaption.cap, .hero-film figcaption, .board-fig figcaption { margin-top: 10px; font-style: italic; font-size: 15px; color: var(--muted); text-align: center; }

/* Bar */
.bar { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; gap: 26px; padding: 12px var(--pad); background: rgba(232,225,204,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 23px; text-decoration: none; }
.mark svg { width: 26px; height: 26px; color: var(--ink); }
.bar-nav { display: none; gap: 26px; margin-left: auto; font-size: 16px; font-style: italic; }
.bar-nav a { text-decoration: none; color: var(--muted); }
.bar-nav a:hover { color: var(--ink); }
.bar-cta { margin-left: auto; min-height: 42px; padding: 0 18px; font-size: 16px; }
@media (min-width: 900px) { .bar-nav { display: flex; } .bar-cta { margin-left: 4px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 44px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); align-items: center; }
.hero-tag { font-style: italic; color: var(--accent); font-size: 18px; margin-bottom: 10px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(62px, 9vw, 128px); line-height: .92; letter-spacing: -.015em; }
.hero-title span { display: block; }
.hero-title [data-hl2] { font-style: italic; }
.hero-lede { margin: 22px 0 28px; max-width: 30ch; font-size: clamp(19px, 2vw, 22px); color: var(--muted); }
.hero .signup { max-width: 540px; }
.hero-trust { margin-top: 14px; font-size: 15px; font-style: italic; color: var(--muted); }
.hero-film { max-width: 520px; width: 100%; justify-self: center; }
.film { overflow: hidden; }
.film video { aspect-ratio: 4 / 5; object-fit: cover; background: #0d0e0b; }
.film-play { left: 34px; bottom: 34px; }
.film-sound { right: 34px; bottom: 34px; width: auto; padding: 0 16px 0 12px; gap: 8px; border-radius: 99px; display: inline-flex; font-size: 15px; font-weight: 500; background: rgba(240,235,220,.92); color: var(--ink); }
.film-sound::after { content: "Sound on"; }
.film-sound.is-on::after { content: "Sound off"; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 60px; } }

/* Smart board */
.board { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.board-grid { display: grid; gap: 44px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); align-items: center; }
.board-fig { max-width: 560px; width: 100%; justify-self: center; }
.pic { position: relative; box-shadow: 0 0 0 1px var(--ink); }
.pic picture { display: block; }
.key { position: absolute; left: var(--x); top: var(--y); margin: -17px 0 0 -17px; }
.board-copy .lede { margin-top: 18px; }
.keylist { margin: 30px 0 0; display: grid; gap: 14px; }
.keylist div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.keylist dt, .key { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mat); color: var(--ink); font-family: var(--font-display); font-size: 19px; box-shadow: inset 0 0 0 1px var(--ink); }
.keylist dd { margin: 0; color: var(--muted); }
.keylist b { color: var(--ink); font-weight: 500; }
.board-points { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.board-points li { color: var(--muted); padding-left: 22px; position: relative; }
.board-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--accent); }
.board-points b { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .board-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; } }

/* Events */
.events { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.events-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.events-head .lede { margin-top: 16px; }
.plates { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 18px; max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.plates::-webkit-scrollbar { display: none; }
.plate { scroll-snap-align: start; }
.plate img { aspect-ratio: 4 / 5; object-fit: cover; }
.plate figcaption { margin-top: 14px; color: var(--muted); font-size: 17px; }
.plate b { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.plate b svg { width: 26px; height: 26px; color: var(--accent); }
.index { display: grid; gap: 4px 40px; max-width: var(--maxw); margin: 50px auto 0; padding: 0 var(--pad); }
.index li { display: grid; grid-template-columns: 30px auto; column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.index svg { grid-row: span 2; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.index b { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.index span { color: var(--muted); font-size: 16px; }
@media (min-width: 700px) { .index { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .index { grid-template-columns: repeat(3, 1fr); } .plates { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 28px; } }

/* Why */
.why { display: grid; gap: 44px; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--pad); border-top: 1px solid var(--line); align-items: center; }
.why-photo img { aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.18) saturate(.92); }
.why-list { margin: 28px 0 0; display: grid; gap: 20px; }
.why-list dt { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1.15; }
.why-list dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1fr; gap: 70px; } }

/* Founders */
.founders { padding: clamp(80px, 11vw, 140px) var(--pad); text-align: center; border-top: 1px solid var(--line); }
.founders .title { max-width: 14ch; margin: 0 auto; }
.founders-note { max-width: 34ch; margin: 22px auto 0; font-style: italic; font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); }
.founders-row { display: grid; gap: 50px; max-width: 760px; margin: 56px auto 0; }
.founder img { width: 180px; height: 220px; margin: 0 auto; border-radius: 50%; object-fit: cover; filter: sepia(.5) contrast(1.05) saturate(.8);
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--seal), 0 0 0 10px var(--bg), 0 0 0 11px rgba(154,120,44,.5); }
.founder figcaption { margin-top: 26px; }
.founder b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; }
.founder i { display: block; color: var(--accent); }
.founder span { display: block; max-width: 30ch; margin: 8px auto 0; color: var(--muted); }
@media (min-width: 700px) { .founders-row { grid-template-columns: 1fr 1fr; } }

/* Offer: the founders' charter */
.offer { padding: clamp(80px, 11vw, 140px) var(--pad); border-top: 1px solid var(--line); }
.charter { position: relative; max-width: 680px; margin: 0 auto; padding: clamp(34px, 6vw, 60px) clamp(24px, 6vw, 60px); background: var(--mat);
  box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 7px var(--mat), inset 0 0 0 8px var(--ink), 0 30px 70px -40px rgba(42,36,25,.6); text-align: center; isolation: isolate; }
.charter::before { content: ""; position: absolute; inset: 8px; z-index: -1; background: url(../img/map-twin-rivers.webp) center / cover; opacity: .1; mix-blend-mode: multiply; }
.seal { position: absolute; top: -34px; right: 20px; display: grid; place-items: center; align-content: center; width: 96px; height: 96px; border-radius: 50%; color: #f6ecd2;
  background: radial-gradient(circle at 35% 30%, #c19a45, var(--seal) 60%, #7a5d1f); box-shadow: inset 0 0 0 4px rgba(255,240,200,.25), inset 0 0 0 6px rgba(80,60,20,.35), 0 8px 18px -6px rgba(42,36,25,.6); transform: rotate(-8deg); }
.seal svg { width: 36px; height: 36px; }
.seal span { font-family: var(--font-display); font-size: 13px; line-height: 1; margin-top: 2px; }
@media (max-width: 600px) { .charter { padding-top: 70px; } .seal { width: 84px; height: 84px; top: -30px; right: 50%; margin-right: -42px; } }
.charter-tag { font-style: italic; color: var(--accent); font-size: 18px; }
.charter-title { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; text-wrap: balance; }
.charter-price { margin: 16px 0 24px; color: var(--muted); }
.charter-price b { color: var(--ink); font-weight: 500; }
.charter-list { display: grid; gap: 10px; max-width: 460px; margin: 0 auto 28px; text-align: left; }
.charter-list li { display: flex; gap: 10px; }
.charter-list svg { flex: none; width: 21px; height: 21px; margin-top: 4px; color: var(--accent); }
.charter-list span { color: var(--muted); }
.charter-list b { color: var(--ink); font-weight: 500; }
.charter .spots { max-width: 460px; margin: 0 auto 18px; text-align: left; }
.charter .signup { max-width: 520px; margin: 0 auto; text-align: left; }
.charter-fine { margin-top: 14px; font-size: 14px; font-style: italic; color: var(--muted); }
.joined { text-align: left; }
.joined-title { font-family: var(--font-display); font-weight: 400; font-size: 32px; }

/* Free game */
.play { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; padding: 30px var(--pad); text-align: center; border-top: 1px solid var(--line); }

/* FAQ */
.faq-sec { max-width: 860px; margin: 0 auto; padding: clamp(80px, 11vw, 130px) var(--pad); }
.faq-sec .faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq summary { font-weight: 500; font-size: 19px; }

/* Footer */
.foot { padding: 60px var(--pad) calc(110px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }
.foot-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 34px; }
.foot-mark svg { width: 34px; height: 34px; }
.foot-line { font-style: italic; color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 12px; font-size: 15px; }
.legal a { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (min-width: 900px) { .foot { padding-bottom: 60px; } }
.sticky-cta { background: linear-gradient(to top, rgba(232,225,204,.97) 60%, rgba(232,225,204,0)); }
