/* SantaNameVideo static site. Tokens from docs/design.md: Christmas Eve seen through
   Santa's window. A night page, paper objects (the Nice List, the letter, the ledger,
   the calendar page) and gold-foil line art. No external requests except the
   contest tracker. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pinyon Script";
  src: url("/fonts/pinyon-script-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #172042;
  --midnight-deep: #111936;
  --dusk: #232d5c;
  --snow: #eef1fb;
  --snow-2: rgba(238, 241, 251, 0.74);
  --snow-line: rgba(238, 241, 251, 0.14);
  --parchment: #f8efdc;
  --parchment-deep: #efe2c6;
  --parchment-edge: #e4d3b0;
  --ink: #33241b;
  --ink-2: rgba(51, 36, 27, 0.72);
  --rule: rgba(51, 36, 27, 0.2);
  --wax: #c22f2a;
  --wax-pressed: #a42622;
  --wax-dark: #8f1d19;
  --lamp: #f2b84b;
  --lamp-dim: rgba(242, 184, 75, 0.55);
  --foil: #c48a1c;
  --pine: #1f5f4a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;

  --gutter: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --paper-shadow: 0 1px 0 var(--parchment-edge), 0 2px 0 var(--parchment-deep), 0 3px 0 var(--parchment-edge),
    0 4px 0 var(--parchment-deep), 0 24px 44px -18px rgba(4, 7, 22, 0.8);
  color-scheme: dark;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background: var(--midnight);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--snow);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a,
button,
summary,
label {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

.paper :focus-visible {
  outline-color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--snow);
  color: var(--midnight);
  padding: 8px 12px;
}

.paper {
  color-scheme: light;
  background-color: var(--parchment);
  color: var(--ink);
}

.line-art {
  fill: none;
  stroke: var(--lamp);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  padding-top: env(safe-area-inset-top);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.wordmark {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 19px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wordmark svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 15px;
}

.site-nav a {
  text-decoration: none;
  color: var(--snow-2);
  padding: 10px 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--snow);
    text-decoration: underline;
  }
}

@media (max-width: 559px) {
  .site-nav .hide-sm {
    display: none;
  }
}

@media (min-width: 560px) {
  .site-nav {
    gap: 28px;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--wax);
  color: #fff;
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -12px rgba(194, 47, 42, 0.9);
  transition: transform 120ms var(--ease-out), background-color 120ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
  background: var(--wax-pressed);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--wax-pressed);
  }
}

/* Hero: the night sky through Santa's window, and his open book */

.hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 40px;
}

/* Stars: static dots, no twinkle. A warm lamp glow sits behind the book. */
.hero::before {
  content: "";
  position: absolute;
  inset: -60px 0 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 22% 30%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 8%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 55% 22%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 71% 6%, rgba(242, 184, 75, 0.9), transparent 60%),
    radial-gradient(1px 1px at 84% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 34%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 64% 40%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 14% 52%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(60% 45% at 70% 72%, rgba(242, 184, 75, 0.16), transparent 70%),
    linear-gradient(180deg, var(--midnight-deep) 0%, var(--midnight) 60%);
}

.hero-grid {
  display: grid;
  grid-template-areas: "copy" "book" "try";
  gap: 28px;
  padding-top: 20px;
}

.hero-copy {
  grid-area: copy;
}

.hero-try {
  grid-area: try;
}

.book {
  grid-area: book;
}

.hero h1 {
  font-size: 41px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 12ch;
}

.hero .lead {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--snow-2);
  max-width: 31em;
}

/* "Try it": the name field. On the night, styled as a slip of paper. */
.try {
  max-width: 440px;
}

.try label {
  display: block;
  font-size: 15px;
  color: var(--snow-2);
  margin-bottom: 8px;
}

.try-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--parchment);
  border-radius: 14px;
  padding: 4px 4px 4px 18px;
  box-shadow: 0 0 0 1px rgba(51, 36, 27, 0.08) inset, 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

.try-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 19px/1.2 var(--sans); /* at least 16px: iOS zooms smaller inputs */
  padding: 14px 0;
  outline: none;
  color-scheme: light;
}

.try-field input::placeholder {
  color: rgba(51, 36, 27, 0.45);
}

.try-field:focus-within {
  box-shadow: 0 0 0 3px var(--lamp), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
}

.try-field .pen {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}

.try .hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--snow-2);
}

.hero .actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.hero .note {
  font-size: 15px;
  color: var(--snow-2);
}

