/* Shared by the three landing-page takes: the brand's tokens, a more readable type scale, the
   phone that shows an invitation, the full-screen walk-through and the sections every take ends on. */
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-Italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fbfaf7;
  --ink: #15131a;
  --soft: #55505c;
  --carmine: #c8102e;
  --stone: #f3efe9;
  --rule: rgb(21 19 26 / 0.14);
  --body: "Instrument Sans", system-ui, sans-serif;
  /* Bodoni at its sturdiest cut: the hairlines thicken, so it reads at a glance. */
  --display: "Bodoni Moda", Didot, Georgia, serif;
  --display-weight: 600;
  --display-cut: "opsz" 8;
  --display-track: -0.015em;
  --gutter: 20px;
  --measure: 1200px;
}
@media (min-width: 900px) { :root { --gutter: 48px; } }
/* A take that sets its headlines in the reading face instead. */
.sans-heads {
  --display: var(--body);
  --display-weight: 700;
  --display-cut: normal;
  --display-track: -0.035em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }

.display { font-family: var(--display); font-weight: var(--display-weight); font-variation-settings: var(--display-cut); letter-spacing: var(--display-track); line-height: 1.02; text-wrap: balance; }
h1.display { font-size: clamp(42px, 6.4vw, 80px); }
h2.display { font-size: clamp(34px, 4.4vw, 56px); }
.display em { color: var(--carmine); font-style: italic; }
.sans-heads .display em { font-style: normal; }
.lede { max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 30px; border: 0; background: var(--carmine); color: #fff; font: 600 18px/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .18s ease; white-space: nowrap; }
@media (hover: hover) { .button:hover { background: var(--ink); } }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) { .button.quiet:hover { background: var(--ink); color: var(--paper); } }
.button.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--carmine); outline-offset: 3px; }

.offer { font-size: 16px; color: var(--soft); max-width: 30em; }
.offer strong { color: var(--ink); }
.offer s { color: var(--soft); }
.code { border-bottom: 1.5px dashed var(--carmine); font-weight: 700; letter-spacing: .05em; color: var(--ink); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--measure); margin: 0 auto; padding: 14px var(--gutter); }
.wordmark { display: block; width: 250px; height: 44px; background: url("/logo/compact-ink.svg") left center / auto 26px no-repeat; }
@media (max-width: 560px) { .wordmark { width: 124px; background: url("/logo/stacked-ink.svg") left center / auto 36px no-repeat; } }

/* The phone an invitation is shown in: a thin dark edge and nothing else, so the invitation is the picture. */
.phone { position: relative; aspect-ratio: 390 / 844; border: 7px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -28px rgb(21 19 26 / .45), 0 8px 18px -10px rgb(21 19 26 / .3); }
.phone > img, .phone > video, .phone > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Stills that follow one another on the same screen. */
.reel img { opacity: 0; transition: opacity .7s ease; }
.reel img.on { opacity: 1; }

