/* site.css: the pages around the game (help, wiki, rules, terms, privacy, accessibility, credits, legal notices).
   Built by _pages/build.py. Colours are the game's UiTokens (HudClean.cs); Cinzel only for names and titles, sentences in EB Garamond
   (brief.md §6.2). The fonts are served from this site, never from Google (GDPR: LG München 3 O 17493/20). */
@font-face { font-family: "Cinzel"; src: url("fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/EBGaramond-Italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #080812; --plate: rgba(8,8,18,.86); --field: rgba(0,0,0,.42);
  --bone: #e8dec9; --muted: #c2bacc; --ember: #f5994c; --ember-soft: #f6d3ab; --danger: #e64c3d;
  --hair: rgba(232,222,201,.22); --hair-strong: rgba(232,222,201,.42);
  --serif: "EB Garamond", Garamond, Georgia, serif; --cap: "Cinzel", "Trajan Pro", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { margin: 0; }
body {
  min-height: 100vh; color: var(--bone); font-family: var(--serif); font-size: 19px; line-height: 1.62;
  background: linear-gradient(rgba(4,4,12,.84), rgba(4,4,12,.93)), url("img/title.jpg") center / cover no-repeat fixed, var(--night);
}
@media (max-width: 760px) { body { background-attachment: scroll; font-size: 18px; } }

a { color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ember-soft); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--night); color: var(--ember); padding: 8px 14px; border: 1px solid var(--ember); z-index: 50; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 12px max(16px, calc((100vw - 1180px) / 2)); background: rgba(6,6,14,.94); border-bottom: 1px solid var(--hair); backdrop-filter: blur(6px); }
.brand { font-family: var(--cap); font-size: 13px; letter-spacing: .34em; color: var(--bone); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ember-soft); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { font-family: var(--cap); font-size: 12px; letter-spacing: .2em; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--bone); border-bottom-color: var(--ember); }
.ride { font-family: var(--cap); font-size: 12px; letter-spacing: .22em; color: var(--ember-soft); text-decoration: none; border: 1px solid var(--ember); background: rgba(90,20,10,.45); padding: 8px 14px; white-space: nowrap; }
.ride:hover { background: rgba(120,30,14,.6); color: #fff1df; }
@media (max-width: 640px) { .bar { gap: 12px; flex-wrap: wrap; } .brand { letter-spacing: .22em; } .nav { order: 3; width: 100%; margin: 0; gap: 18px; } .ride { margin-left: auto; } }

/* page */
.page { width: min(1180px, 100%); margin: 0 auto; padding: 34px 16px 0; display: grid; gap: 34px; }
.page.side { grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .page.side { grid-template-columns: minmax(0, 1fr); } }
main { min-width: 0; }
.plate { background: var(--plate); border: 1px solid var(--hair); padding: 34px clamp(18px, 4vw, 44px) 38px; max-width: 820px; }
.plate.full { max-width: none; }

.kicker { font-family: var(--cap); font-size: 12px; letter-spacing: .3em; color: var(--muted); margin: 0 0 10px; }
h1 { font-family: var(--cap); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: .12em; text-transform: uppercase; line-height: 1.25; margin: 0 0 10px; }
.lede { color: var(--muted); font-size: 20px; margin: 0 0 6px; }
.date { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.rule { height: 1px; background: linear-gradient(90deg, var(--hair-strong), transparent); border: 0; margin: 22px 0 6px; }
h2 { font-family: var(--cap); font-weight: 400; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin: 34px 0 10px; line-height: 1.4; }
h3 { font-family: var(--cap); font-weight: 400; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); margin: 24px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; } li { margin-bottom: 7px; }
li::marker { color: var(--ember); }
b, strong { font-weight: 600; color: var(--ember-soft); }
em { color: var(--bone); }
.name { font-family: var(--cap); font-size: .82em; letter-spacing: .1em; color: var(--bone); white-space: nowrap; }
kbd { font-family: var(--cap); font-size: 12px; letter-spacing: .08em; border: 1px solid var(--hair-strong); border-bottom-width: 2px; padding: 1px 7px; background: var(--field); color: var(--bone); white-space: nowrap; }
.note { border-left: 2px solid var(--ember); background: rgba(245,153,76,.07); padding: 12px 16px; margin: 16px 0; }
.warn { border-left: 2px solid var(--danger); background: rgba(230,76,61,.08); padding: 12px 16px; margin: 16px 0; }
.note p:last-child, .warn p:last-child { margin: 0; }
.short { border: 1px solid var(--hair); background: var(--field); padding: 14px 18px 6px; margin: 18px 0 8px; }
.short h2 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 17px; }
th { font-family: var(--cap); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair-strong); }
td { padding: 8px 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.scroll-x { overflow-x: auto; }

/* hero painting on wiki articles */
.hero { margin: -34px clamp(-44px, -4vw, -18px) 26px; aspect-ratio: 16 / 7; background: center / cover no-repeat; border-bottom: 1px solid var(--hair); position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(8,8,18,.86)); }