/* The book. Phone: one page. Desktop: an open spread. */
.book {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.book::before {
  /* The gold ribbon bookmark hanging over the top of the page. */
  content: "";
  position: absolute;
  z-index: 2;
  top: -10px;
  right: 30px;
  width: 20px;
  height: 78px;
  background: linear-gradient(90deg, #d99b2b, var(--lamp) 45%, #d99b2b);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}

.spread {
  display: grid;
}

.page {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 4px 8px 8px 4px;
  box-shadow: var(--paper-shadow);
  background-image:
    linear-gradient(90deg, rgba(51, 36, 27, 0.16), rgba(51, 36, 27, 0) 9%),
    radial-gradient(120% 90% at 60% 40%, rgba(255, 255, 255, 0.35), transparent 60%);
}

.page-left {
  display: none;
}

.page-head {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.page-head .book-title {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}

.page-head p {
  margin-top: 4px;
  font-family: var(--script);
  font-size: 22px;
  color: var(--ink-2);
}

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding: 4px 2px 0;
  font-family: var(--script);
  font-size: 30px;
  line-height: 1.3;
  color: rgba(51, 36, 27, 0.66);
}

.entries .tick {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--foil);
}

/* The child's line: big ink handwriting and the gold star stamp. */
.yours {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 10px 2px 4px;
  border-bottom: 1px solid var(--rule);
}

.yours .name {
  font-family: var(--script);
  font-size: 54px;
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.yours .stamp {
  width: 52px;
  height: 52px;
  flex: none;
}

.page .signed {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
}

.page .signed span:last-child {
  font-family: var(--script);
  font-size: 26px;
  color: var(--ink);
}

/* The one orchestrated motion: the name writes itself in, then the star stamps. */
.writing .name {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  animation: ink 1100ms var(--ease-out) both;
}

.writing .stamp {
  animation: stamp 420ms 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ink {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(1.6) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
    grid-template-areas: "copy book" "try book";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    row-gap: 28px;
    padding-top: 48px;
  }
  .book {
    align-self: center;
  }
  .hero h1 {
    font-size: 58px;
    max-width: none;
  }
  .book {
    max-width: 600px;
  }
  .book::before {
    right: 46px;
  }
  .spread {
    grid-template-columns: 1fr 1fr;
  }
  .page-left {
    display: block;
    border-radius: 8px 4px 4px 8px;
    background-image:
      linear-gradient(270deg, rgba(51, 36, 27, 0.18), rgba(51, 36, 27, 0) 10%),
      radial-gradient(120% 90% at 40% 40%, rgba(255, 255, 255, 0.35), transparent 60%);
  }
  .page-right .page-head,
  .page-right .entries {
    display: none;
  }
  .page-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-right .yours {
    border-top: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 18px 2px 14px;
  }
  .page-right .yours .stamp {
    position: absolute;
    right: 4px;
    top: -26px;
    width: 58px;
    height: 58px;
  }
  .page-right .yours .label {
    display: block;
  }
  .page-right .yours .name {
    font-size: 76px;
  }
}

.yours .label {
  display: none;
  font-size: 14px;
  color: var(--ink-2);
}

/* Sections */

.section {
  position: relative;
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-head {
  max-width: 640px;
}

.section-head h2 {
  font-size: 30px;
  line-height: 1.12;
}

.section-head p {
  margin-top: 12px;
  color: var(--snow-2);
  max-width: 34em;
}

@media (min-width: 960px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .section-head h2 {
    font-size: 40px;
  }
}

/* The letter: what Santa will say */

.letter-wrap {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.letter {
  position: relative;
  max-width: 640px;
  padding: 30px 24px 28px;
  border-radius: 4px;
  box-shadow: var(--paper-shadow);
  background-image:
    radial-gradient(140% 100% at 20% 0%, rgba(255, 255, 255, 0.4), transparent 55%),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(51, 36, 27, 0.07) 33px 34px);
  transform: rotate(-0.6deg);
}

.letter p {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.75;
}

.letter p + p {
  margin-top: 14px;
}

/* The parts that come from the parent's details. */
.letter mark {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--foil);
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.letter .sign {
  margin-top: 18px;
  font-family: var(--script);
  font-size: 40px;
  line-height: 1;
}

.letter-notes {
  display: grid;
  gap: 16px;
  align-content: start;
  color: var(--snow-2);
  font-size: 15px;
  max-width: 34em;
}

.letter-notes .key {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--snow);
}

.letter-notes .key span {
  display: inline-block;
  width: 34px;
  flex: none;
  border-bottom: 2px dotted var(--lamp);
  transform: translateY(-4px);
}

.letter-notes ul {
  margin: 0;
  padding-left: 18px;
}

.letter-notes li + li {
  margin-top: 6px;
}

@media (min-width: 960px) {
  .letter-wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 56px;
    align-items: start;
  }
  .letter-notes {
    padding-top: 36px;
  }
  .letter {
    padding: 44px 48px 40px;
  }
  .letter p {
    font-size: 21px;
  }
}

/* Storyboard: the scenes of the video, in order */

.storyboard {
  margin-top: 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding: 4px max(var(--gutter), env(safe-area-inset-left)) 18px;
  margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left)));
  margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right)));
  list-style: none;
  scrollbar-width: none;
}

