/* Brittle Brass — the colours and type of the game UI (src/ui in the game repo). */

:root {
  --plate: #1b1e20;
  --plate-2: #22262a;
  --canvas: #2e3027;
  --bone: #e9dfc6;
  --dim: #a7a49a;
  --brass: #c79a3c;
  --brass-hi: #edc873;
  --brass-lo: #7a5a1f;
  --copper: #b8693a;
  --red: #c8452f;
  --paper: #d9cba3;
  --ink: #2a2318;
  --line: rgba(199, 154, 60, 0.22);

  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --cond: "Avenir Next Condensed", "DIN Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow",
    "Liberation Sans Narrow", "Nimbus Sans Narrow", Impact, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --wrap: 68rem;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plate);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--brass-hi); text-underline-offset: 0.18em; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 10; background: var(--brass); color: var(--plate); padding: 6px 10px; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); background: rgba(27, 30, 32, 0.92); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass-hi); text-decoration: none;
  font-family: var(--cond); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.brand:hover { color: var(--bone); }
.mark { width: 26px; height: 26px; flex: none; }

nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a {
  color: var(--dim); text-decoration: none;
  font-family: var(--cond); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
}
nav a:hover, nav a[aria-current="page"] { color: var(--brass-hi); }

/* Type */

h1, h2, h3 {
  font-family: var(--cond); font-weight: 700; line-height: 1.1;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); color: var(--brass-hi); }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }
p { margin: 0 0 1em; }

.eyebrow {
  display: block; margin-bottom: 0.9rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass);
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(56px, 11vw, 120px) 0 clamp(48px, 8vw, 88px);
  background:
    radial-gradient(60rem 26rem at 78% 0%, rgba(199, 154, 60, 0.16), transparent 70%),
    radial-gradient(40rem 20rem at 0% 100%, rgba(184, 105, 58, 0.12), transparent 70%),
    linear-gradient(180deg, var(--canvas), var(--plate));
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 6.5rem); letter-spacing: 0.06em; margin-bottom: 0.25em;
  color: var(--brass-hi);
  text-shadow: 0 2px 0 var(--brass-lo), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 38rem; color: var(--bone); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 2rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: var(--ink); border: 1px solid var(--brass-lo);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
}
.button:hover { color: var(--ink); filter: brightness(1.06); }
.button.ghost { background: transparent; color: var(--brass-hi); border-color: var(--brass-lo); box-shadow: none; }
.button.ghost:hover { background: rgba(199, 154, 60, 0.1); color: var(--bone); }

.soon {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--dim);
  border: 1px dashed var(--brass-lo); border-radius: 3px; padding: 10px 14px;
}

/* Sections */

.section { padding: clamp(48px, 8vw, 88px) 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }

.split { display: grid; gap: 32px 56px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.features li {
  background: var(--plate-2); border: 1px solid var(--line); border-top: 2px solid var(--brass);
  border-radius: 3px; padding: 18px 20px 14px;
}
.features h3 { color: var(--brass-hi); margin-bottom: 0.4em; }
.features p { color: var(--dim); font-size: 0.98rem; }

/* The field note: the paper style of the game's briefings. */
.note {
  background: var(--paper); color: var(--ink);
  border-radius: 2px; padding: 22px 24px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(-0.4deg);
}
.note h2, .note h3 { color: var(--ink); }
.note a { color: var(--ink); }
.note .eyebrow { color: var(--red); }

.shots { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shots { grid-template-columns: 1fr 1fr; } }
.shots img { border: 1px solid var(--line); border-radius: 3px; }

/* Long text: legal pages, press, contact */

.page { padding: clamp(40px, 7vw, 72px) 0 clamp(48px, 8vw, 88px); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.updated { font-family: var(--mono); font-size: 0.85rem; color: var(--dim); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 2em; }
.facts dt { font-family: var(--cond); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.facts dd { margin: 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--dim); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-row p { margin: 0; }
.fine { margin-top: 14px; font-size: 0.82rem; opacity: 0.8; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
