:root {
  color-scheme: dark;
  --ground: #0d1420;
  --panel: #141d2b;
  --text: #f0f3f8;
  --muted: #a3adbd;
  --faint: #8f9aab;
  --accent: #86aee6;
  --ink: #0a1424;
  --rule: #8a94a6;
  --hair: #1e2a3c;
  --accent-hi: #a2c2ee;
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  color-scheme: light;
  --ground: #f6f8fb;
  --panel: #e8edf4;
  --text: #0f1726;
  --muted: #4a5568;
  --faint: #596579;
  --accent: #2b4162;
  --ink: #ffffff;
  --rule: #7c8798;
  --hair: #dde3ec;
  --accent-hi: #1f3150;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f6f8fb;
  --panel: #e8edf4;
  --text: #0f1726;
  --muted: #4a5568;
  --faint: #596579;
  --accent: #2b4162;
  --ink: #ffffff;
  --rule: #7c8798;
  --hair: #dde3ec;
  --accent-hi: #1f3150;
}

/* Sommelie and CheckMark support sites. Layout copied from chocktime.app (logbook/site/assets/site.css,
   2026-10-10) so all Rugburn Labs app sites read alike; each site's colours live in its own tokens.css, which
   build.py puts in front of this file. Demo, mark and trademark rules dropped (unused here). */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 2;
  background: var(--accent);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* --- the mark's dashed centreline, reused as the page's only divider ------------------------ */
.rule {
  height: 5px;
  border: 0;
  margin: 0;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 10px, transparent 10px 19px);
  border-radius: 3px;
  opacity: 0.4;
}

/* --- top bar: brand lock-up left, theme toggle right --------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
a.lockup { text-decoration: none; color: inherit; }
.lockup svg,
.lockup img {
  display: block;
  width: clamp(2.75rem, 7vw, 3.5rem);
  height: clamp(2.75rem, 7vw, 3.5rem);
  flex: none;
}
.lockup img { border-radius: 22%; }
.wordmark {
  font-family: var(--system);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.2vw, 2.125rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* The label and the icon both name the theme you would GET, not the one you are in — one reading,
   whichever half of the control you look at. site.js sets data-to; this picks the matching icon. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  background: none;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--rule); }
.theme-toggle svg { width: 1rem; height: 1rem; flex: none; }
.theme-toggle[data-to="light"] .moon,
.theme-toggle[data-to="dark"] .sun { display: none; }

/* --- hero ---------------------------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 8vw, 5.5rem); }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 7.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: clamp(2rem, 6vw, 3.25rem) 0 0;
  max-width: 18ch;
  text-wrap: balance;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.0625em;
}

/* --- store buttons ------------------------------------------------------------------------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
}
.btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.25rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn:hover { border-color: var(--text); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.soon {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.btn-primary .soon { opacity: 0.75; }

/* --- section scaffolding ------------------------------------------------------------------- */
section { margin-top: clamp(3.5rem, 10vw, 6.5rem); }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

h2.title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 26ch;
}

/* --- features: logbook rows, not cards ----------------------------------------------------- */
.rows { margin: 0; border-top: 1px solid var(--hair); }
.rows > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 46em) {
  .rows > div { grid-template-columns: 9rem 1fr; }
}
.rows dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.3rem;
}
.rows dd {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625em;
}
.rows dd b { font-weight: 500; }
.rows dd .sub { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.9em; }

.note {
  margin: 1.75rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.9375em;
}

/* --- footer -------------------------------------------------------------------------------- */
/* .wrap's `margin: 0 auto` shorthand would zero this out at equal specificity — hence footer.wrap. */
footer.wrap { margin-top: clamp(4rem, 12vw, 8rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
footer .rule { margin-bottom: 2.5rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-grid a { min-height: 1.5rem; }
.fine { margin: 2.5rem 0 0; color: var(--faint); font-size: 0.8125rem; max-width: 52ch; }
.fine + .fine { margin-top: 0.5rem; }

/* --- privacy / terms / support ---------------------------------------------------------- */
.doc { padding-top: clamp(2.5rem, 8vw, 5rem); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); max-width: none; }
.doc p, .doc ul { max-width: 52ch; color: var(--muted); }
.doc li + li { margin-top: 0.4rem; }
.doc h2 { font-family: var(--display); font-weight: 600; margin-top: 2.25rem; }
.doc strong { color: var(--text); font-weight: 500; }
