/* Static site for the game and Atronia Innovations Inc. Colours and lines follow the game UI
   (src/ui/theme/tokens.css): cream paper panels, thick ink outlines, sticker-like headings.
   Fonts are the game's own (SIL Open Font License, see fonts/). No external requests. */

@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lilita-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --ink: #1d1712;
  --night: #231d18;
  --night-2: #2f2721;
  --paper: #fff4dc;
  --paper-2: #f4e2bb;
  --paper-3: #dcc394;
  --fg-on-dark: #fff7e8;
  --fg-dim: #6a5845;
  --primary: #ffc42e;
  --goo: #8fd14f;
  --link: #1858bf;
  --line: 3px;
  --radius: 20px;
  --display: "Lilita One", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(rgba(255, 247, 232, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
}

.top {
  background: var(--night-2);
  border-bottom: var(--line) solid var(--ink);
  padding: 12px 16px;
}
.top-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.brand {
  font-family: var(--display);
  font-size: 22px;
  color: var(--primary);
  text-decoration: none;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--ink);
  margin-right: auto;
}
.top nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.top nav a {
  color: var(--fg-on-dark);
  font-weight: 800;
  text-decoration: none;
  font-size: 15px;
}
.top nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

main {
  max-width: 820px;
  margin: 20px auto;
  padding: 0 16px;
}

.panel {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 20px 18px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 34px;
  margin: 0 0 12px;
  color: var(--primary);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
}
h2 {
  font-size: 24px;
  margin: 30px 0 10px;
  padding-bottom: 4px;
  border-bottom: var(--line) solid var(--ink);
}
h3 { font-size: 20px; margin: 22px 0 8px; }

a { color: var(--link); font-weight: 800; }

p, ul, ol { margin: 0 0 12px; }
li { margin-bottom: 6px; }

.lead { font-size: 19px; font-weight: 700; }
.dim { color: var(--fg-dim); }

.table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
  background: var(--paper);
}
th, td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--paper-2); font-weight: 900; }

/* Placeholders that must be filled before publishing: deliberately loud. */
mark.ph {
  background: #ffe066;
  color: var(--ink);
  border: 2px dashed #bf2a20;
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 900;
}

.notice {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.card {
  display: block;
  background: var(--paper-2);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}
.card strong { font-family: var(--display); font-weight: 400; font-size: 20px; display: block; }
.card span { color: var(--fg-dim); font-weight: 700; }

.badge {
  display: inline-block;
  background: var(--goo);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--display);
  font-size: 18px;
  box-shadow: 0 3px 0 var(--ink);
}

footer {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: #cbbba5;
  font-size: 14px;
}
footer a { color: var(--fg-on-dark); }

.panel > :first-child { margin-top: 0; }

/* Odds tables are narrow: keep every column on screen at phone width. */
table.odds { min-width: 0; }
table.odds { overflow-wrap: normal; }
table.odds td:last-child { white-space: nowrap; }
