/* mysleepsensor.com public site. System fonts only: no third-party requests. */
:root {
  /* Dark by default; light when chosen (ADR 026, theme.js sets data-theme).
     Neutral grays and a darker orange, as the app (2026-10-25). */
  --bg: #161718; --surface: #1f2022; --ink: #e3e3e3; --muted: #ababab; --line: #33353a; --accent: #e0883a; --accent-soft: #3a2a1d; --accent-ink: #eb9a55;
  color-scheme: dark;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] {
  --bg: #eceef0; --surface: #f8f9fa; --ink: #1d1e20; --muted: #44474c; --line: #d3d6da; --accent: #8a3d08; --accent-soft: #f1e3d6; --accent-ink: #7a3707;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 760px; margin: 0 auto; }
header.site { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; min-height: 32px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle[hidden] { display: none; }
:root[data-theme="light"] .to-light, :root:not([data-theme="light"]) .to-dark { display: none; }
main { padding-block: 40px 56px; display: flex; flex-direction: column; gap: 40px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; text-wrap: balance; }
h3 { font-size: 17px; margin: 18px 0 6px; }
p, ul { margin: 0 0 12px; max-width: 65ch; }
ul { padding-left: 1.2em; }
li { margin-bottom: 6px; }
a { color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); }
.status { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.fact .icon { display: block; width: 36px; height: 36px; padding: 7px; margin-bottom: 10px; border-radius: 9px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact .icon circle[r="1.5"] { fill: var(--accent); }
.fact b { display: block; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 15px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero { margin-bottom: -16px; }
.hero img { aspect-ratio: 16 / 5; object-fit: cover; object-position: 25% 60%; }
@media (max-width: 560px) { .hero img { aspect-ratio: 2 / 1; } }
.how img { border: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; padding: 0; margin: 16px 0 12px; max-width: none; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; margin: 0; font-size: 15px; color: var(--muted); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 6px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.steps b { display: block; color: var(--ink); }
.note { font-size: 15px; color: var(--muted); }
.mail { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; user-select: all; }
footer.site { border-top: 1px solid var(--line); padding-block: 22px 40px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 18px; margin-top: 16px; }
.shots img { border: 1px solid var(--line); }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
figcaption b { color: var(--ink); }
.legal ul { padding-left: 0; }
.legal li { list-style: none; }
