/* Shared look for the simple site pages (privacy, contact). Same tokens as index.html. */
:root {
  --bg: #F1F4EE; --surface: #FFFFFF; --ink: #1B2620; --muted: #5B6A61; --line: #D9E0D3;
  --accent: #2F6B4F; --accent-ink: #FFFFFF; --accent-soft: #E1ECE3; --sun: #A86F0E; --sun-soft: #F6EAD0; --stop: #B3261E; --logo-bg: transparent;
  --display: "Young Serif", Georgia, serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0F1411; --surface: #161D19; --ink: #E3E9E4; --muted: #95A39A; --line: #28332D;
    --accent: #7CC29C; --accent-ink: #0F1411; --accent-soft: #1D2C24; --sun: #E2B35A; --sun-soft: #3A2E17; --stop: #E0605A; --logo-bg: #E3E9E4; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0F1411; --surface: #161D19; --ink: #E3E9E4; --muted: #95A39A; --line: #28332D;
  --accent: #7CC29C; --accent-ink: #0F1411; --accent-soft: #1D2C24; --sun: #E2B35A; --sun-soft: #3A2E17; --stop: #E0605A; --logo-bg: #E3E9E4; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--ui); }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
/* The shared header (server/header.js), the same as the app's in index.html. */
.site-top [hidden] { display: none !important; }
.site-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.site-top .topwrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; display: flex; align-items: center; gap: 10px 18px; min-height: 58px; flex-wrap: wrap; }
.site-top .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.site-top .brand img { width: 38px; height: 38px; border-radius: 50%; background: var(--logo-bg); flex: none; }
.site-top .brand .name { display: flex; align-items: baseline; gap: 8px; }
.site-top .brand b { font-family: var(--display); font-weight: 400; font-size: 20px; }
.site-top .brand .name span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.site-top .nav { display: flex; gap: 6px 14px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-top .nav .link { color: var(--muted); padding: 4px 2px; text-decoration: none; }
.site-top .nav .link:hover, .site-top .nav .link[aria-current="page"] { color: var(--ink); }
.site-top .btn.small { display: inline-flex; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; text-decoration: none; }
.site-top .menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); place-items: center; flex: none; padding: 0; }
.site-top .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 720px) {
  .site-top .topwrap { flex-wrap: nowrap; position: relative; gap: 10px; min-height: 56px; padding-inline: 16px; }
  .site-top .brand { min-width: 0; margin-right: auto; }
  .site-top .menu-btn { display: grid; }
  .site-top .nav { display: none; }
  .site-top.open .nav { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px -16px rgba(0,0,0,.3); }
  .site-top.open .nav .link { text-align: left; padding: 12px 2px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .site-top .brand .name span { display: none; }
  .site-top .brand b { font-size: 18px; white-space: nowrap; }
  .site-top .brand img { width: 34px; height: 34px; }
}
main { padding: 40px 0 56px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 8px; }
h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 36px 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.doc p, .doc li { font-family: var(--read); font-size: 17px; }
.doc ul { padding-left: 22px; }
.fill { background: var(--sun-soft); color: var(--ink); padding: 0 4px; border-radius: 3px; font-family: var(--ui); font-size: 0.92em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
label { display: block; font-weight: 500; margin: 0 0 6px; }
.field { margin-bottom: 18px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 11px 22px; cursor: pointer; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; display: none; }
.status.ok { display: block; background: var(--accent-soft); }
.status.err { display: block; background: var(--sun-soft); }
footer.foot { padding: 28px 0 48px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.foot a { color: var(--muted); }
