/* Landing page and legal notice. Other public pages keep site.css. */

@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/Newsreader-Variable-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Cream paper, ink from the logo, evening brown from the store screenshots. */
  --paper: #f6efe4;
  --ink: #1f1b18;
  --muted: #6b615a;
  --line: rgba(31, 27, 24, .14);
  --line-strong: rgba(31, 27, 24, .32);
  --evening: #2a201b;
  --evening-text: #f5f1ee;
  --evening-muted: #cfc7c4;
  /* The red dot of the logo, a little darker so white text on it stays readable. */
  --shutter: #d03f22;
  --shutter-dark: #b1341b;
  --print: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1120px, calc(100% - 32px));
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

main { overflow-x: clip; }

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.5rem + 4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}

h2 {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}

p { margin: 0; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font: 600 .95rem var(--sans);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header and footer */

.top, .foot {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top { padding: 18px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.01em;
}
.brand img { border-radius: 9px; }

.top nav, .foot nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font: 600 .95rem/1.2 var(--sans);
}

.top nav a, .foot nav a {
  text-decoration: none;
  text-underline-offset: 4px;
}
.top nav a:hover, .foot nav a:hover { text-decoration: underline; }

.languages { display: inline-flex; gap: 10px; }
.languages a { color: var(--muted); }
.languages a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.foot {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  font: .9rem/1.4 var(--sans);
  color: var(--muted);
}
.foot .brand { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.foot .brand img { border-radius: 7px; }
.foot nav { font-weight: 500; flex-wrap: wrap; gap: 8px 22px; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
}

.button.primary {
  background: var(--shutter);
  color: #fff;
}
.button.primary:hover { background: var(--shutter-dark); }

.button.quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.button.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Hero */

.hero {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 56px) 0 clamp(72px, 9vw, 128px);
}

.hero h1 span { display: block; }

.lead {
  max-width: 34ch;
  margin-top: 28px;
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.375rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.occasions {
  max-width: 40ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
}

.stores {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}
.stores p { font: 500 .9rem/1.4 var(--sans); color: var(--muted); }

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font: 600 .9rem/1 var(--sans);
  text-decoration: none;
}
.store:hover { background: #3a332e; }

/* The prints lie around the phone like photos at the end of the night. */

.hero-visual {
  position: relative;
  aspect-ratio: 10 / 11;
  width: 100%;
  max-width: 540px;
  justify-self: end;
}

.phone {
  padding: 3.4%;
  border-radius: 13% / 6%;
  background: #171311;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 2px 4px rgba(31, 27, 24, .18),
    0 30px 60px -24px rgba(31, 27, 24, .55);
}
.phone img, .phone .screen { border-radius: 10% / 4.6%; }
.phone .screen { position: relative; overflow: hidden; }
.phone .screen img { border-radius: 0; }

.hero-phone {
  position: absolute;
  z-index: 2;
  width: 45%;
  left: 43%;
  top: 2%;
}

.print {
  position: absolute;
  padding: 2.4%;
  background: var(--print);
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(31, 27, 24, .14),
    0 18px 34px -16px rgba(31, 27, 24, .45);
  --turn: 0deg;
  transform: rotate(var(--turn));
  animation: settle 900ms cubic-bezier(.2, .75, .25, 1) both;
}

.print-toast {
  --turn: -7deg;
  z-index: 1;
  width: 58%;
  left: 0;
  top: 12%;
  padding: 1.6%;
  animation-delay: 120ms;
}

.print-cheers {
  --turn: 6deg;
  z-index: 1;
  width: 30%;
  right: -2%;
  top: 30%;
  padding: 2.4%;
  animation-delay: 260ms;
}

.print-dance {
  --turn: 4deg;
  z-index: 3;
  width: 54%;
  left: 7%;
  bottom: 4%;
  padding: 1.6%;
  animation-delay: 400ms;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(-36px) rotate(calc(var(--turn) - 9deg)) scale(1.05);
  }
  to {
    opacity: 1;
    transform: rotate(var(--turn));
  }
}

/* Once a print has landed, its photo develops like an instant picture. */
.print img { animation: develop 2600ms ease-out both; }
.print-toast img { animation-delay: 700ms; }
.print-cheers img { animation-delay: 850ms; }
.print-dance img { animation-delay: 1000ms; }

@keyframes develop {
  from { filter: grayscale(1) sepia(.4) brightness(1.7) contrast(.5); }
  55% { filter: grayscale(.35) sepia(.25) brightness(1.15) contrast(.85); }
  to { filter: grayscale(0) sepia(0) brightness(1) contrast(1); }
}

/* A guest photo landing on the first tile of the hero gallery (landing.js).
   Position and size match the first tile of the gallery screenshot. */
.live-photo {
  position: absolute;
  z-index: 4;
  left: 48%;
  top: 42%;
  width: 10.7%;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12%;
  background: #171311;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .55);
  opacity: 0;
}
.live-photo img { width: 100%; height: 100%; object-fit: cover; }
.live-photo span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  color: #fff;
  /* As small as the names on the screenshot's own tiles. */
  font: 600 6px/1 var(--sans);
  font-size: 9cqi;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75);
}
.live-photo.is-landing {
  opacity: 1;
  animation: land 950ms cubic-bezier(.2, .8, .25, 1) both;
}

@keyframes land {
  from { opacity: 0; transform: translate(-35%, -170%) rotate(-14deg) scale(1.6); }
  55% { opacity: 1; transform: translate(0, 5%) rotate(2deg) scale(.97); }
  78% { transform: translate(0, -2%) rotate(-1deg) scale(1.01); }
  to { opacity: 1; transform: none; }
}

