/* kukuvent site: what every page shares (tokens, base, nav, sections, FAQ, closing, footer) */
/* the kukuvent app's own skin: warm paper, warm ink, charcoal actions,
   supply blue and extract red only where air is meant */
:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --paper: #f6f4ef;
  --card: #ffffff;
  --soft: #faf8f3;
  --chip: #ece8df;
  --hover: #f2efe8;
  --ink: #211d18;
  --ink-2: #4a443b;
  --muted: #857c6f;
  --line: #e8e3d9;
  --line-2: #d9d2c4;
  --accent: #23201a;
  --gold: #9a8a68;
  --ok: #2e7d4f;
  --amber: #b7791f;
  --supply: #1b66e8;
  --extract: #d93a25;
  --transfer: #3f7d54;
  --brand-s: #2f6fb0;
  --brand-e: #bd472a;
  /* one face for everything (Jokūbas 2026-10-26: the serif's j looked odd), the one planner5d uses */
  --display: 'Albert Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --body: 'Albert Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(40, 32, 20, .05), 0 1px 1px rgba(40, 32, 20, .04);
  --shadow-md: 0 6px 20px rgba(40, 32, 20, .10);
  --shadow-lg: 0 2px 4px rgba(40, 32, 20, .04), 0 24px 60px -24px rgba(40, 32, 20, .28);
  --shadow-btn: 0 2px 6px rgba(28, 24, 18, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1580px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 48px); }
/* the logo (brand/logo.svg): icon + wordmark, as an image */
.mark { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.mark img { display: block; height: 29px; width: auto; }
.vx { opacity: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; gap: 30px; height: 64px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--body); padding: 10px 16px; border-radius: 999px; white-space: nowrap; transition: background .15s, transform .15s; }
.pill.soft { background: var(--chip); color: var(--ink); }
.pill.soft:hover { background: #e3ded2; }
.pill.dark { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.pill.dark:hover { background: #0f0d0a; }
.pill svg { width: 12px; height: 12px; }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-right .soft { display: none; } }
/* a phone: the logo, the one button and the menu share 360 px */
@media (max-width: 520px) {
  .nav .wrap { gap: 12px; }
  .nav .mark img { height: 24px; }
  .nav-right { gap: 8px; }
  .nav-right .pill { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 380px) { .nav .mark img { height: 21px; } .nav-right .pill svg { display: none; } }
.nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- sections ---------- */
section.block { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 600; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 62ch; }

.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 2px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 600 18px var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }

.closing { text-align: center; display: grid; gap: 20px; justify-items: center; background: var(--accent); color: #fff; border-radius: 26px; padding: clamp(48px, 7vw, 88px) 24px; }
.closing h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; }
.closing p { color: #d9d2c4; font-size: 17px; }
.closing .pill { background: #fff; color: var(--ink); font-size: 15px; padding: 14px 22px; }
footer { padding-block: 36px 52px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; color: var(--muted); font-size: 14px; }
footer .mark img { height: 28px; width: 28px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
footer a:hover { color: var(--ink); }

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

/* ---------- the phone menu: a button in the bar, the links under it ---------- */
.nav-menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--chip); padding: 0; cursor: pointer; place-content: center; gap: 4px; }
.nav-menu-btn span { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.nav-menu { display: grid; padding: 4px clamp(16px, 3vw, 48px) 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: 13px 2px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-menu a:last-child { border-bottom: 0; }
@media (max-width: 820px) { .nav-menu-btn { display: grid; } }
@media (min-width: 821px) { .nav-menu { display: none !important; } }

/* ---------- the legal pages: a calm, readable document ---------- */
.doc { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 14px; }
.doc section { margin-top: 40px; scroll-margin-top: 84px; }
.doc section h2 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; font-weight: 600; margin-bottom: 12px; }
.doc h3 { font-family: var(--body); font-size: 17px; font-weight: 700; margin: 22px 0 4px; letter-spacing: 0; }
.doc h3 + p { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.doc strong { color: var(--ink); }
.doc a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
