/* WeEven site — warm-paper editorial, brand amber. One deliberate light theme. */
:root {
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #6d675f;
  --faint: #8a93a3;
  --border: #e7e2d9;
  --accent: #b45309;
  --accent-deep: #92400e;
  --accent-tint: #fbeedd;
  --radius: 18px;
  --text: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --display: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
/* Paper background on html too, so mobile overscroll / URL-bar collapse reveals
   the same colour — not the browser's default white "blank" strip at the end. */
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent);
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; padding-left: 8px;
}
.mark i { display: block; height: 4px; border-radius: 2px; background: var(--paper); }
.mark i:nth-child(1) { width: 11px; }
.mark i:nth-child(2) { width: 15px; }
.lockup b { font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; margin-left: 22px; }
nav.site a:hover, nav.site a:focus-visible { color: var(--accent); }

/* ── Type ── */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 700; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.1rem; font-weight: 650; margin: 1.8em 0 0.4em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-block; text-decoration: none; border: 0; cursor: pointer;
  border-radius: 13px; padding: 14px 26px; font-size: 0.95rem; font-weight: 700;
  font-family: var(--body); background: var(--accent); color: #fff;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); color: #fff; }
.btn.ghost { background: var(--accent-tint); color: var(--accent-deep); }
.btn.ghost:hover { background: #f6e2c8; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; }

/* ── Legal / prose pages ── */
/* top/bottom only — the shorthand would zero .wrap-narrow's side padding */
main.prose { padding-top: 56px; padding-bottom: 96px; }
main.prose .updated { color: var(--faint); font-size: 0.85rem; margin-bottom: 2.5em; }
main.prose ul { padding-left: 1.3em; }
main.prose li { margin-bottom: 0.45em; }
main.prose h2 { border-top: 1px solid var(--border); padding-top: 1.4em; }

/* ── Footer ── */
footer.site { border-top: 1px solid var(--border); padding: 40px 0 56px; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer.site nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem; margin-right: 20px; }
footer.site nav a:hover { color: var(--accent); }
footer.site .tag { color: var(--faint); font-size: 0.85rem; }
footer.site .tag b { color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  nav.site a { margin-left: 14px; }
  header.site .wrap { padding: 0 16px; }
}
@media (max-width: 420px) {
  nav.site a { margin-left: 10px; font-size: 0.78rem; }
  .lockup b { font-size: 1.02rem; }
}
@media (max-width: 340px) {
  .nav-optional { display: none; }
}
