/* Hue & Number: shared tokens and components ("Atelier Warm" direction). */
:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f4eee5;
  --surface-3: #ece4d8;
  --ink: #2b2622;
  --ink-2: #5a514a;
  --muted: #8a8079;
  --line: #e6ddd1;
  --accent: #c4502f;
  --accent-hover: #a94226;
  --accent-soft: #f8e2d9;
  --accent-ink: #ffffff;
  --teal: #1f5c63;
  --teal-soft: #dcebea;
  --sage: #7c9a7e;
  --mustard: #e0a43b;
  --plum: #6e2f5c;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --bad: #b23a3a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(43, 38, 34, .06), 0 8px 24px rgba(43, 38, 34, .07);
  --shadow-lg: 0 2px 6px rgba(43, 38, 34, .08), 0 24px 60px rgba(43, 38, 34, .14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1816; --surface: #24201d; --surface-2: #2c2724; --surface-3: #363029;
    --ink: #f3ece4; --ink-2: #cfc4b9; --muted: #9d9289; --line: #3b342e;
    --accent: #e0714f; --accent-hover: #ec8565; --accent-soft: #43281f; --teal: #5fb0b6; --teal-soft: #1e3638;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1816; --surface: #24201d; --surface-2: #2c2724; --surface-3: #363029;
  --ink: #f3ece4; --ink-2: #cfc4b9; --muted: #9d9289; --line: #3b342e;
  --accent: #e0714f; --accent-hover: #ec8565; --accent-soft: #43281f; --teal: #5fb0b6; --teal-soft: #1e3638;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 24px 60px rgba(0,0,0,.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.25rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .amp { color: var(--accent); font-style: italic; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav .btn { margin-left: 6px; }
.site-header .menu-toggle { display: none; margin-left: auto; }
.nav a.btn { color: var(--c); padding: 0 16px; }
.nav a.btn:hover { background: var(--b); color: var(--c); }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .site-header .menu-toggle { display: inline-flex; }
}

/* Buttons */
.btn {
  --b: var(--surface); --c: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--b); color: var(--c); font: 600 14px/1 var(--font-ui); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s, border-color .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn.primary { --b: var(--accent); --c: var(--accent-ink); --bd: var(--accent); }
.btn.primary:hover { --b: var(--accent-hover); --bd: var(--accent-hover); }
.btn.teal { --b: var(--teal); --c: #fff; --bd: var(--teal); }
.btn.ghost { --b: transparent; --bd: transparent; }
.btn.ghost:hover { --b: var(--surface-2); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.icon { width: 38px; min-height: 38px; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* Forms */
label { font-weight: 500; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 14px var(--font-ui);
}
textarea { min-height: 96px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 600 13px var(--font-ui); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.teal { background: var(--teal-soft); color: var(--teal); }

/* Modal */
dialog.modal { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(640px, calc(100% - 24px)); max-height: calc(100% - 24px); }
dialog.modal::backdrop { background: rgba(27, 24, 22, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 8px 20px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 20px 20px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 80px; color: var(--ink-2); font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 24px; }
.made-by a { color: var(--ink-2); font-weight: 600; }
.made-by a:hover { color: var(--accent); }
