/* =========================================================
   THE STITCH — Custom Monogramming & Embroidery
   Refined vintage French countryside meets English heritage,
   with modern luxury editorial spacing.
   ========================================================= */

:root {
  /* Brand palette (from design guide) */
  --ivory: #F0EAE0;        /* Antique Ivory */
  --french-blue: #B8C6BE;  /* French Blue */
  --olive: #7B8060;        /* Muted Olive */
  --olive-text: #5E6347;   /* Olive darkened for small text (AA contrast) */
  --sage: #53614F;         /* Deep Sage */
  --umber: #504A3D;        /* Warm Umber */

  /* Supporting tints */
  --linen: #F7F3EC;
  --cream: #E8E0D2;
  --blue-soft: #D5DED9;
  --line: rgba(80, 74, 61, 0.16);
  --line-strong: rgba(80, 74, 61, 0.32);
  --text: #3F3A30;
  --text-muted: #6E675A;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 110px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--french-blue); color: var(--umber); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--sage); color: var(--ivory); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--umber);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h1 { font-size: clamp(3.2rem, 8vw, 6.75rem); font-weight: 300; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 300; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); }
h4 { font-size: 1.35rem; }

p { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-text);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.centered::after {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .7;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  line-height: 1.45;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  color: var(--olive);
  letter-spacing: 0;
  text-transform: none;
}

.muted { color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--sage);
  background: var(--sage);
  color: var(--ivory);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--umber); border-color: var(--umber); }
.btn--ghost { background: transparent; color: var(--sage); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--sage); color: var(--ivory); border-color: var(--sage); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--sage); }
.btn--light:hover, .btn--light:focus-visible { background: transparent; color: var(--ivory); border-color: var(--ivory); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: border-color .3s, color .3s;
}
.text-link:hover { color: var(--umber); border-color: var(--umber); }

:focus-visible { outline: 2px dashed var(--sage); outline-offset: 4px; }

/* ---------- Announcement + Header ---------- */

.announce {
  background: var(--sage);
  color: var(--ivory);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 10px var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 234, 224, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--umber);
  line-height: 1;
}
.brand__logo {
  display: block;
  height: 76px;
  width: auto;
}
.brand__badge {
  display: block;
  width: 150px;
  height: 150px;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
}
.brand__tag {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--olive-text);
  margin-top: 7px;
  display: flex; align-items: center; gap: 8px;
}
.brand__tag::before, .brand__tag::after {
  content: ""; width: 14px; height: 1px; background: currentColor; opacity: .6;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0; padding: 0;
}
.nav a {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--umber);
  padding: 8px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--olive) 0 4px, transparent 4px 7px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
  color: var(--umber);
}
.nav-toggle span {
  display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* backdrop-filter would trap the fixed full-screen menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
    z-index: -1;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .nav a { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0.04em; text-transform: none; }
  .nav-open { overflow: hidden; }
}

/* ---------- Decorative ---------- */

.stitch-rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px);
}

.stripe-band {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--french-blue) 0 2px, transparent 2px 9px);
  opacity: .9;
}

.ticking {
  background-color: var(--linen);
  background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(184, 198, 190, .55) 18px 20px, transparent 20px 24px, rgba(184, 198, 190, .55) 24px 25px, transparent 25px 44px);
}

.gingham {
  background-color: var(--linen);
  background-image:
    linear-gradient(90deg, rgba(184, 198, 190, .45) 50%, transparent 50%),
    linear-gradient(rgba(184, 198, 190, .45) 50%, transparent 50%);
  background-size: 22px 22px;
}

.sprig { color: var(--olive); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }
.section--linen { background: var(--linen); }
.section--sage { background: var(--sage); color: var(--ivory); }
.section--sage h2, .section--sage h3 { color: var(--ivory); }
.section--sage .eyebrow { color: var(--blue-soft); }
.section--blue { background: var(--blue-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 140px);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.hero h1 {
  letter-spacing: 0.12em;
  margin-bottom: 0.18em;
  line-height: 1;
}
.hero h1.hero__logo { margin: 0 0 32px; line-height: 0; }
.hero__logo img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  color: var(--sage);
  margin-bottom: 28px;
  line-height: 1.25;
}
.hero__copy { max-width: 470px; color: var(--text-muted); margin-bottom: 42px; }

