/* ============================================================
   THE GRAND BOARD — Chess & Abstract Strategy
   Editorial / classic-journal system: ivory paper, ink, brass accent,
   Playfair Display + Spectral serifs, hairline rules. No framework.
   ============================================================ */

:root {
  --paper:   #f7f3e9;
  --paper-2: #f1ead9;
  --paper-3: #ebe3cf;
  --ink:     #1f1d18;
  --ink-soft:#5c5647;
  --brass:   #a8873e;
  --brass-dk:#856a2c;
  --line:    #d7cdb4;

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    "Spectral", Georgia, "Times New Roman", serif;

  --col-max: 74rem;
}

* { box-sizing: border-box; }

html {
  background-color: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
}

::selection { background: var(--brass); color: var(--paper); }

a { color: inherit; text-decoration: none; }
svg { display: block; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.14; }
p { margin: 0; }

.mt-1 { margin-top: 0.5rem; } .mt-3 { margin-top: 1.5rem; }
.mx-auto { margin-inline: auto; }

/* -------- Column -------- */
.col { width: 100%; max-width: var(--col-max); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 768px) { .col { padding-inline: 2.5rem; } }
.col.narrow { max-width: 50rem; }

/* -------- Type -------- */
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; }
.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; }
.display-lg { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; }
.display em { font-style: italic; color: var(--brass-dk); }

.kicker {
  display: inline-block; font-family: var(--f-body); font-size: 0.74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em; color: var(--brass-dk);
  padding-bottom: 0.7rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--brass);
}
.lead { font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); max-width: 42rem; }
.fine { font-size: 0.85rem; color: var(--ink-soft); }

.drop::first-letter {
  font-family: var(--f-display); font-weight: 700; float: left;
  font-size: 3.4rem; line-height: 0.82; padding: 0.3rem 0.6rem 0 0; color: var(--brass-dk);
}

/* -------- Hairline rule -------- */
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 0.85rem 1.7rem; border: 1px solid var(--ink); border-radius: 1px;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill:hover { background: var(--brass-dk); border-color: var(--brass-dk); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; margin-top: 0.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

.more {
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brass-dk); white-space: nowrap; border-bottom: 1px solid var(--brass); padding-bottom: 3px; align-self: flex-end;
}
.more:hover { color: var(--ink); border-color: var(--ink); }

/* -------- Masthead -------- */
.rule-top { height: 4px; background: var(--ink); }
.masthead { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--ink); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-piece { font-size: 1.7rem; color: var(--brass-dk); line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand-sub { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--brass-dk); margin-top: 3px; }

.mast-nav { display: none; align-items: center; gap: 2rem; }
.mast-nav a {
  font-family: var(--f-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease;
}
.mast-nav a:hover { color: var(--brass-dk); border-color: var(--brass); }
@media (min-width: 940px) { .mast-nav { display: flex; } }

.nav-toggle-input { display: none; }
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: 1px solid var(--ink); }
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); display: block; }
.mobile-menu { display: none; flex-direction: column; gap: 0.2rem; padding: 0.5rem 0 1.4rem; }
.mobile-menu a { font-family: var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
.nav-toggle-input:checked ~ .mobile-menu { display: flex; }
@media (min-width: 940px) { .nav-burger { display: none; } }

/* -------- Hero -------- */
.hero { padding-block: 3.5rem 4rem; }
@media (min-width: 768px) { .hero { padding-block: 5rem 5.5rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-copy h1 { margin-block: 0.4rem 1.5rem; }

.stat-line { display: flex; flex-wrap: wrap; gap: 0; margin: 2.6rem 0 0; border-top: 1px solid var(--line); }
.stat-line div { flex: 1 1 auto; min-width: 8rem; padding: 1.2rem 1.2rem 0 0; }
.stat-line dt { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; color: var(--ink); line-height: 1; }
.stat-line dd { margin: 0.5rem 0 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); }

.board-figure { margin: 0; }
.board-figure svg { width: 100%; max-width: 26rem; margin-inline: auto; height: auto; border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--paper-3); }
.board-figure figcaption { text-align: center; font-style: italic; color: var(--ink-soft); font-size: 0.92rem; margin-top: 1.1rem; }

/* -------- Sections -------- */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section--tint { background: var(--paper-2); }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 0.4rem; }
.mini-head { font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }

