/* The Industry design system, as it applies to the web.
 *
 * The same drawing as the apps: one steel accent across its ramp and no second
 * hue, square corners, hairline rules, Barlow Condensed over Barlow. Shared by
 * every page so the site and the games cannot drift apart.
 *
 * Kept as one small stylesheet rather than inlined twice - a policy page and a
 * landing page that disagree about their own colours is exactly how a site
 * starts looking abandoned. */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  color-scheme: light dark;

  --ground: #f2f2f3;
  --surface: #e9e9ea;
  --cell: #ffffff;
  --ink: #1d1f20;
  /* Deep enough to read at caption size. The ramp's mid grey looks right in a
     mock-up and washes out on a phone. */
  --ink-muted: #2b2b2d;
  --rule: #d4d4d7;
  --rule-strong: #1d2d3d;
  --accent: #5980a6;
  /* The accent is tuned to about 3:1 - fine for a rule or a filled block, not
     for a tracked-out label a tenth of an inch tall. Small type takes this. */
  --accent-ink: #2c455d;
  --field: #1d2d3d;
  --on-field: #ffffff;
  --on-field-muted: #b5d9fd;

  --heading: "Barlow Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #17191b;
    --surface: #202326;
    --cell: #1f2226;
    --ink: #f2f2f3;
    --ink-muted: #c6ccd3;
    --rule: #33383d;
    --rule-strong: #94bce3;
    --accent: #749dc4;
    --accent-ink: #b5d9fd;
    --field: #2c455d;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }

/* The small tracked-out capital that names a section or a page. */
.kicker {
  font: 600 11px/1 var(--heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.6rem;
}
.kicker-muted { color: var(--ink-muted); }

h1 {
  font: 600 2.6rem/1 var(--heading);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

/* Sections are opened by a heading and the rule beneath it, not by a bigger
   word floating in space. */
h2 {
  font: 600 1.45rem/1.15 var(--heading);
  margin: 3rem 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font: 700 1.05rem/1.2 var(--heading);
  margin: 1.75rem 0 0.35rem;
}

p { margin: 0 0 1rem; }

.sub {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0 0 2.25rem;
}

/* The one solid object on a page of line drawings. Used once. */
.field {
  background: var(--field);
  color: var(--on-field);
  padding: 1.15rem 1.25rem;
  margin: 0 0 2.25rem;
}
.field p { margin: 0; color: var(--on-field); }
.field .kicker { color: var(--on-field-muted); }
.field strong { color: var(--on-field); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.93rem;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.7rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th {
  font: 600 10.5px/1 var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom-color: var(--rule-strong);
}
/* Wide content scrolls inside its own box; the page itself never does. */
.wrap { overflow-x: auto; }

code {
  font: 500 0.88em/1 var(--body);
  background: var(--cell);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.35rem;
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

ul { padding-left: 1.1rem; margin: 0 0 1rem; }
li { margin: 0.35rem 0; }

/* A titled block in the ruled style - a game, an entry, a choice. */
.entry {
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.entry h2 {
  border: 0;
  margin: 0 0 0.2rem;
  padding: 0;
  font-size: 1.3rem;
}
.entry p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--rule-strong);
  font: 600 10.5px/1 var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
