:root {
  color-scheme: light dark;
  --fg: #17160f;
  --bg: #fbfaf7;
  --muted: #57544b;
  --rule: #e2ded2;
  --accent: #1f6f4a;
  --measure: 34rem;
  --measure-doc: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f2f0ea;
    --bg: #131309;
    --muted: #a9a599;
    --rule: #2f2e24;
    --accent: #6fc79a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Merriweather", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-top: 0; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

p, ul, ol { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

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

strong { font-weight: 500; }

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

main { flex: 1; padding: clamp(3rem, 10vw, 6rem) 0 4rem; }

/* Front page only: centred, vertically settled. */
main.landing {
  display: flex;
  align-items: center;
  text-align: center;
  padding-bottom: 6rem;
}

main.landing .lede { font-size: 1.1875rem; color: var(--fg); }
main.landing p { color: var(--muted); }

.stores {
  margin: 2.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: -0.35rem;
}

/* ---- long-form legal documents ---- */

.doc .wrap { max-width: var(--measure-doc); }

.doc .eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.doc .eyebrow a { color: var(--muted); text-decoration: none; }
.doc .eyebrow a:hover { color: var(--accent); text-decoration: underline; }

.doc .updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: -0.25rem 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.doc h2 { margin-top: 3rem; }
.doc h3 { margin-top: 2rem; font-size: 1.0625rem; }

.doc h3.runin { margin-bottom: 0.25rem; }
.doc h3.runin + p { margin-top: 0; }

.doc .num { color: var(--muted); font-weight: 400; margin-right: 0.35em; }
.doc h2 .num { font-variant-numeric: tabular-nums; }

.doc ul { list-style: none; padding-left: 0; }

.doc li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
}

.doc ul.contacts li::before { display: none; }
.doc ul.contacts li { padding-left: 0; }

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.doc table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}

.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.doc th {
  font-weight: 500;
  white-space: nowrap;
  background: color-mix(in srgb, var(--rule) 35%, transparent);
}

.doc tbody tr:last-child td { border-bottom: 0; }

mark.todo {
  background: color-mix(in srgb, #d99a00 28%, transparent);
  color: inherit;
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-size: 0.9375em;
}

.doc .placeholder {
  border: 1px dashed var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: center;
}

footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer .copyright { margin-right: auto; }

@media (max-width: 32rem) {
  footer .copyright { margin-right: 0; width: 100%; text-align: center; }
}