/* -------- Game grid (home) -------- */
.game-grid { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 620px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card {
  display: block; padding: 1.8rem 1.6rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background 0.2s ease;
}
.game-card:hover { background: var(--paper-2); }
.game-glyph { font-family: var(--f-display); font-size: 2rem; color: var(--brass-dk); line-height: 1; }
.game-card h3 { font-size: 1.5rem; margin: 0.7rem 0 0.3rem; }
.game-origin { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; }
.game-goal { margin-top: 0.9rem; font-size: 0.94rem; color: var(--ink); }
.game-goal span { color: var(--brass-dk); font-variant: small-caps; letter-spacing: 0.04em; }

/* -------- Split -------- */
.split { display: grid; gap: 2.6rem; align-items: start; }
@media (min-width: 840px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* -------- Principle list (home) -------- */
.principle-list { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.principle-list li { counter-increment: p; padding: 1.3rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; }
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.principle-title::before { content: counter(p, upper-roman) ". "; color: var(--brass-dk); }
.principle-intro { color: var(--ink-soft); font-size: 0.98rem; }

/* -------- Timeline (home) -------- */
.timeline { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.milestone { display: block; padding: 1.8rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--line); transition: color 0.2s ease; }
@media (min-width: 820px) { .milestone { border-bottom: 0; border-right: 1px solid var(--line); padding-right: 1.6rem; } }
.milestone:last-child { border-right: 0; }
.milestone-period { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brass-dk); }
.milestone h3 { font-size: 1.4rem; margin: 0.6rem 0 0.6rem; }
.milestone p { color: var(--ink-soft); font-size: 0.95rem; }
.milestone:hover h3 { color: var(--brass-dk); }

/* -------- Closing -------- */
.closing { text-align: center; max-width: 44rem; margin-inline: auto; }
.closing-mark { display: block; font-size: 2.6rem; color: var(--brass-dk); margin-bottom: 1rem; }
.closing h2 { margin-bottom: 1.1rem; }

/* -------- Page head -------- */
.page-head { padding-block: 3.5rem; }
@media (min-width: 768px) { .page-head { padding-block: 5rem 4rem; } }
.page-head h1 { margin-block: 0.3rem 1.3rem; }

/* -------- Game entries (page) -------- */
.game-stack { display: grid; gap: 0; }
.game-entry { display: grid; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.game-entry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 820px) { .game-entry { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; } }
.game-mark .game-glyph--lg { font-size: 3.4rem; }
.game-mark h2 { font-size: 2rem; margin: 0.6rem 0 0.4rem; }
.game-facts { display: grid; gap: 0; margin: 1.6rem 0; border-top: 1px solid var(--line); }
.game-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.game-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brass-dk); padding-top: 0.2rem; }
.game-facts dd { margin: 0; font-family: var(--f-display); font-size: 1.05rem; }

.mark-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mark-list li { position: relative; padding-left: 1.7rem; color: var(--ink); }
.mark-list li::before { content: "♦"; position: absolute; left: 0; color: var(--brass); font-size: 0.7rem; top: 0.3rem; }

/* -------- Principle entries (page) -------- */
.principle-stack { display: grid; gap: 0; }
.principle-entry { display: grid; gap: 2rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.principle-entry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 820px) { .principle-entry { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: start; } }
.principle-lead h2 { font-size: 1.9rem; margin: 0.5rem 0 1rem; }

/* -------- History (page) -------- */
.history-stack { display: grid; gap: 0; }
.history-entry { display: grid; gap: 1rem; padding-block: 2.6rem; border-top: 1px solid var(--line); }
.history-entry:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 720px) { .history-entry { grid-template-columns: 10rem 1fr; gap: 2.5rem; } }
.history-period { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass-dk); padding-top: 0.5rem; }
.history-body h2 { font-size: 1.7rem; margin-bottom: 0.7rem; }

/* -------- Glossary -------- */
.glossary { display: grid; gap: 0; margin: 0; }
.gloss-item { display: grid; gap: 0.3rem 2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.gloss-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .gloss-item { grid-template-columns: 14rem 1fr; } }
.gloss-item dt { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.gloss-item dd { margin: 0; color: var(--ink-soft); }

/* -------- Contact / forms -------- */
.contact-list { display: grid; gap: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brass-dk); }
.contact-list dd { margin: 0.3rem 0 0; font-family: var(--f-display); font-size: 1.1rem; }
.form-box { padding: 2rem; border: 1px solid var(--ink); background: var(--paper); }
.field { display: grid; margin-bottom: 1.2rem; }
.field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 0.5rem; }
.req { color: var(--brass-dk); margin-left: 3px; }
.input, .textarea {
  width: 100%; font-family: var(--f-body); font-size: 1rem; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 1px; padding: 0.7rem 0.9rem; outline: none;
  transition: border-color 0.2s ease;
}
.textarea { resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--brass); }
.form-done { display: flex; gap: 1.2rem; align-items: flex-start; padding: 2rem; border: 1px solid var(--brass); background: var(--paper-2); }
.form-done[hidden] { display: none; }
.done-mark { font-size: 2rem; color: var(--brass-dk); line-height: 1; }

/* -------- FAQ -------- */
.faq-group { margin-bottom: 2.8rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-group .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1.5rem;
  font-family: var(--f-display); font-size: 1.2rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brass-dk); font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1.3rem; color: var(--ink-soft); max-width: 52rem; }

/* -------- Prose (legal) -------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; margin-bottom: 0.7rem; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose a { color: var(--brass-dk); text-decoration: underline; text-underline-offset: 3px; }

/* -------- Colophon (footer) -------- */
.colophon { border-top: 4px solid var(--ink); background: var(--paper-2); }
.colophon-grid { display: grid; gap: 2.4rem; padding-block: 3.6rem; }
@media (min-width: 820px) { .colophon-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.colophon-brand p { margin-top: 1rem; color: var(--ink-soft); max-width: 24rem; font-size: 0.95rem; }
.colophon-col h4 { font-family: var(--f-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass-dk); margin-bottom: 1.1rem; }
.colophon-col ul { list-style: none; padding: 0; margin: 0; }
.colophon-col li { margin-bottom: 0.7rem; }
.colophon-col li a { font-size: 0.95rem; color: var(--ink-soft); }
.colophon-col li a:hover { color: var(--brass-dk); }
.colophon-base { display: flex; flex-direction: column; gap: 0.8rem; padding-block: 1.8rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }
@media (min-width: 768px) { .colophon-base { flex-direction: row; justify-content: space-between; align-items: center; } }
.fleuron { font-size: 1.2rem; color: var(--brass-dk); }

/* -------- Skip link -------- */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