/* side list (wiki, help) */
.side-nav { position: sticky; top: 76px; background: var(--plate); border: 1px solid var(--hair); padding: 18px 18px 12px; max-height: calc(100vh - 96px); overflow: auto; }
.side-nav p { font-family: var(--cap); font-size: 11px; letter-spacing: .26em; color: var(--muted); margin: 0 0 8px; }
.side-nav ul { list-style: none; padding: 0; margin: 0 0 16px; }
.side-nav li { margin: 0; }
.side-nav a { display: block; font-family: var(--cap); font-size: 12px; letter-spacing: .12em; color: var(--bone); text-decoration: none; padding: 6px 0 6px 12px; border-left: 1px solid var(--hair); }
.side-nav a:hover { border-left-color: var(--ember); color: var(--ember-soft); }
.side-nav a[aria-current] { border-left: 2px solid var(--ember); color: var(--ember); }
@media (max-width: 960px) { .side-nav { position: static; max-height: none; order: 2; } .side-nav ul { columns: 2; column-gap: 18px; } }   /* (on a phone the page comes first, the list of pages after it) */

/* tiles: the wiki's front page (a painting and a few words for each thing) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.tile { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--bone); background: var(--plate); border: 1px solid var(--hair); transition: border-color .15s; }
.tile:hover { border-color: var(--ember); color: var(--bone); }
.tile .pic { aspect-ratio: 16 / 9; background: center / cover no-repeat; border-bottom: 1px solid var(--hair); }
.tile .txt { padding: 12px 14px 14px; }
.tile .t { font-family: var(--cap); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.tile .d { color: var(--muted); font-size: 17px; line-height: 1.45; display: block; }
.tile:hover .t { color: var(--ember-soft); }

/* help: questions that open */
.search { display: block; width: 100%; background: var(--field); border: 1px solid var(--hair-strong); color: var(--bone); padding: 12px 14px; font: 18px var(--serif); margin: 18px 0 6px; }
.search::placeholder { color: var(--muted); opacity: .8; }
details.q { border-bottom: 1px solid var(--hair); }
details.q > summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-size: 19px; }
details.q > summary::-webkit-details-marker { display: none; }
details.q > summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--ember); font-family: var(--cap); }
details.q[open] > summary::after { content: "–"; }
details.q > summary:hover { color: var(--ember-soft); }
details.q > div { padding: 0 0 12px; color: var(--bone); }
.none { color: var(--muted); display: none; }

.toc { columns: 2; column-gap: 26px; list-style: none; padding: 0; margin: 14px 0 0; }
.toc li { break-inside: avoid; margin-bottom: 4px; }
.toc a { font-family: var(--cap); font-size: 12px; letter-spacing: .12em; text-decoration: none; }
@media (max-width: 560px) { .toc { columns: 1; } }

.next { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--hair); font-family: var(--cap); font-size: 12px; letter-spacing: .14em; }
.next a { text-decoration: none; }

/* footer */
.foot { width: min(1180px, 100%); margin: 40px auto 0; padding: 22px 16px 40px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.foot nav a { font-family: var(--cap); font-size: 11px; letter-spacing: .18em; color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--bone); }
.foot p { margin: 0 0 4px; }

/* a Hebrew section (the accessibility statement): right to left, in the system's Hebrew letters (EB Garamond has none) */
.rtl { direction: rtl; text-align: right; font-family: "Arial Hebrew", "Noto Sans Hebrew", "Segoe UI", system-ui, sans-serif; font-size: 17px; margin-top: 40px; padding-top: 6px; border-top: 1px solid var(--hair); }
.rtl ul, .rtl ol { padding-left: 0; padding-right: 22px; }
.rtl h2, .rtl h3 { font-family: inherit; letter-spacing: 0; font-weight: 600; }
.rtl .note, .rtl .warn { border-left: 0; border-right: 2px solid var(--ember); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { body { background: #fff; color: #000; } .bar, .foot nav, .side-nav, .hero { display: none; } .plate { border: 0; background: none; } h2, a { color: #000; } }

td .name, li .name { white-space: normal; }
