/* Littera — The Signature Series
   Palette and type are taken from the product itself: blush ABS lid, brushed-gold initial
   (Playfair Display, the font the letters are cut in), marble vanity backdrops, ivory box card. */

:root {
  --ivory: #fbf7f3;
  --cream: #f6eee8;
  --marble: #f1e5df;
  --blush: #eac2c3;
  --blush-2: #e3b1b3;
  --rose: #d79fa3;
  --rose-deep: #b97a7f;
  --gold: #c9a24e;
  --gold-2: #e4c983;
  --gold-deep: #a4803a;
  --ink: #3a2a27;
  --ink-2: #6b5752;
  --ink-3: #9a8781;
  --line: rgba(58, 42, 39, 0.12);
  --serif: "Playfair Display", "Cormorant Garamond", Didot, Georgia, serif;
  --sans: "Jost", Futura, "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --radius: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(234, 194, 195, 0.45), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(241, 229, 223, 0.9), transparent 60%),
    radial-gradient(700px 500px at 70% 110%, rgba(228, 201, 131, 0.16), transparent 60%),
    var(--ivory);
  overflow-x: hidden;
}

/* paper grain — gives the ivory some tooth so flat areas do not read as screen-white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.16 0 0 0 0 0.15 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--rose-deep); }

p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn--gold {
  color: #2b1e1b;
  background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 10px 30px -14px rgba(164, 128, 58, 0.8);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(164, 128, 58, 0.9); }
.btn--ghost {
  border-color: rgba(58, 42, 39, 0.28);
  background: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.7); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row--center { justify-content: center; }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1;
}
.wordmark--sm { font-size: 22px; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding-inline: var(--gutter);
  background: rgba(251, 247, 243, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__nav { display: none; gap: 30px; }
.top__nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}
.top__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: right 0.35s var(--ease);
}
.top__nav a:hover { color: var(--ink); }
.top__nav a:hover::after { right: 0; }

/* ---------- section shells: full-bleed backgrounds, content capped at --max ---------- */

section {
  display: grid;
  grid-template-columns: minmax(0, var(--max));
  justify-content: center;
  padding: var(--section) var(--gutter);
  position: relative;
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(40px, 7vw, 96px);
  row-gap: 40px;
  overflow: hidden;
}
.hero__text { position: relative; z-index: 1; max-width: 600px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.lede {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
}
.hero .cta-row { margin-top: 34px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero__media {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: center;
  width: min(100%, 560px);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(164, 128, 58, 0.45);
  border-radius: 999px 999px var(--radius) var(--radius);
  pointer-events: none;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: 0 40px 80px -40px rgba(120, 70, 70, 0.55);
}

.hero__letter {
  position: absolute;
  left: -0.06em;
  top: -0.12em;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(300px, 48vw, 640px);
  line-height: 1;
  color: var(--blush);
  opacity: 0.42;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s var(--ease);
}
.hero__letter.is-fading { opacity: 0; }

/* page-load reveal for the hero text */
.hero__text > * {
  animation: rise 0.9s var(--ease) both;
}
.hero__text > :nth-child(1) { animation-delay: 60ms; }
.hero__text > :nth-child(2) { animation-delay: 160ms; }
.hero__text > :nth-child(3) { animation-delay: 280ms; }
.hero__text > :nth-child(4) { animation-delay: 400ms; }
.hero__text > :nth-child(5) { animation-delay: 520ms; }
.hero__media { animation: rise 1.1s var(--ease) 200ms both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- features ---------- */

.features__grid {
  display: grid;
  gap: 40px 36px;
}
.feature {
  padding-top: 26px;
  border-top: 1px solid rgba(164, 128, 58, 0.35);
}
.feature h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 18px 0 10px;
}
.feature p { color: var(--ink-2); max-width: 36ch; }

.ring {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(255, 255, 255, 0.45);
}
.ring svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ring--serif span {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--gold-deep);
  transform: translateY(1px);
}

/* ---------- letters ---------- */

.letters {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--blush) 60%, var(--blush-2));
  row-gap: 48px;
}
.letters::before,
.letters::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 128, 58, 0.5), transparent);
}
.letters::before { top: 0; }
.letters::after { bottom: 0; }

