/* Nightcap's calm reading layout, adapted for Tandem. */
:root {
  color-scheme: dark;
  --paper: #101629;
  --ink: #eeeff7;
  --muted: #adb5cb;
  --line: #30394f;
  --accent: #9fbaff;
  --button: #b6caff;
  --button-ink: #172744;
  --menu: #252c3b;
  --track: #515a6b;
  --toggle: #487fe8;
  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --paper: #f7f7fb;
    --ink: #202b43;
    --muted: #5b657b;
    --line: #dadde7;
    --accent: #325caa;
    --button: #315caa;
    --button-ink: #fff;
    --menu: #f0f1f6;
    --track: #c4c9d3;
    --toggle: #2865d4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right)); }
.wrap { width: 100%; max-width: 680px; margin: auto; padding-block: 64px 40px; display: grid; gap: 64px; }
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 10vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 5vw, 30px); line-height: 1.3; }
p, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 22px; top: 12px; padding: 8px 14px; background: var(--paper); transform: translateY(-200%); z-index: 2; }
.skip:focus { transform: none; }
.hero { display: grid; justify-items: start; gap: 21px; }
.app-icon { width: 112px; height: 112px; }
.lede { font-size: clamp(26px, 5vw, 31px); line-height: 1.35; letter-spacing: -.025em; }
.intro { max-width: 40ch; font-size: 19px; color: var(--muted); }
.actions { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.button { display: inline-flex; gap: 18px; align-items: center; padding: 13px 21px; border-radius: 99px; background: var(--button); color: var(--button-ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.text-link { font-size: 15px; }
.fine, figcaption { color: var(--muted); font-size: 14px; }
section { display: grid; gap: 19px; min-width: 0; }
.section-heading { display: grid; gap: 10px; }
.eyebrow { font-size: 11px; line-height: 1.4; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.demo { display: grid; justify-items: start; gap: 14px; padding-top: 5px; }
.menu-bar { width: min(100%, 340px); display: flex; justify-content: flex-end; }
.case-icon { display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 9%, transparent); padding: 3px 9px; border-radius: 6px; }
.case-icon svg { width: 25px; height: 21px; }
.case-icon[data-on] { background: var(--accent); color: var(--paper); }
.menu-panel { width: min(100%, 340px); padding: 20px; border-radius: 13px; background: var(--menu); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); box-shadow: 0 12px 30px #0002, 0 2px 8px #0001; font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.menu-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-header strong { font-size: 14px; }
.status { margin-top: 3px; font-size: 11px; color: var(--muted); }
.switch { width: 39px; height: 23px; flex-shrink: 0; border: 0; padding: 2px; border-radius: 99px; background: var(--track); }
.switch span { width: 19px; height: 19px; background: #fff; box-shadow: 0 1px 3px #0003; display: block; border-radius: 50%; }
.switch[aria-checked="true"] { background: var(--toggle); }
.switch[aria-checked="true"] span { transform: translateX(16px); }
.switch:disabled { opacity: .5; }
.menu-panel hr { height: 1px; border: 0; background: color-mix(in srgb, var(--ink) 13%, transparent); margin: 18px 0; }
.headphone + .headphone { margin-top: 22px; }
.headphone-name { display: flex; align-items: center; gap: 10px; }
.headphone-name > svg { width: 28px; height: 28px; flex-shrink: 0; }
.volume { display: flex; gap: 9px; align-items: center; margin-top: 9px; }
.volume svg { width: 17px; height: 17px; color: var(--muted); }
.quiet { font-size: 10px; color: var(--muted); }
input[type="range"] { width: 100%; min-width: 0; margin: 0; height: 24px; accent-color: var(--toggle); cursor: pointer; }
.headphone[data-disconnected] { color: var(--muted); }
input:disabled { opacity: .4; cursor: default; }
.guidance { font-size: 11px; color: var(--muted); margin-top: 17px; }
.menu-footer { color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; }
.reset { background: none; border: 0; padding: 4px 0 4px 10px; color: var(--muted); font-size: 11px; }
.reset:hover { color: var(--ink); }
figcaption { max-width: 48ch; }
.scenario { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0; padding: 0 0 3px; background: none; color: var(--accent); font-size: 14px; }
.scenario span { margin-left: 6px; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 17px; counter-reset: step; }
.steps li { position: relative; padding-left: 44px; counter-increment: step; min-height: 29px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; font: 400 16px/1 var(--display); color: var(--accent); }
.note { border-left: 2px solid var(--accent); padding-left: 16px; color: var(--muted); }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { font-weight: 500; padding: 17px 27px 17px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 3px; font-size: 21px; font-weight: 400; color: var(--accent); top: 12px; }
details[open] summary::after { content: "−"; }
details > div { display: grid; gap: 12px; padding: 0 12px 20px 0; color: var(--muted); }
.availability { padding-top: 28px; border-top: 1px solid var(--line); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer a { color: var(--muted); }
@media (max-width: 480px) { .wrap { padding-top: 38px; gap: 50px; } .app-icon { width: 92px; height: 92px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } .switch, .switch span { transition: background 150ms ease, transform 150ms ease; } }
