:root {
  --ink: #15171c;
  --ink-2: #2a2d35;
  --chalk: #f4efe6;
  --paper: #fbf8f2;
  --line: #d9d0c1;
  --muted: #6b665d;
  --brass: #b7791f;
  --brass-dark: #8a5a12;
  --wa: #1f9d55;
  --error: #b42318;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 76px; /* room for the mobile contact bar */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: .8rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stitch line — the tailor's chalk motif */
.stitch { border: 0; border-top: 2px dashed var(--line); margin: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--chalk); display: grid; place-items: center; font-size: .8rem; font-family: var(--body); font-weight: 800; }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brass-dark); }
.btn.header-cta { display: none; }
@media (min-width: 820px) {
  .nav, .btn.header-cta { display: inline-flex; }
  body { padding-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  background: var(--ink); color: var(--chalk);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within {
  outline: 3px solid var(--brass); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Mobile contact bar ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink);
}
.contact-bar .btn { min-height: 48px; border-color: var(--chalk); }
.contact-bar .btn-ghost { color: var(--chalk); }
@media (min-width: 820px) {
  .contact-bar { display: none; }
}
.wa-float { display: none; }
@media (min-width: 820px) {
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 30;
    width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  }
  .wa-float .icon { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass-dark); }
.hero-lede { font-size: 1.15rem; max-width: 34ch; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(31,157,85,.18); }

.clock {
  aspect-ratio: 1; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 50%; position: relative;
  background: var(--ink); color: var(--chalk); display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 10px var(--ink), inset 0 0 0 12px var(--brass), inset 0 0 0 26px var(--ink);
}
.clock::before { content: ""; position: absolute; inset: 34px; border-radius: 50%; border: 2px dashed rgba(244,239,230,.35); }
.clock-num { font-family: var(--display); font-size: clamp(3.2rem, 15vw, 5.2rem); line-height: 1; font-weight: 500; }
.clock-num small { display: block; font-size: .26em; font-family: var(--body); font-weight: 700; letter-spacing: .3em; margin-top: .35em; }
.clock-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: .4rem; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-dark { background: var(--ink); color: var(--chalk); }
.section-dark .eyebrow { color: #e0b261; }
.section-dark .muted { color: #b9b3a8; }
.section-chalk { background: var(--chalk); }
.section-head { max-width: 640px; margin-bottom: 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px dashed rgba(244,239,230,.3); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 2.2rem; color: #e0b261; display: block; margin-bottom: .3rem; }
.steps p { color: #cfc9be; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.ways { display: grid; gap: 16px; }
@media (min-width: 760px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.way:hover { border-color: var(--ink); transform: translateY(-2px); }
.way-tag { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dark); }
.way h3 { margin: .5rem 0 .4rem; font-size: 1.45rem; }
.way p { color: var(--muted); flex: 1; }
.way-link { font-weight: 700; }

.prices { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.price-row h3 { margin: 0; font-size: 1.3rem; }
.price-row .muted { font-size: .9rem; margin: .2rem 0 0; }
.price { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; }
.price small { font-family: var(--body); font-size: .75rem; color: var(--muted); display: block; text-align: right; }

.faq details { border-bottom: 1px dashed var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--brass-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { border: 1px solid rgba(244,239,230,.25); border-radius: var(--radius); padding: 22px; text-decoration: none; display: block; }
.contact-card:hover { border-color: var(--chalk); }
.contact-card strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; margin-top: .3rem; }

/* ---------- Tailor cards ---------- */
.tailors { display: grid; gap: 16px; }
@media (min-width: 700px) { .tailors { grid-template-columns: repeat(2, 1fr); } }
.tailor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tailor h3 { margin-bottom: .2rem; }
.tailor .area { color: var(--brass-dark); font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.tailor dl { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.tailor dt { color: var(--muted); }
.tailor dd { margin: 0; }
.tailor-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { text-decoration: none; }

/* ---------- Order form ---------- */
.order-page { padding: 32px 0 64px; }
.order-page h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.form { max-width: 760px; }
.fieldset { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.fieldset > legend { font-family: var(--display); font-size: 1.5rem; font-weight: 500; padding: 0; margin-bottom: 4px; display: flex; gap: .6rem; align-items: baseline; }
.fieldset > legend .n { font-family: var(--body); font-size: .8rem; font-weight: 800; color: var(--brass-dark); letter-spacing: .1em; }
.fieldset > .hint { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices-3 { grid-template-columns: repeat(3, 1fr); } .choices-2 { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body { display: block; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, background .15s; }
.choice-body strong { display: block; font-size: 1.02rem; }
.choice-body span { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.choice input:checked + .choice-body { border-color: var(--ink); background: var(--chalk); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + .choice-body strong::before { content: "✓ "; color: var(--brass-dark); }

.grid-2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-m { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid-m { grid-template-columns: repeat(3, 1fr); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: 500 16px var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field .help { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.field .err { font-size: .85rem; color: var(--error); font-weight: 600; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field.invalid .err { display: block; }
.choices.invalid .choice-body { border-color: var(--error); }
.group-err { color: var(--error); font-weight: 600; font-size: .9rem; margin-top: 8px; display: none; }
.group-err.show { display: block; }

.unit-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.unit-toggle label { cursor: pointer; }
.unit-toggle input { position: absolute; opacity: 0; }
.unit-toggle span { display: block; padding: 8px 18px; font-weight: 700; font-size: .9rem; }
.unit-toggle input:checked + span { background: var(--ink); color: var(--chalk); }
.unit-toggle input:focus-visible + span { outline: 3px solid var(--brass); }

.measure-tip { background: var(--chalk); border-left: 4px solid var(--brass); padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: .92rem; margin-bottom: 18px; }
.measure-tip p:last-child { margin: 0; }

.submit-row { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.submit-row .btn { width: 100%; }
@media (min-width: 560px) { .submit-row .btn { width: auto; align-self: flex-start; } }
.fine { font-size: .82rem; color: var(--muted); }
.form-alert { display: none; background: #fdecea; color: var(--error); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.form-alert.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { display: none; max-width: 640px; }
.success.show { display: block; }
.order-id { font-family: var(--display); font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: .02em; background: var(--chalk); border: 2px dashed var(--brass); border-radius: var(--radius); padding: 14px 20px; display: inline-block; margin: 8px 0 20px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.success-actions .btn { flex: 1 1 220px; }

[hidden] { display: none !important; }
@media (min-width: 820px) { [data-mobile-only] { display: none !important; } }