.letters__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.letters__preview h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.06;
}
.letters__label {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.letters__label strong { font-weight: 500; color: var(--ink); }
.letters__preview .btn { margin-top: 18px; }
.hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.compact {
  position: relative;
  width: min(300px, 64vw);
  aspect-ratio: 1;
  margin-top: 34px;
  border-radius: 50%;
  /* a matte disc seen slightly from above: flat blush, a soft sheen top-left, a hint of
     shadow along the lower rim — not a sphere */
  background: linear-gradient(180deg, #e8bdbf 0%, #e2b2b5 60%, #dcaaad 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -3px 8px rgba(120, 60, 60, 0.08),
    0 30px 50px -28px rgba(120, 70, 70, 0.5);
}
.compact::before {
  /* the base peeking out under the lid: the seam line of a closed compact */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 9px 0 -1px #cf989c, 0 11px 0 -1px rgba(120, 60, 60, 0.18);
  pointer-events: none;
}
.compact__initial {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(min(300px, 64vw) * 0.4);
  line-height: 1;
  background: linear-gradient(170deg, #f1d99a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55)) drop-shadow(0 2px 3px rgba(120, 70, 20, 0.35));
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.compact.is-swapping .compact__initial {
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.92);
}
.compact__clasp {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 15%;
  height: 4%;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: #c48b90;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.letters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 10px;
  align-content: start;
}
.tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(164, 128, 58, 0.28);
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tile span { transform: translateY(1px); }
.tile:hover,
.tile:focus-visible,
.tile.is-active {
  transform: translateY(-3px);
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  color: #2b1e1b;
  box-shadow: 0 16px 28px -16px rgba(164, 128, 58, 0.9);
}

/* ---------- gallery ---------- */

.gallery {
  padding-block: clamp(40px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 0;
}
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 360px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  padding-bottom: 6px;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0;
  scroll-snap-align: center;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px rgba(120, 70, 70, 0.5);
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img { transform: translateY(-4px); }
.gallery figcaption {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- steps ---------- */

.steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 36px 28px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step__art {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--cream) 70%, var(--marble) 100%);
  box-shadow: inset 0 0 0 1px rgba(164, 128, 58, 0.25);
  overflow: hidden;
  align-self: center;
}
.step__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  mix-blend-mode: multiply;
}
.step__num {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.step h3 { font-size: 24px; margin: 6px 0 10px; }
.step p { color: var(--ink-2); max-width: 32ch; }

/* ---------- gift ---------- */

.gift {
  row-gap: 44px;
  background: linear-gradient(180deg, transparent, rgba(241, 229, 223, 0.7) 30%, rgba(241, 229, 223, 0.7) 70%, transparent);
}
.gift__media {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 440px);
}
.gift__media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(164, 128, 58, 0.45);
  border-radius: var(--radius);
  pointer-events: none;
}
.gift__media img {
  width: 100%;
  aspect-ratio: 777 / 1254;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(120, 70, 70, 0.55);
}
.gift__text { align-self: center; max-width: 560px; }
.gift__text h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; }
.gift__text > p { margin-top: 22px; color: var(--ink-2); font-size: 18px; }
.gift__text .btn { margin-top: 30px; }

.chips {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 8px 16px;
  border: 1px solid rgba(164, 128, 58, 0.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.45);
}

/* ---------- faq ---------- */

.faq__list {
  max-width: 760px;
  width: 100%;
  justify-self: center;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 12px 1px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1px 12px no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 64ch;
}

/* ---------- closer + footer ---------- */

.closer {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(234, 194, 195, 0.55));
}
.closer h2 {
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.04;
  margin-bottom: 34px;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  background: rgba(234, 194, 195, 0.55);
  text-align: center;
}
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.foot__nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.foot__nav a:hover { color: var(--ink); }
.foot__contact { font-size: 14px; color: var(--ink-2); }
.foot__contact a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.foot__legal {
  max-width: 640px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- scroll reveal (class added by app.js; without JS everything is simply visible) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- breakpoints ---------- */

@media (min-width: 560px) {
  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letters__grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
}

@media (min-width: 900px) {
  .top__nav { display: flex; }

  .hero {
    grid-template-columns: repeat(2, minmax(0, calc((var(--max) - 56px) / 2)));
    column-gap: 56px;
    align-items: center;
    min-height: calc(100vh - 68px);
  }
  .hero__media { justify-self: end; }

  .features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .letters {
    grid-template-columns: minmax(0, calc((var(--max) - 72px) * 0.42)) minmax(0, calc((var(--max) - 72px) * 0.58));
    column-gap: 72px;
    align-items: center;
  }
  .letters__preview { align-items: flex-start; text-align: left; }
  .letters__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step__art { align-self: flex-start; width: min(100%, 240px); }

  .gift {
    grid-template-columns: minmax(0, calc((var(--max) - 72px) * 0.4)) minmax(0, calc((var(--max) - 72px) * 0.6));
    column-gap: 72px;
  }
  .gift__media { justify-self: start; }
}

@media (min-width: 1000px) {
  .gallery__track {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-inline: var(--gutter);
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin-inline: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
