/* Shared by every page: color tokens, header, footer, skip link and mobile menu.
   Edit partials/header.html and partials/footer.html for the markup, then run node tools/build.mjs. */
:root {
  --bg: #f6efe6;
  --surface: #efe6d8;
  --card: #fffaf3;
  --ink: #142036;
  --muted: #4b5468;
  --line: #e2d5c3;
  --link: #0b5a63;
  --focus: #0b5a63;
  --badge-bg: #142036;
  --badge-ink: #f6efe6;
  --header-bg: rgba(246, 239, 230, 0.92);
  --coral: #ff7a63; --yellow: #ffd04a; --mint: #8fd9b6; --teal: #2aa6a6; --tan: #c89b5a; --navy: #142036;
  --grad-a: #e5502c; --grad-b: #ee6f16;
  --shadow: 0 10px 28px rgba(20, 32, 54, 0.10);
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Varela Round", Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #142036;
    --surface: #1a2a46;
    --card: #1c2c49;
    --ink: #f6efe6;
    --muted: #c4cad8;
    --line: #2e4166;
    --link: #8fdcd5;
    --focus: #f2c46d;
    --badge-bg: #f6efe6;
    --badge-ink: #142036;
    --header-bg: rgba(20, 32, 54, 0.94);
    --grad-a: #ff8a73; --grad-b: #ffb067;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; z-index: 20; }
.skip:focus { top: 0.75rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { backdrop-filter: blur(10px); } }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 10px; }
.nav a:hover { background: var(--surface); }
.nav a.cta { border: 2px solid var(--ink); border-radius: 999px; margin-left: 0.5rem; padding: 0 1.2rem; }
.nav a.cta:hover { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: 700 1rem var(--font); cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 44rem) {
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 0.5rem 1.5rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 0 0.5rem; }
  .js .nav a.cta { margin: 0.5rem 0 0; justify-content: center; }
}

/* footer */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 1rem; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin: 1rem 0 0; max-width: 20rem; }
.foot-h { margin: 0 0 0.35rem; font-weight: 800; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer li a:hover { color: var(--ink); }
.copy { margin: 0; padding-bottom: 1.5rem; font-size: 0.9rem; }
@media (max-width: 44rem) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