.storyboard::-webkit-scrollbar {
  display: none;
}

.scene {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 38%, rgba(242, 184, 75, 0.2), transparent 70%),
    linear-gradient(180deg, #2a3466, var(--dusk) 55%, #1b2450);
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.22) inset, 0 18px 36px -20px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
}

.frame svg {
  width: 64%;
  margin-top: -18%;
}

.frame .time {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--snow-2);
}

/* Burned-in caption style, as in the real video. */
.frame .caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  text-align: center;
  font: 800 17px/1.25 var(--sans);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.scene h3 {
  font-size: 19px;
  line-height: 1.2;
}

.scene p {
  font-size: 15px;
  color: var(--snow-2);
  margin-top: -6px;
}

@media (min-width: 1100px) {
  .storyboard {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding: 4px 0 0;
  }
}

/* How it works: a real sequence, so it is numbered. */

.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 26px;
  max-width: 720px;
}

.steps li {
  counter-increment: step;
  align-content: start;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--lamp-dim);
  color: var(--lamp);
  display: grid;
  place-items: center;
}

.steps h3 {
  font-size: 21px;
  line-height: 1.25;
}

.steps p {
  margin-top: 4px;
  color: var(--snow-2);
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 40px;
  }
  .steps li {
    grid-template-columns: 1fr;
  }
}

/* Delivery: an envelope on the night, and a calendar page */

.delivery {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.delivery-now {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--snow-line);
  border-bottom: 1px solid var(--snow-line);
}

.delivery-now svg {
  width: 84px;
}

.delivery h3 {
  font-size: 22px;
  line-height: 1.2;
}

.delivery p {
  margin-top: 6px;
  color: var(--snow-2);
}

.delivery-eve {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: center;
}

.calendar {
  width: 112px;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--paper-shadow);
  transform: rotate(-3deg);
}

.calendar .month {
  background: var(--wax);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
}

.calendar .day {
  font-family: var(--display);
  font-size: 52px;
  line-height: 1;
  padding: 10px 0 2px;
}

.calendar .hour {
  font-size: 13px;
  color: var(--ink-2);
  padding-bottom: 10px;
}

@media (min-width: 960px) {
  .delivery {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .delivery-now {
    border-bottom: 0;
    border-top: 0;
    padding: 0;
  }
}

/* Film the moment */

.moment {
  display: grid;
  gap: 28px;
}

.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.tips li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
}

.tips svg {
  width: 56px;
  height: 56px;
}

.tips strong {
  display: block;
  font-weight: 600;
}

.tips span {
  color: var(--snow-2);
  font-size: 15px;
}

.section-head .hashtag {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--lamp);
  overflow-wrap: anywhere;
}

@media (min-width: 960px) {
  .moment {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
  }
}

/* Prices as a ledger, with the refund promise sealed in wax */

.pricing {
  margin-top: 28px;
  display: grid;
  gap: 32px;
}

.ledger {
  border-radius: 4px;
  padding: 10px 24px 24px;
  max-width: 560px;
  box-shadow: var(--paper-shadow);
}

.ledger dl {
  margin: 0;
}

