/* Robber Barons — the website. The game's own palette and type (components/menu-folio.css): dark
   leather, cream text, gilt for what you press; Alegreya SC for titles, Alegreya and Alegreya Sans. */
@font-face { font-family: 'Alegreya'; font-weight: 400; font-display: swap; src: url(fonts/alegreya-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/alegreya-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya'; font-weight: 700; font-display: swap; src: url(fonts/alegreya-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya SC'; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sc-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya SC'; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sc-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format('woff2'); }
:root {
  color-scheme: dark;
  --caps: 'Alegreya SC', 'Alegreya', Georgia, serif;
  --serif: 'Alegreya', Georgia, serif;
  --sans: 'Alegreya Sans', 'Segoe UI', sans-serif;
  --bg: #140b07;
  --bg-2: #1c0f09;
  --panel: rgba(42, 23, 15, 0.78);
  --edge: rgba(220, 181, 108, 0.28);
  --text: #f4e8cc;
  --muted: #cdb994;
  --gold: #dcb56c;
  --gold-hi: #f1d79e;
  --ink: #1d1209;
  --title: #f4e8cc;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1180px;
  --mark-desert: #c89a50; --mark-wood: #377250; --mark-sheep: #80b45a; --mark-brick: #b9583d;
  --mark-wheat: #d8aa3c; --mark-ore: #87919a; --mark-sea: #1689c4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-family: var(--caps); font-weight: 700; letter-spacing: .01em; }
h3 { font-family: var(--serif); font-weight: 700; }
h1, h2, h3 { color: var(--title); margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* The rosette: the game's mark, seven hexes in the island's colours. */
.rosette { --tile: 13px; position: relative; flex: 0 0 auto; width: calc(var(--tile) * 3); height: calc(var(--tile) * 2.887); filter: drop-shadow(0 3px 7px rgba(0,0,0,.5)); }
.rosette i { position: absolute; width: var(--tile); height: calc(var(--tile) * 1.1547); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rosette .c { left: var(--tile); top: calc(var(--tile) * .866); background: var(--mark-desert); }
.rosette .w { left: 0; top: calc(var(--tile) * .866); background: var(--mark-wood); }
.rosette .e { left: calc(var(--tile) * 2); top: calc(var(--tile) * .866); background: var(--mark-sheep); }
.rosette .nw { left: calc(var(--tile) * .5); top: 0; background: var(--mark-brick); }
.rosette .ne { left: calc(var(--tile) * 1.5); top: 0; background: var(--mark-wheat); }
.rosette .sw { left: calc(var(--tile) * .5); top: calc(var(--tile) * 1.732); background: var(--mark-ore); }
.rosette .se { left: calc(var(--tile) * 1.5); top: calc(var(--tile) * 1.732); background: var(--mark-sea); }

/* Buttons: brass to press, quiet for the second choice. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 12px;
  font: 700 19px/1 var(--caps); text-decoration: none; white-space: nowrap;
  color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  border: 1px solid rgba(255, 230, 170, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px rgba(0,0,0,.35);
  transition: transform .15s ease, filter .15s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button:active { transform: translateY(0); filter: brightness(.96); }
.button-quiet { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12)), #2a170f; border-color: var(--edge); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 16px; }
.play-glyph { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(20, 11, 7, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--title); }
.brand-name { font: 700 22px/1 var(--caps); letter-spacing: .01em; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .top-nav { display: none; } .top .button { margin-left: auto; } }

/* Hero: the table itself, full width, with the words over its dark corner. */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 12%; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,11,7,.94) 0%, rgba(20,11,7,.78) 34%, rgba(20,11,7,.1) 64%, rgba(20,11,7,0) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(20,11,7,0) 26%); }
.hero-copy { max-width: 560px; padding: 72px var(--gutter) 64px; }
.hero h1 { font-size: clamp(44px, 7vw, 78px); line-height: 1; letter-spacing: .005em; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.tagline { margin: 12px 0 22px; font: italic 400 21px/1.35 var(--serif); color: var(--muted); }
.lede { font-size: 19px; color: #efe2c4; max-width: 30em; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .hero { min-height: 0; display: block; }
  .hero-media { position: relative; height: 62vw; min-height: 240px; }
  .hero-media img { object-position: 55% 8%; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(20,11,7,0) 45%); }
  .hero-copy { padding-top: 8px; padding-bottom: 40px; }
  .lede { font-size: 17px; }
  .actions .button { flex: 1 1 100%; }
}

/* Sections */
.section, .band, .closing { max-width: var(--wide); margin: 0 auto; padding: clamp(44px, 6vw, 80px) var(--gutter); }
.section-lede { color: var(--muted); max-width: 40em; margin-bottom: 30px; }
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.band-reverse .band-copy { order: 2; }
.band-copy p { color: #e6d8b8; }
.band-media { margin: 0; }
.band-media figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.clip, .shot { width: 100%; border-radius: var(--radius); border: 1px solid var(--edge); box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #1c0f09; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 860px) {
  .band, .band-reverse { grid-template-columns: 1fr; }
  .band-reverse .band-copy { order: 0; }
}

/* Opponents */
.opponents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.opponent { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--edge); }
.opponent img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid rgba(224,194,129,.45); background: #2a170f; }
.opponent p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.opponent-baron { border-color: rgba(240, 196, 106, .55); background: linear-gradient(160deg, rgba(240,196,106,.10), rgba(0,0,0,.1)), var(--panel); }
.rating { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font: 700 14px/1.4 var(--sans); color: var(--gold-hi); border: 1px solid var(--edge); vertical-align: middle; }
@media (max-width: 760px) { .opponents { grid-template-columns: 1fr; } .opponent img { width: 64px; height: 64px; } }

/* Ways to play */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--edge); }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.ticks li { position: relative; padding-left: 26px; color: #e6d8b8; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 12.7px; background: var(--gold); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ticks strong { color: var(--title); }
@media (max-width: 760px) { .ticks { grid-template-columns: 1fr; } }

/* Phone */
.phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 64px); align-items: center; }
.phone-copy p { color: #e6d8b8; max-width: 30em; }
.phone-shots { display: flex; gap: 18px; }
.phone-shots img { width: clamp(130px, 17vw, 210px); border-radius: 26px; border: 6px solid #2a170f; box-shadow: 0 24px 60px rgba(0,0,0,.55); background: #1c0f09; }
.phone-shots img + img { margin-top: 48px; }
@media (max-width: 760px) { .phone { grid-template-columns: 1fr; } .phone-shots { justify-content: center; } .phone-shots img { width: 44%; } }

/* Closing */
.closing { text-align: center; border-top: 1px solid var(--edge); }
.closing h2 { margin-bottom: 26px; }

/* Footer */
.foot { border-top: 1px solid var(--edge); padding: 36px var(--gutter) max(40px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.foot-maker { color: var(--text); font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 6px 0 18px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot-note { max-width: 46em; margin: 0 auto 8px; font-size: 13px; }
