/* reach.rest — one stylesheet, no framework, no third-party font. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --ink: #1a1a19;
  --ink-soft: #56564f;
  --rule: #dcdcd6;
  --accent: #1f5e4a;
  --accent-ink: #ffffff;
  --warn-bg: #fdf3d8;
  --warn-rule: #d9b64a;
  --warn-ink: #4a3a06;
  --measure: 38rem;
  --page: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14150f;
    --bg-soft: #1d1e17;
    --ink: #eceade;
    --ink-soft: #a8a89a;
    --rule: #35362c;
    --accent: #7fc9ac;
    --accent-ink: #14150f;
    --warn-bg: #2e2814;
    --warn-rule: #8a7328;
    --warn-ink: #f0dfa8;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

/* ---- header ---- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.9375rem;
}

.site-nav a[aria-current="page"] { text-decoration-color: var(--accent); font-weight: 600; }

.btn {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.08); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

/* ---- content ---- */

main { padding: 2.5rem 0 3.5rem; }

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}

h2 {
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.4rem; }

p, li { max-width: var(--measure); }

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 44ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }

.cols {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 1.25rem 0 0;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--bg-soft);
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 1rem 0 0; max-width: none; }

.facts li {
  max-width: none;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.facts li:first-child { border-top: 0; }

.facts b { display: block; font-size: 0.9375rem; }
.facts span { color: var(--ink-soft); font-size: 0.9375rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 2.25rem;
  margin: 0 0 1.1rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.banner {
  border: 1px solid var(--warn-rule);
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  max-width: none;
}

.banner b { letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.8125rem; }

.tbd {
  display: inline-block;
  border: 1px dashed var(--warn-rule);
  border-radius: 4px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  padding: 0.05rem 0.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9em;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.35rem 0 0.15rem;
}

.note { color: var(--ink-soft); font-size: 0.9375rem; }

.legal p, .legal li { max-width: 44rem; }
.legal h2 { font-size: 1.125rem; }

/* ---- footer ---- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
  padding: 1.75rem 0 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 0.75rem; }

.site-foot p { max-width: none; margin: 0.35rem 0 0; }

.ver { font-variant-numeric: tabular-nums; }
