:root {
  --paper: #f6f4ef;
  --card: #ffffff;
  --ink: #14213d;
  --ink-2: #44506a;
  --line: #d9d5cb;
  --grid: rgba(20, 33, 61, .06);
  --accent: #ff6a2b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 106, 43, .12);
  --ok: #1f8a5b;
  --radius: 14px;
  --sans: "Inter", system-ui, sans-serif;
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1626; --card: #162036; --ink: #e9ecf3; --ink-2: #a5aec2;
    --line: #2a3550; --grid: rgba(233, 236, 243, .05); --accent-soft: rgba(255, 106, 43, .16);
    --ok: #4cc38a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1626; --card: #162036; --ink: #e9ecf3; --ink-2: #a5aec2;
  --line: #2a3550; --grid: rgba(233, 236, 243, .05); --accent-soft: rgba(255, 106, 43, .16);
  --ok: #4cc38a; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
p, li { text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.label { font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
section { padding: 72px 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 640px; }
.section-head p { color: var(--ink-2); }

/* header */
header.top { 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(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { font: 700 1.5rem/1 var(--head); text-decoration: none; letter-spacing: -.02em; }
.mark span { color: var(--accent); }
nav.links { display: none; gap: 28px; font-size: .95rem; }
nav.links a { text-decoration: none; color: var(--ink-2); }
nav.links a:hover { color: var(--ink); }
@media (min-width: 860px) { nav.links { display: flex; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.small { padding: 10px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* hero */
.hero { padding: 56px 0 72px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 88px 0 96px; } }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); margin: 20px 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 500 .85rem/1.4 var(--mono); color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); flex: none; }
.drawing { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); }
.drawing .part { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 2; }
.drawing .hole { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.drawing .cl { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 8 3 2 3; opacity: .7; }
.drawing .dim { stroke: var(--ink-2); stroke-width: 1; }
.drawing text { font: 500 13px var(--mono); fill: var(--ink-2); }
.drawing .tb { fill: none; stroke: var(--line); }
.drawing .tb-t { font-size: 10px; letter-spacing: .06em; }

/* doors */
.doors { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.door { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.door:hover { border-color: var(--accent); transform: translateY(-2px); }
.door:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.door .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.door p { color: var(--ink-2); font-size: .95rem; }
.door .go { font: 500 .8rem var(--mono); color: var(--accent); margin-top: 4px; }

/* services */
.svc { display: grid; gap: 14px; }
@media (min-width: 760px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.svc article p { color: var(--ink-2); font-size: .95rem; }
.svc .price { font: 500 .9rem var(--mono); color: var(--ink); margin-top: 6px; }
.svc .price b { color: var(--accent); font-weight: 500; }
.svc article.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.note { color: var(--ink-2); font-size: .9rem; margin-top: 18px; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding: 22px 20px 20px; border-top: 2px solid var(--ink); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: 500 .8rem var(--mono); color: var(--accent); margin-bottom: 10px; }
.steps li p { color: var(--ink-2); font-size: .93rem; margin-top: 6px; }

/* makes */
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.makes { display: flex; flex-wrap: wrap; gap: 10px; }
.makes span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .95rem; background: var(--paper); }
.mats { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 760px) { .mats { grid-template-columns: repeat(4, 1fr); } }
.mats div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.mats b { font: 500 .85rem var(--mono); color: var(--accent); }
.mats p { color: var(--ink-2); font-size: .93rem; margin-top: 6px; }

/* form */
.quote .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .quote .wrap { grid-template-columns: .8fr 1.2fr; align-items: start; } .quote .section-head { position: sticky; top: 96px; } }
form.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 26px; }
@media (min-width: 720px) { form.q { padding: 32px; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend, .flabel { font-weight: 600; font-size: .98rem; padding: 0; margin-bottom: 2px; }
.hint { color: var(--ink-2); font-size: .88rem; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .93rem; transition: all .12s; background: var(--paper); }
.chips input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--paper); cursor: pointer; display: grid; gap: 6px; justify-items: center; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop svg { color: var(--accent); }
.drop strong { font-size: 1rem; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
details.more summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
details.more[open] summary { margin-bottom: 14px; }
.hidden { display: none !important; }
.err { color: #d4380d; font-size: .9rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.submit-row .hint { flex: 1 1 220px; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 36px 12px; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; }
.done code { font: 500 1rem var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.done p { color: var(--ink-2); max-width: 30em; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.2rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-2); font-size: .92rem; }
footer .wrap { display: grid; gap: 12px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.hdr-cta { display: flex; gap: 8px; align-items: center; }
.btn.ghost[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

/* Occasion themes (html data-occasion, set by shop.html): own palette, shared layout. Keep after the dark block. */
:root[data-occasion="christmas"] {
  --paper: #0d2a1c; --card: #143726; --ink: #fbf5e6; --ink-2: #c4d6c2; --line: #275239;
  --grid: rgba(251, 245, 230, .05); --accent: #f4c24f; --accent-ink: #2b1a05; --accent-soft: rgba(244, 194, 79, .16);
  --pohutukawa: #e2323f; --ok: #6fd39a; color-scheme: dark;
}
:root[data-occasion="christmas"] body { background: radial-gradient(ellipse 70% 50% at 85% -5%, rgba(226, 50, 63, .2), transparent 70%) no-repeat, var(--paper); }
:root[data-occasion="christmas"] .btn:not(.ghost) { background: var(--pohutukawa); color: #fff; }
:root[data-occasion="christmas"] .btn:not(.ghost):hover { box-shadow: 0 6px 18px rgba(226, 50, 63, .45); }
:root[data-occasion="christmas"] header.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; pointer-events: none;
  background:
    radial-gradient(circle, var(--pohutukawa) 0 2.5px, transparent 3.5px) 0 0 / 54px 8px repeat-x,
    radial-gradient(circle, var(--accent) 0 2.5px, transparent 3.5px) 18px 0 / 54px 8px repeat-x,
    radial-gradient(circle, var(--ink) 0 2.5px, transparent 3.5px) 36px 0 / 54px 8px repeat-x;
  filter: drop-shadow(0 0 3px rgba(244, 194, 79, .55));
}

/* Lunar New Year: lacquer red, gold buttons and highlights */
:root[data-occasion="lunar"] {
  --paper: #4a0a0f; --card: #5e1016; --ink: #fff4e0; --ink-2: #f0c9a8; --line: #80242a;
  --grid: rgba(255, 244, 224, .05); --accent: #f5c451; --accent-ink: #4a0a0f; --accent-soft: rgba(245, 196, 81, .16);
  --ok: #ffd27a; color-scheme: dark;
}
:root[data-occasion="lunar"] body { background: radial-gradient(ellipse 70% 50% at 85% -5%, rgba(245, 196, 81, .18), transparent 70%) no-repeat, var(--paper); }
:root[data-occasion="lunar"] header.top { border-bottom: 3px double var(--accent); }

/* Valentine's: deep wine, rose buttons, pink highlights */
:root[data-occasion="valentines"] {
  --paper: #2a0c18; --card: #3a1424; --ink: #fff0f3; --ink-2: #e5b8c4; --line: #5c2239;
  --grid: rgba(255, 240, 243, .05); --accent: #ff8fab; --accent-ink: #2a0c18; --accent-soft: rgba(255, 143, 171, .16);
  --rose: #e8436a; --ok: #ffb3c6; color-scheme: dark;
}
:root[data-occasion="valentines"] body { background: radial-gradient(ellipse 70% 50% at 85% -5%, rgba(232, 67, 106, .25), transparent 70%) no-repeat, var(--paper); }
:root[data-occasion="valentines"] .btn:not(.ghost) { background: var(--rose); color: #fff; }
:root[data-occasion="valentines"] .btn:not(.ghost):hover { box-shadow: 0 6px 18px rgba(232, 67, 106, .45); }
:root[data-occasion="valentines"] header.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 10px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M15 9 10.6 5.2A2.6 2.6 0 1 1 15 2.2a2.6 2.6 0 1 1 4.4 3Z' fill='%23ff8fab'/%3E%3C/svg%3E") 0 0 / 30px 10px repeat-x;
}

/* Easter: autumn-light cream, plum text, violet buttons, pastel sprinkles */
:root[data-occasion="easter"] {
  --paper: #fbf5e9; --card: #ffffff; --ink: #3b2a4a; --ink-2: #6e5d7b; --line: #eadfcf;
  --grid: rgba(59, 42, 74, .06); --accent: #7c4dbd; --accent-ink: #ffffff; --accent-soft: rgba(124, 77, 189, .12);
  --ok: #2f9a6a; color-scheme: light;
}
:root[data-occasion="easter"] body { background: radial-gradient(ellipse 70% 50% at 85% -5%, rgba(246, 184, 204, .45), transparent 70%) no-repeat, var(--paper); }
:root[data-occasion="easter"] header.top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; pointer-events: none;
  background:
    radial-gradient(circle, #f29bb8 0 2.5px, transparent 3.5px) 0 0 / 56px 8px repeat-x,
    radial-gradient(circle, #6fcf9f 0 2.5px, transparent 3.5px) 14px 0 / 56px 8px repeat-x,
    radial-gradient(circle, #f2cf4a 0 2.5px, transparent 3.5px) 28px 0 / 56px 8px repeat-x,
    radial-gradient(circle, #a98ae0 0 2.5px, transparent 3.5px) 42px 0 / 56px 8px repeat-x;
}
:root[data-occasion="lunar"] .err, :root[data-occasion="valentines"] .err,
:root[data-occasion="lunar"] .addon-fields .over, :root[data-occasion="valentines"] .addon-fields .over { color: #ffb4a8; }
