/* Lumling website, shared by every page. Lantern palette (docs/lumling/BRAND.md):
   one theme, the night sky; one accent, apricot. Buttons are pills, panels 28px.
   Everything is self-hosted: the site makes no third-party requests. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #1F1B3A;
  --deep: #161330;
  --raise: #2a2548;
  --apricot: #FFB38A;
  --ember: #A4472B;
  --cream: #FFF7F2;
  --muted: rgba(255, 247, 242, .72);
  --faint: rgba(255, 247, 242, .12);
  --lilac: #8E86C9;
  --sage: #2E7555;
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --inout: cubic-bezier(0.77, 0, 0.175, 1);
  --panel: 28px;
  --s: 1;
  color-scheme: dark;
  accent-color: var(--apricot);
  scrollbar-color: #4a4370 var(--deep);
}
@media (max-width: 700px) { :root { --s: .78; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 400 1.0625rem/1.65 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 179, 138, .35); color: var(--cream); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
h3 { font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.2; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }
.sub { color: var(--muted); max-width: 52ch; margin-top: 16px; }

/* icons: Phosphor regular (MIT), inlined as an SVG sprite on each page */
.i { width: 1em; height: 1em; flex: none; fill: currentColor; vertical-align: -.125em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0; background: var(--apricot); color: var(--night);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
  transition: transform .2s var(--out), background-color .2s;
}
.btn .i { font-size: 1.15em; }
.btn:active { transform: scale(.97); }
.btn.quiet { background: transparent; color: var(--cream); border: 1px solid rgba(255,247,242,.28); box-shadow: none; }
.btn[aria-disabled="true"] { cursor: default; background: rgba(255, 179, 138, .82); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffc3a2; }
  .btn[aria-disabled="true"]:hover { background: rgba(255, 179, 138, .82); }
  .btn.quiet:hover { background: rgba(255,247,242,.08); }
}

/* nav */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav-in {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1000px, 100% - 28px); height: 62px; margin-inline: auto; padding: 0 10px 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color .4s var(--out), border-color .4s var(--out);
}
.stuck .nav-in {
  background: rgba(31,27,58,.72); border-color: rgba(255,247,242,.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.links { display: flex; gap: 6px; }
.links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .96rem; transition: color .2s, background-color .2s; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--cream); background: rgba(255,247,242,.08); } }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: .96rem; }
@media (max-width: 820px) { .links { display: none; } }
@media (max-width: 420px) { .nav .btn { padding: 0 16px; font-size: .9rem; } .brand span { display: none; } }

/* footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; background: var(--deep); position: relative; z-index: 1; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
footer .brand { color: var(--cream); font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--cream); text-decoration: underline; } }

/* legal pages (privacy, terms): a reading page, not a pitch */
.doc { padding: 128px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.035em; }
.doc .meta { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 1.75rem; margin: 52px 0 12px; letter-spacing: -.02em; }
.doc h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.doc p, .doc li { color: rgba(255, 247, 242, .86); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--apricot); }
.doc code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--raise); }
.doc .summary { margin-top: 28px; padding: 6px 26px 18px; border-radius: var(--panel); background: var(--raise); border: 1px solid var(--faint); }

/* legal-page navigation: a segmented switch between the pages, visible on phones too */
.doc-links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,247,242,.06); border: 1px solid rgba(255,247,242,.1); }
.doc-links a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; line-height: 1.4; transition: color .2s, background-color .2s; }
.doc-links a[aria-current="page"] { color: var(--night); background: var(--apricot); }
@media (hover: hover) and (pointer: fine) { .doc-links a:not([aria-current]):hover { color: var(--cream); background: rgba(255,247,242,.1); } }
@media (max-width: 560px) { .doc-links a { padding: 7px 12px; font-size: .88rem; } .doc-links ~ .btn { display: none; } }
.doc .back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 7px 16px 7px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  background: rgba(255,247,242,.05); border: 1px solid rgba(255,247,242,.12); transition: color .2s, border-color .2s, background-color .2s;
}
.doc .back::before { content: "←"; color: var(--apricot); font-size: 1rem; transition: transform .2s var(--out); }
@media (hover: hover) and (pointer: fine) { .doc .back:hover { color: var(--cream); border-color: rgba(255,179,138,.4); } .doc .back:hover::before { transform: translateX(-3px); } }
.doc :target { scroll-margin-top: 110px; }
.toc { margin-top: 28px; padding: 18px 24px; border-radius: 22px; border: 1px solid var(--faint); }
.toc p { color: var(--cream); font-weight: 600; }
.toc ul { list-style: none; padding: 0; margin: 10px 0 0; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--apricot); } }
@media (max-width: 560px) { .toc ul { columns: 1; } }
.doc .fine { margin-top: 18px; font-size: .88rem; color: var(--muted); }
.doc .next { display: flex; flex-direction: column; gap: 2px; margin-top: 56px; padding: 22px 26px; border-radius: 22px; background: var(--raise); border: 1px solid var(--faint); color: var(--cream); font-size: 1.25rem; font-weight: 600; text-decoration: none; transition: border-color .2s; }
.doc .next span { color: var(--muted); font-size: .88rem; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .doc .next:hover { border-color: rgba(255,179,138,.45); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
