/* OBJEKT 62 - shared stylesheet for the crawlable text pages (/how-to-play,
   /about). Static, same-origin, no build step: the ship manifest copies this
   file to the site root. The palette matches the boot splash and front door
   (src/bootTheme.js, src/ui/frontDoor.js) so the pages read as the same
   product, but nothing here is imported by the game. */
:root {
  color-scheme: dark;
  --bg: #050403;
  --ink: #d9ccb0;
  --dim: #a08a67;
  --amber: #d8b36a;
  --bright: #efdcae;
  --rule: rgba(216, 179, 106, .32);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(216, 179, 106, .10), transparent 34rem),
    var(--bg);
}

main {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) 0 64px;
}

h1, h2 { color: var(--bright); font-weight: 500; letter-spacing: .06em; line-height: 1.2; }
h1 { margin: 0 0 18px; font-size: clamp(26px, 6vw, 44px); }
h2 { margin: 44px 0 12px; font-size: clamp(17px, 3.4vw, 22px); }
p, li, td, th { font-family: system-ui, sans-serif; font-size: 16.5px; line-height: 1.65; }
ul { padding-left: 22px; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--bright); }
a:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
kbd {
  padding: 1px 6px;
  border: 1px solid var(--rule);
  background: rgba(216, 179, 106, .06);
  color: var(--bright);
  font: inherit;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: .9em;
  white-space: nowrap;
}

.kicker { margin: 0 0 14px; color: var(--dim); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.rule { width: 64px; height: 1px; margin: 0 0 18px; background: rgba(216, 179, 106, .6); }
.lede { max-width: 640px; font-size: 19px; color: var(--ink); }
.button {
  display: inline-block;
  min-height: 44px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(216, 179, 106, .48);
  background: rgba(5, 4, 3, .82);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: .13em;
  text-decoration: none;
}
.button:hover { border-color: var(--amber); color: var(--bright); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
th, td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { color: var(--dim); font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
td:first-child { width: 42%; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  letter-spacing: .1em;
}

h2 + nav {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
