/* developer.onelifestack.com. Tokens follow the onelifestack.com "life-nocturne" preset (onelifestack.com/DESIGN_SYSTEM.md).
   Muted text is a little darker (light) and lighter (dark) than the preset so it passes WCAG AA; build.py checks every pair. */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/assets/fonts/manrope-400.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/assets/fonts/manrope-600.ttf) format("truetype"); }
@font-face { font-family: Manrope; font-weight: 700 800; font-display: swap; src: url(/assets/fonts/manrope-700.ttf) format("truetype"); }

:root {
  --bg: #f2f7f1; --bg-alt: #e4efe2; --surface: #ffffff;
  --border: rgba(26, 46, 30, .10); --ink: #1b2a1f; --muted: #4f6152; --link: #2c6b3e; --brand: #4f9d63;
  --btn-bg: #1f2a20; --btn-fg: #ffffff;
  --beta-fg: #2c6b3e; --beta-bg: #dcefdf; --soon-fg: #5b5f5c; --soon-bg: #e9ece9;
  --glow: rgba(79, 157, 99, .16);
  --shadow: 0 2px 8px rgba(20, 30, 22, .04), 0 18px 50px -28px rgba(20, 30, 22, .22);
  --radius: 22px; --radius-lg: 30px; --maxw: 1180px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080909; --bg-alt: #0d0f0e; --surface: #131514;
    --border: rgba(107, 234, 156, .12); --ink: #eef7f2; --muted: #8fb0a0; --link: #6bea9c; --brand: #6bea9c;
    --btn-bg: #6bea9c; --btn-fg: #082112;
    --beta-fg: #b8f0d0; --beta-bg: #14301f; --soon-fg: #a9b3ae; --soon-bg: #1d201f;
    --glow: rgba(61, 184, 112, .14);
    --shadow: 0 2px 8px rgba(0, 0, 0, .30), 0 18px 50px -28px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 Manrope, system-ui, sans-serif; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
code { font: 500 .85em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 99px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 40em; }

/* header */
header.site { padding: 16px 0; border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.brand span { font-weight: 400; color: var(--muted); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; }
nav.main a:hover, nav.main a[aria-current] { color: var(--link); text-decoration: underline; }

/* sections */
section { padding: 6rem 0; }
section.alt { background: var(--bg-alt); }
.hero { padding: 7rem 0 5rem; background: radial-gradient(60% 70% at 85% 10%, var(--glow), transparent 70%); }
.hero h1 { max-width: 13em; }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid var(--btn-bg); transition: transform .2s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--brand); }

/* cards */
.grid { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.grid:not(.apps) .card p { color: var(--muted); }
.app { display: flex; flex-direction: column; }
.app > p { flex: 1; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 1rem; }
.app-head img { border-radius: 16px; flex: none; }
.app-head h3 { margin: 0; font-size: 1.5rem; }
.app .kind { margin: 0; color: var(--muted); font-size: .95rem; }
.app .links { margin-top: .5em; gap: 8px; }
.app .btn { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.pill { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.pill.beta, .pill.live { color: var(--beta-fg); background: var(--beta-bg); }
.pill.soon { color: var(--soon-fg); background: var(--soon-bg); }

/* articles */
.article { padding: 4.5rem 0 6rem; }
.article .wrap { max-width: 780px; }
.article h2 { font-size: 1.6rem; margin-top: 2em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .35em; }
.verify { margin: 1.5rem 0; }
.verify h2 { margin-top: 0; }
.verify dl { margin: 0; }
.verify dt { font-weight: 700; font-size: .92rem; color: var(--muted); margin-top: .8em; }
.verify dd { margin: .1em 0 0; }

/* footer */
footer.site { border-top: 1px solid var(--border); padding: 3.5rem 0 2.5rem; font-size: .95rem; }
footer.site .wrap { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; }
footer.site h2 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: .4em; }
footer.site p { color: var(--muted); margin-top: .8em; }
footer.site small { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 720px) {
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site .wrap > div:first-child { grid-column: 1 / -1; }
  section { padding: 4.5rem 0; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
}
