/* Happy Maillots — editorial design system
   Cream + black + dusty rose, Cormorant Garamond + Manrope */

:root {
  --cream: #f6f1e8;
  --cream-soft: #faf6ef;
  --cream-deep: #ece4d3;
  --ink: #161311;
  --ink-soft: #2a2520;
  --muted: #8a7f72;
  --line: #e2d9c8;
  --line-soft: #ece4d3;
  --rose: #c8959e;
  --rose-deep: #a87480;
  --rose-soft: #ead4d8;
  --rose-tint: #f4e3e6;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Typographic scale */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.dark { color: var(--ink); }
.eyebrow.rose { color: var(--rose-deep); }

.serif { font-family: var(--serif); font-weight: 300; }
.italic { font-style: italic; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(56px, 9vw, 148px); }
h2 { font-size: clamp(40px, 6vw, 96px); }
h3 { font-size: clamp(28px, 3vw, 44px); }
h4 { font-size: clamp(20px, 2vw, 28px); }
p  { margin: 0; }

.lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Layout primitives */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; }
.center { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: -1;
}
.site-header .bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
}
.brand {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 26px; letter-spacing: -0.01em;
}
.brand .feather { font-style: normal; font-family: var(--sans); font-weight: 200; transform: translateY(-2px); margin-left: 2px;}
.brand b { font-weight: 400; font-style: normal; font-family: var(--serif); }
.nav { display: flex; gap: 28px; justify-self: center; }
.nav a {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 0; position: relative;
}
.nav a.active::after,
.nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
}
.utility { display: flex; gap: 18px; justify-self: end; align-items: center; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.utility .lang { display: flex; gap: 4px; }
.utility .lang span.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer;
}
.hamburger span { display: block; width: 100%; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  border-radius: var(--r-lg);
  transition: all .25s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.rose { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--cream-soft); }
