/* Hug & Keep. Mobile first, system fonts, no dependencies. */
:root {
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --ink: #2A2320;
  --muted: #655A53;
  --line: #E4D9CE;
  --accent: #8A2B3C;
  --accent-dark: #6F2130;
  --tint: #F8ECEC;
  --ok: #2F6B4F;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--ink); color: #FBF7F2;
  font-size: 12px; line-height: 16px; letter-spacing: .02em;
  text-align: center; padding: 5px 12px;
}
.brand {
  display: block; text-align: center; padding: 7px 16px 6px;
  font: 600 20px/24px var(--serif); letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); font-style: italic; }

/* ---------- First screen ---------- */
.buy { display: block; }
.media {
  /* The photo takes whatever height is left after the buying controls,
     so the whole first screen fits on a 375 x 667 phone. */
  height: clamp(132px, calc(100vh - 485px), 420px);
  height: clamp(132px, calc(100svh - 485px), 420px);
  background: #EFE6DB; overflow: hidden; position: relative;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media video { position: absolute; inset: 0; }

.panel { padding: 10px 16px 14px; }
h1 { font-weight: 400; }
.eyebrow {
  display: block; font: 600 12px/16px var(--sans);
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.headline { display: block; font: 600 24px/28px var(--serif); letter-spacing: -.005em; margin-top: 2px; }
.sub { font-size: 14px; line-height: 19px; color: var(--muted); margin-top: 4px; }

.picker { margin-top: 8px; }
.colors { display: flex; align-items: center; gap: 8px; }
.colors legend { float: left; font-size: 13px; font-weight: 600; margin-right: 10px; line-height: 30px; }
.swatch {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 6px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); font-size: 13px; cursor: pointer; position: relative;
}
.swatch input, .bundle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); font-weight: 600; }
.swatch:has(input:focus-visible), .bundle:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.dot-gold { background: linear-gradient(135deg, #F3DFA6, #C9A14E); }
.dot-silver { background: linear-gradient(135deg, #F2F3F5, #B4B9C0); }

.bundles {
  display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: 7px;
  align-items: stretch; margin-top: 8px;
}
.bundle {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7px 4px; min-height: 96px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
}
.bundle:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.b-name { font-size: 13px; line-height: 16px; font-weight: 600; }
.b-price { font-size: 18px; line-height: 23px; font-weight: 700; }
.b-each { font-size: 12px; line-height: 15px; color: var(--muted); }
.b-save { font-size: 12px; line-height: 15px; font-weight: 700; color: var(--ok); }
.b-line { font: italic 600 12px/15px var(--serif); color: var(--accent); margin-top: 2px; }

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; margin-top: 10px; padding: 0 18px;
  background: var(--accent); color: #FFFFFF; border: 0; border-radius: 12px;
  font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn:active { transform: translateY(1px); }
.reassure { font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; margin-top: 7px; }
.note { font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; margin-top: 3px; }
.gift-line { font-size: 12px; line-height: 16px; font-weight: 600; text-align: center; margin-top: 6px; }
.checkout-msg {
  font-size: 13px; line-height: 18px; margin-top: 8px; padding: 8px 10px;
  background: #FFF4D6; border: 1px solid #E5C76B; border-radius: 8px;
}

/* ---------- Sections ---------- */
.section { padding: 34px 16px; border-top: 1px solid var(--line); max-width: 720px; margin: 0 auto; }
.section h2 { font: 600 24px/30px var(--serif); margin-bottom: 14px; }
.section h3 { font: 600 17px/22px var(--sans); margin-bottom: 4px; }
.section p + p { margin-top: 12px; }

.why-grid { display: grid; gap: 22px; }
.icon { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }

.links { margin-top: 16px; display: grid; gap: 8px; }
.links a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; text-decoration: none; }
.links a::after { content: " →"; }

.details-grid { display: grid; gap: 18px; }
.size-figure img { border-radius: 14px; background: #EFE6DB; width: 100%; }
.size-figure figcaption { font-size: 14px; font-weight: 600; text-align: center; margin-top: 8px; }
.specs > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.specs > div:first-child { border-top: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.cutoff { background: var(--tint); border: 1px solid #E7C9CD; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ticks { display: grid; gap: 8px; margin-bottom: 14px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg);
}
.promise-line { font: 600 20px/27px var(--serif); margin-bottom: 10px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--muted); }

.buy2 { text-align: left; }
.pair-photo { border-radius: 14px; background: #EFE6DB; width: 100%; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center;
  font-size: 14px; color: var(--muted);
}
.footer-brand { font: 600 20px/24px var(--serif); color: var(--ink); margin-bottom: 6px; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 4px; margin-top: 12px; }
.site-footer li a { display: inline-block; padding: 8px 10px; }
.copyright { margin-top: 14px; font-size: 13px; }
body.has-sticky .site-footer { padding-bottom: 104px; }

/* ---------- Sticky buy bar (phones) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(42,35,32,.10);
}
.sticky-label { flex: 1; font-size: 14px; line-height: 18px; }
.sticky-label span { display: block; color: var(--muted); }
.sticky .btn { width: auto; min-width: 132px; min-height: 46px; margin: 0; }

/* ---------- Text pages: policies, gift guides, thank-you ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 22px 16px 44px; }
.doc .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.doc .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.doc .crumbs li + li::before { content: "›"; margin-right: 6px; }
.doc h1 { font: 600 30px/36px var(--serif); margin-bottom: 12px; }
.doc h2 { font: 600 21px/27px var(--serif); margin: 28px 0 8px; }
.doc h3 { font: 600 17px/22px var(--sans); margin: 18px 0 4px; }
.doc p { margin-top: 12px; }
.doc p.lead { font-size: 18px; line-height: 27px; color: var(--muted); margin-top: 0; }
.doc ul.bullets { list-style: disc; padding-left: 22px; margin-top: 12px; display: grid; gap: 6px; }
.doc .updated { font-size: 13px; color: var(--muted); }
.doc figure { margin-top: 18px; }
.doc figure img { border-radius: 14px; background: #EFE6DB; width: 100%; }
.doc figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; text-align: center; }
.cta {
  margin-top: 26px; padding: 18px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; text-align: center;
}
.cta p { margin: 0 0 4px; }
.cta .btn { margin-top: 12px; }
.cta .reassure { margin-top: 8px; }
.thanks { text-align: center; padding-top: 44px; }
.thanks .ticks { text-align: left; max-width: 380px; margin: 22px auto; }

/* ---------- Wider screens ---------- */
@media (min-width: 520px) {
  .panel { max-width: 520px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .details-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .pair-photo { max-width: 520px; }
  .buy2 .picker { max-width: 520px; }
}
@media (min-width: 900px) {
  .brand { font-size: 26px; line-height: 32px; padding: 14px 16px 12px; }
  .buy {
    display: grid; grid-template-columns: 520px minmax(0, 440px); gap: 48px;
    justify-content: center; align-items: center; padding: 20px 32px 48px;
  }
  .media { height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
  .panel { padding: 0; margin: 0; max-width: none; }
  .headline { font-size: 36px; line-height: 42px; }
  .sub { font-size: 17px; line-height: 25px; margin-top: 8px; }
  .picker { margin-top: 18px; }
  .bundles { margin-top: 14px; gap: 10px; }
  .bundle { min-height: 116px; }
  .btn { min-height: 56px; margin-top: 16px; }
  .section { padding: 48px 16px; }
  .sticky { display: none !important; }
  body.has-sticky .site-footer { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease; }
  .sticky { animation: rise .2s ease-out; }
  @keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
}
