/* The guide pages: the landing page's (index.html) colours, type and header, for reading. */
:root {
  --bg: #f6f3ec;
  --bg-alt: #ede8dc;
  --card: #fffdf8;
  --ink: #1a2420;
  --ink-soft: #56615b;
  --line: #ddd5c3;
  --brand: #2e7d6b;
  --brand-deep: #1f5f50;
  --amber: #9a5a17;
  --weight: #1f6b5a;
  --drinks: #8e3354;
  --habits: #65558f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121815;
    --bg-alt: #18201c;
    --card: #1d2621;
    --ink: #ecefe9;
    --ink-soft: #a9b3ad;
    --line: #2e3933;
    --brand: #6cc3a8;
    --brand-deep: #8fd6bf;
    --amber: #e0a35a;
    --weight: #6cc3a8;
    --drinks: #f0a3bf;
    --habits: #c4b5f5;
  }
}
:root[data-theme="dark"] {
  --bg: #121815;
  --bg-alt: #18201c;
  --card: #1d2621;
  --ink: #ecefe9;
  --ink-soft: #a9b3ad;
  --line: #2e3933;
  --brand: #6cc3a8;
  --brand-deep: #8fd6bf;
  --amber: #e0a35a;
  --weight: #6cc3a8;
  --drinks: #f0a3bf;
  --habits: #c4b5f5;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: Fraunces, Georgia, serif; font-optical-sizing: auto; letter-spacing: -.015em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 20px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 48px 0 14px; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 18px; }
li { margin-bottom: 6px; }
a { color: var(--brand); }
strong { font-weight: 600; }
.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
.mark { display: inline-block; width: 1em; height: 1em; color: var(--brand); }
.wordmark { color: var(--ink); }
.wordmark span { color: var(--brand); }

header.nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.nav-inner { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; }
.pill { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }

.crumbs { font-size: 14px; color: var(--ink-soft); margin: 36px 0 18px; }
.crumbs a { color: var(--ink-soft); }
.eyebrow { display: block; font: 600 12.5px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
article { padding-bottom: 40px; }
article p, article li { color: color-mix(in srgb, var(--ink) 88%, var(--ink-soft)); }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption { caption-side: bottom; text-align: left; padding: 10px 14px; font-size: 13.5px; color: var(--ink-soft); }

.note { padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); margin: 0 0 18px; }
.note p:last-child { margin-bottom: 0; }

.cta { margin: 48px 0 0; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--ink-soft); }
.btn { display: inline-flex; align-items: center; padding: 14px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-deep); }
:root[data-theme="dark"] .btn { color: #0f1a15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0f1a15; } }

.more { margin-top: 40px; }
.more ul { list-style: none; padding: 0; display: grid; gap: 8px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { margin: 0; max-width: 34em; }
footer a { color: var(--ink-soft); }

@media (max-width: 440px) {
  body { font-size: 16px; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; }
  .pill .long { display: none; }
}