.hero__art { position: relative; }
.hero__photo {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin-left: auto;
  border: 10px solid var(--linen);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(80, 60, 40, .14);
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 380px; margin: 0 auto; }
}

/* ---------- Intro ---------- */

.intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.intro p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.4;
  color: var(--umber);
  font-weight: 300;
}
.intro .sprig { width: 64px; margin: 0 auto 28px; }

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.feature {
  display: flex;
  flex-direction: column;
}
.feature__media {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.feature__media svg { width: 62%; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media svg { transform: scale(1.04); }
.feature__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--olive-text);
  margin-bottom: 10px;
}
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; }
.feature .fine { font-size: 0.82rem; font-style: italic; color: var(--olive-text); margin-top: -0.4em; }

@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .feature__media { aspect-ratio: 16 / 11; }
}

/* ---------- Closing feature ---------- */

.closing {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing h2 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 0.35em; }
.closing p { max-width: 560px; margin: 0 auto 44px; font-size: 1.05rem; opacity: .9; }
.closing .script { font-size: clamp(2rem, 4vw, 3rem); color: var(--french-blue); display: block; margin-bottom: 8px; }
.closing__sprig {
  position: absolute;
  width: 220px;
  color: rgba(240, 234, 224, .12);
  pointer-events: none;
}
.closing__sprig--l { left: -30px; bottom: -20px; transform: rotate(18deg); }
.closing__sprig--r { right: -30px; top: -20px; transform: rotate(200deg); }

/* ---------- Page hero (interior) ---------- */

.page-hero {
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); margin-bottom: 0.25em; }
.page-hero .lede { max-width: 640px; margin: 0 auto; }
.page-hero .sprig { width: 54px; margin: 0 auto 22px; }
.page-hero__monogram {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 26px;
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split--top { align-items: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--linen);
}
.frame__inner {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.frame__caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 14px;
}

/* ---------- About ---------- */

.about-copy p { color: var(--text); }
.about-copy p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.6rem;
  line-height: 0.8;
  padding: 8px 12px 0 0;
  color: var(--sage);
}
.signoff {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.signoff .script { font-size: 2.6rem; line-height: 1.2; display: block; }
.signoff small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive-text);
  margin-top: 10px;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  color: var(--umber);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
}
.pullquote::before, .pullquote::after { color: var(--olive); }
.pullquote::before { content: "\201C"; }
.pullquote::after { content: "\201D"; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.values h3 { font-size: 1.35rem; margin-bottom: 8px; }
.values p { font-size: 0.95rem; color: var(--text-muted); max-width: 300px; margin: 0 auto; }
.values svg { width: 46px; margin: 0 auto 20px; color: var(--olive); }
@media (max-width: 780px) { .values { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.25fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--olive-text);
  padding-top: 6px;
}
.service h3 { margin: 0; }
.service p { color: var(--text-muted); margin: 0; }
@media (max-width: 780px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
  position: relative;
}
.step { position: relative; padding-top: 36px; }
.step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(240,234,224,.5) 0 6px, transparent 6px 11px);
}
.step__num {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--french-blue);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.75rem; margin-bottom: 12px; }
.step p { opacity: .85; font-size: 0.98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}
.category {
  position: relative;
  text-decoration: none;
  color: var(--umber);
  display: block;
}
.category__media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 18px;
}
.category__media svg { width: 46%; color: var(--sage); transition: transform 1s var(--ease); }
.category:hover .category__media svg { transform: translateY(-6px) scale(1.03); }
.category h3 { font-size: 1.6rem; margin: 0 0 4px; }
.category span {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive-text);
}
.bg-ivory { background: var(--linen); }
.bg-blue { background: var(--blue-soft); }
.bg-cream { background: var(--cream); }
@media (max-width: 860px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .categories { grid-template-columns: 1fr; } }

