/* Dominologist Dominoes: one stylesheet for the whole site (the /app/ pages use app/app.css).
   Black and gold, the app's own colors. System fonts only: nothing loads from other servers.
   No inline styles anywhere, so the Content-Security-Policy can say style-src 'self'. */

:root {
  --bg: #0B0B0C;
  --card: #17171A;
  --card-hi: #1F1F23;
  --line: rgba(255, 255, 255, .08);
  --line-gold: rgba(226, 177, 80, .32);
  --ink: #F4EEE2;
  --muted: #A2A5AB;
  --gold: #E2B150;
  --gold-deep: #A8741E;
  --gold-grad: linear-gradient(135deg, #FFE6A0 0%, #E9B955 35%, #C48A26 72%, #F3CD72 100%);
  --gold-text: linear-gradient(180deg, #FFF1C4 0%, #F1C45E 55%, #C78C28 100%);
  --display: "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --text: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #F3CD72; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--gold); color: #120d04; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-head { background: #08080A; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-top: 12px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font: 700 21px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { display: inline-block; padding: 11px 0; color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--text); }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
@media (max-width: 600px) {
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; gap: 0 10px; }
  .nav a { font-size: 14.5px; }
}
@media (max-width: 380px) {
  .nav ul { gap: 0 8px; }
  .nav a { font-size: 13.5px; }
  .brand span { font-size: 19px; }
}
@media (max-width: 340px) {
  .nav ul { justify-content: flex-start; gap: 0 14px; }
}

/* ---------- The felt (the app's own cloth, tiled, under a table lamp) ---------- */
.felt {
  background:
    radial-gradient(ellipse 70% 60% at 50% 34%, rgba(255, 236, 206, .085), rgba(255, 236, 206, 0) 60%),
    radial-gradient(ellipse 110% 90% at 50% 38%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .62) 100%),
    url("/img/felt-house.jpg") 50% 0 / 256px 256px repeat,
    #101011;
}
.steel {
  background:
    radial-gradient(ellipse 70% 60% at 50% 34%, rgba(240, 244, 250, .05), rgba(240, 244, 250, 0) 60%),
    radial-gradient(ellipse 110% 90% at 50% 38%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .6) 100%),
    url("/img/felt-steel.jpg") 50% 0 / 256px 256px repeat,
    #121315;
}

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 10px; font: 700 13px/1.35 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
/* Lines that name iPhone or iPad are never set in capitals (Apple's typesetting rule). */
.eyebrow.plain { text-transform: none; letter-spacing: .03em; font-size: 16px; }
.display, .section h2, .page-head h1, .doc h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  color: var(--gold);
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: .08em;
}
.lede { font-size: 18px; max-width: 38em; margin: 0 0 14px; }
.muted, .small { color: var(--muted); }
.small { font-size: 14.5px; }
.pill { display: inline-block; padding: 3px 10px 2px; border: 1px solid var(--line-gold); border-radius: 999px; font: 700 11.5px/1.5 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1.1 var(--text); text-decoration: none; text-align: center; }
.btn-gold { background: var(--gold-grad); color: #1a1205; box-shadow: 0 6px 20px rgba(226, 177, 80, .22); }
.btn-gold:hover { color: #000; filter: brightness(1.06); }
.btn-line { border: 1.5px solid var(--line-gold); color: var(--ink); background: rgba(0, 0, 0, .35); }
.btn-line:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { padding: 30px 0 44px; text-align: center; }
.hero .wrap { display: grid; gap: 18px; align-items: center; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(100%, 400px); margin: 0 auto; }
.hero .display { font-size: clamp(44px, 11vw, 76px); margin: 0 0 14px; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .btns { justify-content: center; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; text-align: left; }
  .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 48px; }
  .hero h1 img { width: 100%; max-width: 460px; }
  .hero .lede { margin-left: 0; }
  .hero .btns { justify-content: flex-start; }
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(36px, 7vw, 54px); margin: 0 0 12px; }
.section-intro { max-width: 40em; margin: 0 0 26px; color: var(--muted); }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.card h3 { margin: 0 0 6px; font: 700 18px/1.3 var(--text); color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* The two worlds: a real game screen from each (portrait, 3:4), side by side even on a phone. */
.worlds { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 10px; }
.worlds figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.worlds picture { display: block; background: #0B0B0C; }
.worlds img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.worlds figcaption { padding: 10px 12px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.worlds figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 16px; }
.worlds-note { margin: 0 0 26px; }
@media (min-width: 900px) {
  .worlds { gap: 16px; }
  .worlds figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .worlds figcaption { padding: 20px; font-size: 15.5px; }
  .worlds figcaption strong { font-size: 17px; }
}

.split { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } .split.flip > :first-child { order: 2; } }
.frame { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.frame img { width: 100%; }

.crests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.crests img { border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 520px) { .crests { grid-template-columns: repeat(5, 1fr); gap: 6px; } .crests img { border-radius: 8px; } }

.cover { margin: 0 auto; width: min(100%, 300px); }
.cover img { border-radius: 8px; box-shadow: 0 22px 48px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.cover.big { width: min(100%, 270px); }
@media (min-width: 900px) { .cover.big { width: min(100%, 360px); } }
.tagline { font-style: italic; font-size: 19px; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 14px; margin: 0 0 16px; }

/* Coming later: plain notes, not buttons (only Books is a link). */
.soon { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .soon { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.soon li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.soon .what { color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.3; }
.soon a.what { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; padding: 2px 0; }
.soon .when { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Inner pages ---------- */
.page-head { padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(42px, 9vw, 68px); margin: 0 0 10px; }
.page-head .lede { margin: 0; }
.doc { padding-top: 34px; padding-bottom: 56px; }
.doc > * { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 8vw, 60px); margin: 0 0 10px; }
.doc h2 { margin: 36px 0 8px; font: 700 21px/1.3 var(--text); color: var(--gold); }
.doc h3 { margin: 22px 0 4px; font: 700 17.5px/1.35 var(--text); color: var(--ink); }
.doc p, .doc li { color: #E4DED2; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); font-size: 15px; }
.callout { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-gold); }
.callout p { margin: 0; }
.faq h3 { margin-top: 20px; }

.events { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .events { grid-template-columns: 1fr 1fr; } }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.event img { width: 92px; height: 92px; border-radius: 12px; }
.event h3 { margin: 0 0 2px; font: 700 17.5px/1.3 var(--text); }
.event .meta { margin: 0 0 6px; font-size: 13.5px; letter-spacing: .04em; color: var(--gold); }
.event p { margin: 0; color: var(--muted); font-size: 15.5px; }

.table-wrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { table { font-size: 13.5px; } th, td { padding: 9px 6px; } th:first-child, td:first-child { padding-left: 10px; } }
thead th { background: var(--card-hi); color: var(--gold); font-weight: 700; }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }

.video { margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-gold); background: #000; }
.video video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- Notify me ---------- */
.notify { margin: 26px 0 0; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-gold); max-width: 560px; }
.notify h2, .notify legend { margin: 0 0 6px; padding: 0; font: 700 19px/1.3 var(--text); color: var(--ink); }
.notify .lead-line { margin: 0; font-size: 16.5px; }
.notify .lead-line a { overflow-wrap: anywhere; }
.notify .fine { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { background: #08080A; border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14.5px; }
.site-foot .cols { display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.site-foot .cols > :first-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .site-foot .cols { grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; } .site-foot .cols > :first-child { grid-column: auto; } }
.site-foot h2 { margin: 0 0 8px; font: 700 12px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.site-foot p { margin: 0 0 8px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 5px 0; color: var(--ink); text-decoration: none; }
.site-foot li a:hover { color: var(--gold); text-decoration: underline; }
.site-foot .legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Phase-1 additions ---------- */
.display-sm { font-size: 40px; margin: 0 0 14px; }
.page-body { padding-top: 34px; padding-bottom: 52px; }
.note { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-gold); max-width: 760px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.show-still { display: block; margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.show-still img { width: 100%; }
.show-wrap { max-width: 1000px; }
.book { display: grid; gap: 16px; grid-template-columns: 110px 1fr; align-items: start; }
.book h3 a { color: var(--ink); }
.book .pill { margin-top: 10px; }
.byline { margin: 0 0 14px; font-size: 18px; }
.byline span { display: block; }
.e404 { min-height: 56vh; display: grid; align-items: center; }
.e404 .wrap { display: block; text-align: center; }
.e404 .display { font-size: clamp(46px, 10vw, 80px); margin: 0 0 14px; }
.e404 .lede { margin: 0 auto 18px; }
.e404 .btns { justify-content: center; }
.site-foot .legal p { margin: 0 0 6px; }
.mt-20 { margin-top: 20px; }
