:root {
  --forest: #26392b;
  --dark: #18221d;
  --ink: #1a2924;
  --muted: #4c5f54;
  --cream: #f5f1e9;
  --form: #eaf0eb;
  --border: #cbd5cc;
  --gold: #e8b14a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; scroll-padding-bottom: 96px; }
body {
  margin: 0;
  background: #e5e9e4;
  color: var(--ink);
  font: 16px/1.55 Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button, input, select { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h2 { color: var(--forest); font-size: 25px; line-height: 1.13; letter-spacing: -.35px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.page {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding-bottom: 82px;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  background: var(--cream);
  box-shadow: 0 0 40px #18221d15;
}
.hero-link { display: block; color: var(--cream); background: var(--dark); }
.hero-link:focus-visible { outline-offset: -5px; }
.hero, .detail-photo { display: block; width: 100%; height: auto; }
.pack-summary {
  padding: 13px 15px 14px;
  color: var(--cream);
  background: var(--dark);
  text-align: center;
}
.pack-summary h1 { font-size: 20px; line-height: 1.2; letter-spacing: -.25px; }
.pack-summary p { margin-top: 3px; font-size: 13px; color: #e3e7de; }
.dot { color: var(--gold); padding: 0 .2em; }

.order { padding: 20px 18px 21px; background: var(--form); }
.order-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; }
.reference { font-size: 11px; font-weight: 700; color: var(--muted); }
.pack-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 13px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}
.pack-banner strong { display: block; font-size: 15px; line-height: 1.3; }
.pack-banner span { color: var(--muted); font-size: 13px; }
.offer-price { flex: none; white-space: nowrap; text-align: right; line-height: 1.15; }
.offer-price s { text-decoration-color: #9b3731; }
.offer-price b { display: block; color: var(--forest); font-size: 29px; line-height: 1; }
.offer-price small { font-size: 13px; }
label { display: block; margin: 8px 0 3px; font-size: 14px; font-weight: 700; }
input, select {
  width: 100%;
  height: 46px;
  background: #fff;
  border: 1px solid #9eafa1;
  border-radius: 6px;
  padding: 0 10px;
  scroll-margin: 10px 0 95px;
}
input::placeholder { color: #617066; opacity: 1; }
[aria-invalid="true"] { border-color: #a3322b; }
.size-help { margin: 3px 0 8px; color: var(--muted); font-size: 13px; }
.size-help > p { float: left; margin-right: 10px; padding-top: 7px; }
.size-help summary {
  width: fit-content;
  margin-left: auto;
  padding: 7px 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.size-help details p { clear: both; margin: 0 0 7px; padding: 9px 10px; background: var(--cream); border-radius: 5px; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 13px 0 9px; font-size: 14px; }
.total b { font-size: 21px; color: var(--forest); white-space: nowrap; }
.cta {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 8px;
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 #b18232;
}
.cta:hover { background: #f2c56a; }
.cta:disabled { opacity: .68; cursor: default; }
.reassure { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.reassure.returns { margin-top: 3px; font-weight: 700; }
.error { margin-top: 4px; color: #9b2f28; font-size: 13px; }
#fail, #sending { margin-top: 11px; padding: 9px 10px; border-radius: 6px; }
#fail { background: #fff6f2; }
#sending { background: white; font-size: 14px; }
.done { padding: 18px 2px 8px; }
.done h3 { font-size: 21px; color: var(--forest); }
.done p { margin-top: 7px; font-size: 15px; }
#done-total { font-weight: 700; }

.fit-caption, .colors, .faq { padding-top: 22px; padding-bottom: 22px; }
.fit-caption, .colors h2, .lookbook-heading, .faq { padding-inline: 18px; }
.fit-caption p { margin-top: 7px; color: var(--muted); font-size: 15px; }
.colors { background: #e5ebe5; }
.colors h2 { margin-bottom: 14px; }
.detail-photo { background: #dce5e6; }
.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 9px 6px;
  color: var(--cream);
  background: var(--forest);
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.swatches span { display: flex; justify-content: center; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 1px solid #fff8; }
.grey { background: #687484; }
.black { background: #171a20; }
.blue { background: #385f94; }
.photo-caption { padding: 9px 18px 0; color: var(--muted); font-size: 13px; }
.lookbook { background: var(--forest); color: var(--cream); }
.lookbook-heading { padding-top: 21px; padding-bottom: 13px; }
.lookbook h2 { color: var(--cream); }
.lookbook .photo-caption { padding-bottom: 12px; color: #e0e8db; }
.lookbook-photos { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 2px; margin-top: 2px; overflow: hidden; }
.lookbook-photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding: 10px 0; font-weight: 700; }
.faq details p { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.measurement-info { padding: 13px 18px; border-top: 1px solid var(--border); }
.measurement-info summary { padding: 5px 0; font-size: 13px; font-weight: 700; }
.measurement-info p { margin: 8px 0; color: var(--muted); font-size: 13px; }
.measurement-actions { display: flex; gap: 8px; }
.measurement-actions button {
  flex: 1;
  min-height: 44px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #9eafa1;
  border-radius: 5px;
  font-size: 13px;
}
.bar {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  display: flex;
  width: 100%;
  max-width: 480px;
  align-items: center;
  gap: 12px;
  margin: auto;
  padding: 8px 14px 11px;
  padding-bottom: calc(11px + env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--border);
  box-shadow: 0 -5px 25px #26392b16;
}
.bar > div { flex: 1; min-width: 0; line-height: 1.2; }
.bar strong { display: block; color: var(--forest); font-size: 25px; }
.bar strong small { font-size: 13px; }
.bar span { display: block; margin-top: 3px; font-size: 11px; }
.bar .cta { width: 45%; min-height: 45px; }

@media (max-width: 350px) {
  .order, .faq { padding-inline: 14px; }
  .size-help { font-size: 12px; }
  .bar { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