.notice {
  border: 1px solid var(--line-strong);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  background: var(--linen);
  position: relative;
}
.notice::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--line);
  pointer-events: none;
}

/* ---------- Monogram Guide ---------- */

.studio {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }

.preview {
  position: sticky;
  top: 110px;
}
.preview__canvas {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.preview__canvas svg { width: 100%; height: 100%; }
.preview__disclaimer {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}
@media (max-width: 900px) { .preview { position: static; } }

.controls fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 36px;
}
.controls legend {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive-text);
  margin-bottom: 16px;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237B8060' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="date"] { display: block; min-height: 3rem; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 1px 0 0 var(--sage); }

.initials-input {
  font-family: var(--serif) !important;
  font-size: 2.2rem !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option {
  position: relative;
  cursor: pointer;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 92px;
  border: 1px solid var(--line);
  background: var(--linen);
  padding: 12px;
  text-align: center;
  transition: border-color .3s, background .3s;
}
.option__sample { font-size: 1.9rem; line-height: 1.1; color: var(--sage); }
.option__label {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.option:hover .option__box { border-color: var(--line-strong); }
.option input:checked + .option__box { border-color: var(--sage); background: #fff9f0; box-shadow: inset 0 0 0 1px var(--sage); }
.option input:focus-visible + .option__box { outline: 2px dashed var(--sage); outline-offset: 3px; }

.option-grid--fonts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option--font .option__box { min-height: 0; padding: 12px 8px 10px; gap: 8px; }
.option__art {
  width: 100%;
  height: 54px;
  object-fit: contain;
  filter: sepia(.35) brightness(.72); /* neutral umber so the thumbnails don't suggest a thread color */
}
.option--font .option__label { font-size: 0.56rem; letter-spacing: 0.14em; line-height: 1.35; }
@media (max-width: 420px) { .option-grid--fonts { grid-template-columns: repeat(2, 1fr); } }
.controls__hint { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0 0; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { position: relative; cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot {
  display: block;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 0 0 3px var(--ivory);
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.14) 0 2px, transparent 2px 5px);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.swatch__name {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 64px;
  line-height: 1.3;
}
.swatch.is-unavailable { cursor: not-allowed; }
.swatch input:disabled + .swatch__dot { opacity: .28; transform: none; }
.swatch input:disabled ~ .swatch__name { opacity: .5; }
.swatch input:checked + .swatch__dot { box-shadow: inset 0 0 0 3px var(--ivory), 0 0 0 1px var(--sage); transform: scale(1.06); }
.swatch input:focus-visible + .swatch__dot { outline: 2px dashed var(--sage); outline-offset: 4px; }

.style-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.style-card {
  background: var(--linen);
  border: 1px solid var(--line);
  padding: 36px 20px 24px;
  text-align: center;
}
.style-card__sample { font-size: 3rem; color: var(--sage); line-height: 1.1; margin-bottom: 16px; min-height: 66px; display: flex; align-items: center; justify-content: center; }
.style-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.style-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
@media (max-width: 980px) { .style-cards { grid-template-columns: repeat(2, 1fr); } }
.font-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.font-card {
  margin: 0;
  background: var(--linen);
  border: 1px solid var(--line);
  padding: 28px 22px 20px;
  text-align: center;
}
.font-card img { display: block; width: 100%; height: 150px; object-fit: contain; margin-bottom: 16px; }
.font-card figcaption {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 480px) { .style-cards { grid-template-columns: 1fr; } }

.placements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.placement { text-align: center; }
.placement svg { width: 100%; max-width: 150px; margin: 0 auto 14px; color: var(--umber); }
.placement h3 { font-size: 1.2rem; margin-bottom: 2px; }
.placement p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .placements { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--umber);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  background:
    linear-gradient(var(--olive), var(--olive)) center / 14px 1px no-repeat,
    linear-gradient(var(--olive), var(--olive)) center / 1px 14px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding: 0 48px 28px 0; margin: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.location-card {
  background: var(--sage);
  color: var(--ivory);
  padding: clamp(36px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.location-card h3 { color: var(--ivory); margin-bottom: 4px; }
.location-card__email { margin: -6px 0 18px; }
.location-card__email a { color: var(--ivory); text-decoration-color: rgba(240, 234, 224, .45); text-underline-offset: 3px; }
.location-card address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.location-card .eyebrow { color: var(--blue-soft); }
.location-card .sprig-bg {
  position: absolute; right: -40px; bottom: -40px; width: 200px;
  color: rgba(240,234,224,.1);
}
.location-card p { opacity: .85; font-size: 0.95rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 32px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label,
.field .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-text);
}
.field .optional { color: var(--text-muted); font-weight: 300; letter-spacing: 0.1em; text-transform: none; font-style: italic; }

.radio-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  font-size: 0.86rem;
  transition: all .3s;
}
.pill input:checked + span { background: var(--sage); color: var(--ivory); border-color: var(--sage); }
.pill input:focus-visible + span { outline: 2px dashed var(--sage); outline-offset: 3px; }

.upload {
  position: relative;
  margin-top: 12px;
  border: 1px dashed var(--line-strong);
  padding: 26px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  display: block;
  transition: background .3s, border-color .3s;
}
.upload:hover { background: var(--linen); border-color: var(--sage); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload strong { color: var(--sage); font-weight: 500; }
.upload:focus-within { border-color: var(--sage); outline: 2px dashed var(--sage); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #8A3B2E; font-size: 0.92rem; margin: 0 0 18px; }
.form-error[hidden] { display: none; }

.form-note { font-size: 0.82rem; font-style: italic; color: var(--text-muted); margin-top: 18px; }

.form-success {
  display: none;
  outline: none;
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--line);
  background: var(--linen);
}
.form-success .script { font-size: 3rem; display: block; margin-bottom: 8px; }
.form-sent .inquiry-form { display: none; }
.form-sent .form-success { display: block; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--umber);
  color: var(--cream);
  padding: clamp(72px, 9vw, 112px) 0 32px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--french-blue) 0 2px, transparent 2px 9px);
  opacity: .5;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(232, 224, 210, .16);
}
.site-footer .brand { color: var(--ivory); align-items: flex-start; }
.site-footer .brand__tag { color: var(--french-blue); }
.site-footer .brand__tag::before { display: none; }
.footer-script { font-family: var(--script); font-size: 2rem; color: var(--french-blue); margin-top: 28px; line-height: 1.2; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--french-blue);
  margin-bottom: 22px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: var(--cream); font-size: 0.95rem; transition: color .3s; }
.site-footer a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; font-size: 0.95rem; line-height: 1.8; }
.site-footer address a { color: inherit; text-decoration-color: rgba(232, 224, 210, .4); text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 224, 210, .78);
}
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* The upload dropzone is also a label inside .field: reset it the same way */
.field label.upload {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

/* Pills sit inside .field, so reset the label styling they'd otherwise inherit */
.field label.pill {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

@media (max-width: 600px) {
  .announce { font-size: 0.6rem; letter-spacing: 0.18em; }
}

/* ---------- Small phones ---------- */

@media (max-width: 400px) {
  .site-header .wrap { gap: 12px; }
  .brand__logo { height: 58px; }
  .brand__name { font-size: 1.35rem; letter-spacing: 0.24em; margin-right: -0.24em; }
  .brand__tag { letter-spacing: 0.22em; }
}

@media print {
  .js .reveal { opacity: 1; transform: none; }
  .announce, .nav-toggle, .stripe-band { display: none; }
  .site-header { position: static; }
}
