/* Captains & Admirals: Tournament Edition page. Self-contained: no web fonts, no external requests. */
:root {
  --bg: #0a1522;
  --surface: #101f31;
  --surface-2: #162a41;
  --line: #28435f;
  --text: #e8eff7;
  --muted: #9bb0c6;
  --gold: #f5b83d;
  --gold-ink: #1c1203;
  --teal: #38d0c2;
  --navy: #3ec6ea;
  --pirate: #e0963a;
  --link: #7fe3d9;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--body);
}
a { color: var(--link); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

.topbar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 56px; }
h1 { font: 700 clamp(2.3rem, 6.2vw, 3.9rem)/1.05 var(--display); margin: 0 0 6px; color: var(--gold); }
.edition { display: block; font: 600 clamp(1.3rem, 3.4vw, 1.9rem)/1.2 var(--display); color: var(--teal); margin-bottom: 20px; }
.lede { font-size: 1.2rem; line-height: 1.55; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--gold); color: var(--gold-ink); border: 2px solid var(--gold);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: #ffd070; color: var(--gold-ink); }
.btn.quiet { background: transparent; color: var(--link); border-color: var(--line); }
.btn.quiet:hover { background: var(--surface); color: #fff; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

.hero-shot { margin: 0; justify-self: center; max-width: 440px; }
.hero-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6); }
.hero-shot figcaption, .shots figcaption { font-size: 0.9rem; line-height: 1.5; color: var(--muted); margin-top: 10px; }

/* solo-first band */
.solo { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0; }
.solo .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.solo h2 { font-size: 1.5rem; margin: 0 0 8px; }
.solo p { margin: 0; max-width: 42em; }

/* sections */
section.block { padding: 52px 0; border-top: 1px solid var(--line); }
h2 { font: 700 clamp(1.6rem, 4vw, 2.1rem)/1.15 var(--display); margin: 0 0 18px; color: var(--gold); }
h3 { font: 700 1.2rem/1.3 var(--display); margin: 30px 0 10px; }
p { margin: 0 0 1em; }
.prose { max-width: 40em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
ul.plain, ol.steps { padding-left: 1.3em; margin: 0 0 1em; }
ul.plain li, ol.steps li { margin-bottom: 0.55em; }

/* tables */
.scroll { overflow-x: auto; margin: 14px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; min-width: 520px; }
caption { text-align: left; font: 700 1.05rem var(--display); padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; background: var(--surface); }
td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.navy-col { color: var(--navy); }
.pirate-col { color: var(--pirate); }

/* mini grids: the round table shows the board growing from 10x10 to 12x12 */
.mini {
  display: block;
  background-color: var(--surface);
  background-image:
    linear-gradient(to right, rgba(127, 227, 217, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 227, 217, 0.35) 1px, transparent 1px);
  background-size: 7px 7px;
  border: 1px solid rgba(127, 227, 217, 0.5);
}
.mini { margin-bottom: 6px; }
.mini.g10 { width: 71px; height: 71px; }
.mini.g12 { width: 85px; height: 85px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
details p { margin: 10px 0 0; max-width: 40em; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.95rem; color: var(--muted); }
footer a { margin-right: 18px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .two, .shots { grid-template-columns: 1fr; }
  .shots figure { max-width: 460px; }
  .solo .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