/* ---- The walk-through: a real invitation, opened over the page ---- */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: auto 1fr auto; background: #0e0d11; color: #fff; }
.viewer[hidden] { display: none; }
.viewer { animation: viewer-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewer-in { from { opacity: 0; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .viewer { animation: none; } }
.viewer-top, .viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.viewer-name { font-size: 15px; line-height: 1.25; }
.viewer-name b { display: block; font: var(--display-weight) 19px/1.1 var(--display); font-variation-settings: var(--display-cut); }
.viewer-close { min-height: 44px; padding: 0 16px; border: 0; background: rgb(255 255 255 / .14); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.viewer-stage { min-height: 0; display: grid; place-items: center; padding: 0 12px; }
.viewer-screen { height: 100%; max-width: 100%; aspect-ratio: 390 / 844; background: #000; border-radius: 22px; overflow: hidden; }
.viewer-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-foot { justify-content: center; gap: 18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.viewer-foot p { font-size: 16px; color: #fff; white-space: nowrap; }
@media (max-width: 560px) {
  .viewer-stage { padding: 0; }
  .viewer-screen { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .viewer-foot { justify-content: space-between; }
}

/* ---- Sections every take ends on ---- */
.band { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); }
.steps { list-style: none; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--carmine); border-radius: 50%; color: var(--carmine); font-weight: 700; font-size: 17px; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(4, 1fr); gap: 32px; } .steps.row li { grid-template-columns: 1fr; } }

.price { background: var(--stone); border-top: 0; }
.price-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 6fr 5fr; gap: 80px; align-items: center; } }
.price h2 s { font-size: .55em; color: var(--soft); text-decoration-thickness: 2px; font-style: normal; }
.price h2 em { font-size: 1.5em; line-height: .9; white-space: nowrap; }
.included { list-style: none; padding: 0; margin: 28px 0; }
.included li { position: relative; padding: 13px 0 13px 38px; border-bottom: 1px solid var(--rule); }
.included li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 18px; height: 10px; border-left: 2.5px solid var(--carmine); border-bottom: 2.5px solid var(--carmine); rotate: -45deg; scale: .8; }
.once { margin-bottom: 26px; }
.button.wide { width: 100%; }
@media (min-width: 900px) { .button.wide { width: auto; } }
/* The promise, franked with the brand's postmark: the one postal mark on the page. */
.promise { position: relative; padding: 30px 26px 28px; background: var(--paper); border: 1.5px solid var(--ink); }
.promise i { position: absolute; top: -34px; right: -10px; width: 104px; height: 104px; background: url("/logo/postmark-carmine.svg") center / contain no-repeat; rotate: 12deg; }
.promise b { display: block; font: italic var(--display-weight) 34px/1.05 var(--display); font-variation-settings: var(--display-cut); color: var(--carmine); margin-bottom: 8px; }
.promise p { max-width: 22em; font-size: 19px; }

.qa { display: grid; gap: 32px; }
@media (min-width: 900px) { .qa { grid-template-columns: 1fr 2fr; } }
.qa details { border-bottom: 1px solid var(--rule); }
.qa details:first-child { border-top: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--carmine); font-size: 24px; line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa details p { padding: 0 0 22px; max-width: 36em; color: var(--soft); }

.closing { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 130px) 0; text-align: center; }
.closing .display em { color: #ff5a73; }
.closing .button { margin-top: 32px; }
.closing .offer { margin: 18px auto 0; color: rgb(251 250 247 / .7); }
.closing .offer strong, .closing .code { color: var(--paper); }
.foot { padding: 28px var(--gutter) 100px; font-size: 14px; color: var(--soft); text-align: center; }

.sticky { position: fixed; inset: auto 0 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(251 250 247 / .95); border-top: 1px solid var(--rule); backdrop-filter: blur(8px); font-weight: 600; font-size: 15px; }
@media (min-width: 900px) { .sticky { display: none; } }
.note { font-size: 15px; color: var(--soft); }

/* ---- The two carousel designs share these: the caption under the ring and the words after it ---- */
h1.display em { display: block; }
/* On a phone the headline is two whole lines, so the invitations start high on the screen. */
@media (max-width: 560px) { .hero h1.display { font-size: 7.9vw; white-space: nowrap; } }
.caption { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; text-align: center; }
.caption-words { transition: opacity .25s ease; }
.caption-words.out { opacity: 0; }
.caption-name { font: italic var(--display-weight) 30px/1.05 var(--display); font-variation-settings: var(--display-cut); }
.caption-for { font-size: 16px; opacity: .78; margin-top: 3px; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .8; }
.arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.open { grid-column: 1 / -1; justify-self: center; margin-top: 14px; }
.after { display: grid; gap: 20px; padding-top: 36px; padding-bottom: 64px; }
.after .button { width: 100%; }
@media (min-width: 900px) { .after { justify-items: center; text-align: center; } .after .button { width: auto; } }

/* A card in a ring: the still its film ends on, and the film over it while it is in front. */
.card { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; will-change: transform; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .45s ease; }
.card.is-playing video { opacity: 1; }
.ring { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
