/* Shared look of the website's text pages (guide, strategy, maps, updates, about). */

:root {
  --bg: #0b0806;
  --panel: #16100c;
  --line: #2a211a;
  --text: #e8e2d6;
  --muted: #9a907f;
  --green: #5affaa;
  --yellow: #ffe066;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--green);
}

/* Top bar: logo + the site's pages. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px 16px;
  background: rgba(11, 8, 6, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  text-decoration: none;
}

.site-nav .brand img {
  width: 28px;
  height: 28px;
}

.site-nav a.page {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a.page:hover,
.site-nav a.page[aria-current='page'] {
  color: var(--text);
}

.site-nav a.play {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
  background: var(--green);
  text-decoration: none;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.2;
  color: var(--green);
  text-wrap: balance;
}

.lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
}

h2 {
  margin: 40px 0 10px;
  font-size: 23px;
  text-wrap: balance;
}

h3 {
  margin: 26px 0 6px;
  font-size: 18px;
  color: var(--yellow);
}

li {
  margin-bottom: 6px;
}

figure {
  margin: 22px 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  image-rendering: pixelated; /* keep the cells crisp */
}

figcaption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Tables (controls, numbers): scroll sideways on small screens instead of overflowing. */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

kbd {
  padding: 1px 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--muted);
  border-radius: 4px;
}

/* A highlighted tip. */
.tip {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--panel);
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

/* Updates page: one block per day. */
.day {
  margin: 26px 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--line);
}

.day h2 {
  margin-top: 0;
}

.day time {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* Big call to action at the end of a page. */
.cta {
  margin: 44px 0 0;
  padding: 22px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cta a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--bg);
  background: var(--green);
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 22px 16px 36px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
}