.ledger .row {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger .line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ledger dt {
  font-family: var(--display);
  font-size: 22px;
}

.ledger .leader {
  flex: 1;
  border-bottom: 2px dotted rgba(51, 36, 27, 0.35);
  transform: translateY(-5px);
  min-width: 24px;
}

.ledger .price {
  font-family: var(--display);
  font-size: 22px;
  font-variant-numeric: lining-nums;
}

.ledger dd {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.ledger .small {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.promise {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  max-width: 560px;
}

.seal {
  width: 104px;
  height: 104px;
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 28%, #e45a51 0%, var(--wax) 42%, var(--wax-dark) 100%);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.1), inset 0 0 0 9px rgba(255, 255, 255, 0.12),
    0 10px 22px -10px rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
}

.seal svg {
  width: 46px;
  height: 46px;
}

.promise h3 {
  font-size: 22px;
  line-height: 1.2;
}

.promise p {
  margin-top: 6px;
  color: var(--snow-2);
  font-size: 15px;
}

@media (min-width: 960px) {
  .pricing {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
  }
}

/* Questions */

.faq-layout {
  display: grid;
  gap: 24px;
}

.faq {
  border-top: 1px solid var(--snow-line);
  max-width: 720px;
}

.faq details {
  border-bottom: 1px solid var(--snow-line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 13px;
  font-size: 26px;
  font-weight: 400;
  color: var(--lamp);
  transition: transform 160ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 0 20px;
  color: var(--snow-2);
  max-width: 36em;
}

.faq details > div p + p {
  margin-top: 10px;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 64px;
  }
}

/* Closing: orders open, contact */

.closing {
  text-align: left;
  display: grid;
  gap: 18px;
  padding: 32px 24px;
  border-radius: 4px;
  box-shadow: var(--paper-shadow);
  max-width: 760px;
}

.closing h2 {
  font-size: 30px;
  line-height: 1.12;
}

.closing p {
  color: var(--ink-2);
}

.closing a {
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 960px) {
  .closing {
    padding: 48px 56px;
  }
  .closing h2 {
    font-size: 40px;
  }
}

/* Footer */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--snow-line);
  padding-top: 28px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 15px;
  color: var(--snow-2);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  text-decoration: none;
  padding: 8px 0;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer nav a:hover {
    text-decoration: underline;
    color: var(--snow);
  }
}

.site-footer .legal {
  margin-top: 14px;
}

/* Legal pages */

.legal-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.legal-page .sheet {
  border-radius: 4px;
  padding: 28px 22px 36px;
  max-width: 760px;
  box-shadow: var(--paper-shadow);
}

.legal-page h1 {
  font-size: 34px;
  line-height: 1.1;
}

.legal-page .updated {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.legal-page h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-top: 32px;
}

.legal-page p,
.legal-page ul {
  margin-top: 12px;
  max-width: 38em;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 6px;
}

@media (min-width: 700px) {
  .legal-page .sheet {
    padding: 48px 56px 56px;
  }
  .legal-page h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* The live order page, as an example: queue, then each step. */

.workshop {
  display: grid;
  gap: 28px;
}

.tracker {
  max-width: 420px;
  width: 100%;
  border-radius: 24px;
  padding: 22px 20px 12px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(242, 184, 75, 0.14), transparent 70%),
    linear-gradient(180deg, #27316a, var(--dusk));
  box-shadow: 0 0 0 1px rgba(242, 184, 75, 0.22) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.85);
}

.tracker-title {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tracker-eta {
  margin-top: 4px;
  font-size: 15px;
  color: var(--snow-2);
  font-variant-numeric: tabular-nums;
}

.bar {
  margin-top: 14px;
  height: 6px;
  border-radius: 999px;
  background: rgba(238, 241, 251, 0.12);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #e2a83c, var(--lamp));
  transition: width 700ms var(--ease-out);
}

.tracker-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tracker-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 0 0 16px;
}

/* The thread joining the steps. */
.tracker-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 28px;
  bottom: 2px;
  width: 2px;
  background: rgba(238, 241, 251, 0.12);
}

.tracker-steps li[data-state="done"]:not(:last-child)::after {
  background: rgba(63, 160, 124, 0.55);
}

.tracker-steps .dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(238, 241, 251, 0.22);
  display: grid;
  place-items: center;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.tracker-steps strong {
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--snow-2);
  overflow-wrap: anywhere;
}

.tracker-steps .sub {
  display: block;
  font-size: 14px;
  color: rgba(238, 241, 251, 0.5);
}

.tracker-steps li[data-state="done"] .dot {
  background: #2f8a68;
  border-color: #2f8a68;
}

.tracker-steps li[data-state="done"] .dot::before {
  content: "";
  width: 10px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

.tracker-steps li[data-state="done"] strong {
  color: var(--snow);
}

.tracker-steps li[data-state="active"] .dot {
  border-color: var(--lamp);
}

.tracker-steps li[data-state="active"] .dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lamp);
}

.tracker-steps li[data-state="active"] strong {
  color: var(--snow);
}

/* The pulse runs only while the example plays, then stops. */
.tracker.running li[data-state="active"] .dot::before {
  animation: pulse 900ms ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(0.7);
    opacity: 0.6;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

@media (min-width: 960px) {
  .workshop {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
    align-items: center;
  }
  .tracker {
    justify-self: end;
  }
}