.btn.rose:hover { background: transparent; color: var(--rose-deep); }
.btn.link {
  background: none; border: none; padding: 0; color: var(--ink);
  border-bottom: 1px solid var(--ink); border-radius: 0;
  letter-spacing: 0.16em; padding-bottom: 4px;
}
.btn.link:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.btn .arrow { display: inline-block; width: 14px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--cream-soft);
  padding: 96px var(--gutter) 32px;
  margin-top: 120px;
}
.site-footer .grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  max-width: var(--max); margin: 0 auto;
  padding-bottom: 64px;
  border-bottom: 1px solid #2a2520;
}
.site-footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #a39788; font-weight: 500; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer ul a:hover { color: var(--rose-soft); }
.site-footer .word {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 64px; line-height: 0.95;
  color: var(--cream-soft);
}
.site-footer .word b { font-style: normal; font-weight: 400; }
.site-footer .small { font-size: 12px; color: #a39788; max-width: 32ch; margin-top: 16px; }
.site-footer .meta {
  display: flex; justify-content: space-between; align-items: center; padding-top: 28px;
  max-width: var(--max); margin: 0 auto;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #a39788;
}
/* Image slot styling overrides — editorial frame */
image-slot {
  background: #ece4d3;
  border: 1px solid var(--line);
  --is-placeholder-color: #b6a98f;
}
.frame {
  position: relative; overflow: hidden; background: var(--cream-deep);
}
.frame .label {
  position: absolute; left: 12px; top: 12px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* Generic placeholder image (striped) */
.ph {
  background:
    repeating-linear-gradient(135deg, #ece4d3 0 14px, #e0d6c2 14px 28px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid #d4c8af; }
.ph span { background: var(--cream-deep); padding: 6px 10px; border: 1px solid #d4c8af; z-index: 1; }
.ph.dark { background: repeating-linear-gradient(135deg, #1f1b18 0 14px, #2a2520 14px 28px); color: #a39788; }
.ph.dark::before { border-color: #3a3128; }
.ph.dark span { background: #1f1b18; border-color: #3a3128; }
.ph.rose { background: repeating-linear-gradient(135deg, #f4e3e6 0 14px, #ead4d8 14px 28px); color: var(--rose-deep); }
.ph.rose::before { border-color: #d8b9be; }
.ph.rose span { background: #f4e3e6; border-color: #d8b9be; }

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--cream-soft);
}
.marquee .track {
  display: inline-flex; gap: 64px;
  animation: scroll 40s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--ink-soft);
}
.marquee .track span::after { content: "✦"; margin-left: 64px; color: var(--rose-deep); font-style: normal; font-size: 14px; vertical-align: middle; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section spacing */
section.block { padding: 96px 0; }
section.block.tight { padding: 56px 0; }

/* Section heading */
.heading-row {
  display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px;
  padding: 0 var(--gutter);
}
.heading-row .left { display: flex; flex-direction: column; gap: 12px; }
.heading-row h2 { max-width: 12ch; }

/* Card (catalog leotard) */
.card {
  display: flex; flex-direction: column; gap: 14px;
}
.card .img { aspect-ratio: 3/4; background: var(--cream-deep); position: relative; overflow: hidden; }
.card .img .flag {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ink); color: var(--cream-soft);
  padding: 6px 10px; border-radius: var(--r-lg);
}
.card .img .flag.rose { background: var(--rose-deep); }
.card .img .quick-cta {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 16px;
  background: var(--ink); color: var(--cream-soft);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-lg);
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.card .img .quick-cta .arrow { background: currentColor; }
.card .img .quick-cta .arrow::after { border-color: currentColor; }
.card:hover .img .quick-cta { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .card .img .quick-cta { opacity: 1; transform: none; position: static; margin-top: 10px; }
}
.card .meta { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.card .meta .name { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 400; }
.card .meta .price { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); }
.card .swatches { display: flex; gap: 6px; padding: 0 2px; }
.swatch { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.1); }

/* Form base */
.field {
  display: grid; grid-template-columns: 1fr 140px; align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.field label { font-size: 13px; font-weight: 500; }
.field .inputwrap {
  display: flex; align-items: center; border: 1px solid var(--line);
  background: var(--cream-soft); border-radius: 4px; padding: 0 12px; height: 40px;
}
.field .inputwrap input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--sans); font-size: 14px; text-align: right;
  width: 100%;
}
.field .inputwrap .unit { color: var(--muted); font-size: 12px; padding-left: 6px; }
.field:focus-within .inputwrap { border-color: var(--ink); background: var(--cream-soft); box-shadow: 0 0 0 3px var(--rose-tint); }
.field.active label { color: var(--rose-deep); }

textarea, input[type="text"], input[type="email"] {
  font-family: var(--sans); font-size: 14px;
  border: 1px solid var(--line); background: var(--cream-soft);
  padding: 14px 16px; border-radius: 4px; outline: 0;
  width: 100%;
}
textarea:focus, input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--rose-tint); }
textarea { min-height: 140px; resize: vertical; }

/* Pill toggle */
.pill-toggle {
  display: inline-flex; padding: 4px; background: var(--cream-soft);
  border: 1px solid var(--line); border-radius: 999px; gap: 0;
}
.pill-toggle button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.pill-toggle button.on { background: var(--ink); color: var(--cream-soft); }

/* Step indicator */
.steps { display: flex; align-items: center; gap: 16px; }
.steps .step { display: flex; align-items: center; gap: 12px; }
.steps .num { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; }
.steps .num.on { background: var(--ink); color: var(--cream-soft); }
.steps .num.off { border: 1px solid var(--ink-soft); color: var(--ink-soft); }
.steps .label { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; }
.steps .label.on { color: var(--ink); }
.steps .arrow { width: 60px; height: 1px; background: var(--ink-soft); position: relative; }
.steps .arrow::after { content: ""; width: 6px; height: 6px; border-top: 1px solid var(--ink-soft); border-right: 1px solid var(--ink-soft); transform: rotate(45deg); position: absolute; right: 0; top: -3px; }

/* Tweaks panel mount style */
.tweaks-floating { position: fixed; right: 20px; bottom: 20px; z-index: 80; }

/* Util */
.muted { color: var(--muted); }
.rose-text { color: var(--rose-deep); }
.center-text { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }

/* Responsive (basic) */
@media (max-width: 900px) {
  /* backdrop-filter on a sticky element repaints every scroll frame on
     mobile browsers, causing stutter — use a solid background instead. */
  .site-header::before { backdrop-filter: none; background: var(--cream); }
  .site-header .bar { grid-template-columns: 1fr auto; }
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: fixed; inset: 0; top: 0;
    justify-self: stretch;
    background: var(--cream);
    z-index: 100;
    flex-direction: column; align-items: stretch;
    padding: 100px var(--gutter) 40px;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  body.nav-open { overflow: hidden; }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .heading-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; padding: 18px 2px;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.04em; font-weight: 500; color: var(--ink);
}
.faq-q .faq-icon {
  flex-shrink: 0; width: 18px; height: 18px; position: relative;
  transition: transform .3s ease;
}
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: ""; position: absolute; background: var(--rose-deep); border-radius: 1px;
}
.faq-q .faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q .faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; transition: opacity .3s ease; }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-a {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease;
}
.faq-a.open { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-inner p { color: var(--ink-soft); max-width: 60ch; padding: 0 2px 20px; }