/* Steps */

.film-counter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 22px;
  padding: 9px 16px 8px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

.film-digits {
  display: flex;
  align-items: baseline;
  gap: 10px;
  overflow: hidden;
}
.film-digits span { font-size: .85rem; opacity: .45; }
.film-digits b { font-size: 1.4rem; line-height: 1.1; }
.film-digits.is-ticking > * { animation: roll 420ms cubic-bezier(.2, .8, .2, 1); }

@keyframes roll {
  from { transform: translateX(16px); opacity: .15; }
}

.film-label {
  margin-top: 1px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}

.steps {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}

.steps ol {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  font-size: 4rem;
  font-weight: 250;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.steps h3 { margin-bottom: 10px; }
.steps p { max-width: 36ch; }

/* App band */

.app-band {
  background: var(--evening);
  color: var(--evening-text);
  padding: clamp(64px, 8vw, 112px) 0;
}

.band-inner {
  width: var(--wrap);
  margin: 0 auto;
}

.screens {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.screens .phone {
  width: min(100%, 248px);
  margin-bottom: 30px;
  background: #0d0b0a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09) inset,
    0 30px 60px -28px rgba(0, 0, 0, .7);
}

.screens h3 { margin-bottom: 8px; }
.screens p { max-width: 32ch; color: var(--evening-muted); }

/* The blurred gallery sharpens with a flash, started by landing.js. */
.reveal-phone .revealed,
.reveal-phone .flash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reveal-phone .revealed {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.04);
  transition: opacity 900ms ease 150ms, filter 1100ms ease 150ms, transform 1100ms ease 150ms;
}
.reveal-phone.is-revealed .revealed { opacity: 1; filter: blur(0); transform: none; }
.reveal-phone .flash { background: #fff; opacity: 0; pointer-events: none; }
.reveal-phone.is-revealed .flash { animation: flash 700ms ease-out; }

@keyframes flash {
  15% { opacity: .85; }
  to { opacity: 0; }
}

/* Sections slide in as they come into view (landing.js adds the classes). */
.motion .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 800ms ease, translate 800ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.motion .reveal.is-visible { opacity: 1; translate: 0 0; }

/* Two-column sections: heading left, content right */

.split {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 32px clamp(32px, 6vw, 96px);
  padding: clamp(72px, 9vw, 120px) 0 0;
}

.section-lead {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--muted);
}

.host-list { margin: 0; }

.host-list div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.host-list div:last-child { border-bottom: 1px solid var(--line); }

.host-list dt {
  font: 600 .95rem/1.7 var(--sans);
  padding-top: .1em;
}
.host-list dd { margin: 0; }

/* Packages as a price list */

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.price-list li {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.package-label { display: grid; gap: 2px; }
.package-name { font-size: 1.6rem; line-height: 1.15; }
.package-guests { font: 500 .95rem/1.4 var(--sans); color: var(--muted); }

.leader {
  align-self: end;
  margin-bottom: .55em;
  border-bottom: 2px dotted var(--line-strong);
}

.package-price {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.facts {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.facts li {
  position: relative;
  padding-left: 22px;
  max-width: 52ch;
}

/* The red dot from the logo. */
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shutter);
}

.fine-print {
  margin-top: 18px;
  max-width: 60ch;
  font: .85rem/1.5 var(--sans);
  color: var(--muted);
}

/* Questions */

.questions { border-top: 1px solid var(--line); }

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

.questions summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.3rem;
  line-height: 1.3;
}
.questions summary::-webkit-details-marker { display: none; }

.questions summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  font: 300 1.6rem/1 var(--sans);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}
.questions details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.questions details p {
  max-width: 60ch;
  padding: 0 44px 22px 0;
}

/* Contact */

.contact {
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 136px) 0 clamp(72px, 9vw, 120px);
}

.contact p {
  margin-top: 16px;
  font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
}

.contact a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

/* Legal notice */

.legal {
  width: var(--wrap);
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
  overflow-x: visible;
}

.legal h1 {
  margin-bottom: 36px;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
}

.legal h2 {
  margin: 32px 0 8px;
  font: 600 1rem/1.4 var(--sans);
  letter-spacing: 0;
}

/* Smaller screens */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-self: center;
    max-width: 460px;
    margin-top: 8px;
  }

  .split { grid-template-columns: minmax(0, 1fr); }
  .section-lead { max-width: 46ch; }
}

@media (max-width: 760px) {
  .nav-anchor { display: none; }
  .top nav { gap: 16px; }

  .steps ol { grid-template-columns: minmax(0, 1fr); }

  /* The phones sit side by side and scroll sideways. */
  .screens {
    display: flex;
    gap: 20px;
    margin-inline: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
  }
  .screens li {
    flex: 0 0 72%;
    max-width: 280px;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }

  .actions .button { flex: 1 1 100%; }

  .hero-visual { aspect-ratio: 10 / 12; }
  .hero-phone { width: 50%; left: 40%; top: 3%; }
  .print-toast { width: 60%; top: 10%; }
  .print-dance { width: 58%; left: 2%; bottom: 3%; }
  .print-cheers { width: 32%; right: -4%; }
  .live-photo { left: 45.2%; top: 44.1%; width: 12.1%; }

  .host-list div { grid-template-columns: minmax(0, 1fr); }

  .price-list li { gap: 10px; }
  .package-name { font-size: 1.4rem; }

  .questions summary { font-size: 1.175rem; }

  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .print, .print img { animation: none; }
  .questions summary::after { transition: none; }
}
