/* The same two-colour print as the cards of the app. A section takes a palette, and everything inside follows it.
   The site has a single look on purpose: a poster does not turn dark at night. */
@font-face {
  font-family: 'Anton';
  src: url('/assets/Anton-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --yellow: #ffdd00;
  --yellow-ink: #14110a;
  --vermilion: #ff4b12;
  --vermilion-ink: #1f0700;
  --ultramarine: #1a2bff;
  --ultramarine-ink: #ffc2dd;
  --lilac: #c7b3ff;
  --lilac-ink: #2a0e66;
  --white: #ffffff;
  --mark: #ffdd00;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

.p-yellow { --paper: var(--yellow); --ink: var(--yellow-ink); }
.p-vermilion { --paper: var(--vermilion); --ink: var(--vermilion-ink); }
.p-ultramarine { --paper: var(--ultramarine); --ink: var(--ultramarine-ink); }
.p-lilac { --paper: var(--lilac); --ink: var(--lilac-ink); }
.p-fir { --paper: #0e4a2a; --ink: #b8f34a; }
.p-paper { --paper: var(--white); --ink: var(--yellow-ink); }
.p-ink { --paper: var(--yellow-ink); --ink: var(--yellow); }

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--yellow-ink);
  font: 400 17px/1.5 var(--body);
}

.hero, .band, .bar, .footer, .pack, .coupon {
  background: var(--paper);
  color: var(--ink);
}

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

h1, h2, h3, .logo, .button, .coupon {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 1.02; text-wrap: balance; }

h1 { font-size: clamp(64px, 15vw, 196px); }
h1 span { display: block; font-size: 0.52em; line-height: 1.08; }
h2 { font-size: clamp(46px, 8.5vw, 104px); }

h3 { margin: 0 0 6px; font-size: 26px; line-height: 1.1; letter-spacing: 0.01em; }

a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.logo {
  display: inline-block;
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lead { max-width: 34em; margin: 20px 0 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; }

.button {
  display: inline-block;
  margin: 28px 0 0;
  padding: 14px 26px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.button--soon { background: transparent; color: var(--ink); border: 3px dashed var(--ink); }

/* Home */
/* The yellow of the print itself, so that the picture has no visible edge. */
.hero { --paper: #fed604; padding-top: 28px; overflow: hidden; }
.hero h1 { margin-top: clamp(28px, 6vw, 72px); }

.hero__art {
  display: block;
  width: min(100%, 1500px);
  height: auto;
  margin: clamp(28px, 5vw, 60px) auto 0;
}

/* The strip at the foot of a card in the app: three stubs under a dashed tear line. */
.coupon {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  margin-top: -2px;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px dashed var(--paper);
  outline: 4px solid var(--ink);
  outline-offset: -4px;
  font-size: clamp(24px, 5vw, 52px);
  text-align: center;
}

.coupon span { padding: 14px 6px 16px; }
.coupon span + span { border-left: 4px dashed var(--paper); }

.band { padding-block: clamp(56px, 9vw, 112px); }

.stubs, .promises, .packs, .shots { margin: 0; padding: 0; list-style: none; }

.stubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 56px);
  border-top: 4px dashed var(--ink);
}

.stub { min-width: 0; padding: 24px 24px 0 0; }
.stub + .stub { padding-left: 24px; border-left: 4px dashed var(--ink); }
.stub p { margin: 0; }

.shots {
  display: flex;
  gap: 18px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.shots li { flex: 0 0 auto; width: clamp(220px, 24vw, 300px); scroll-snap-align: center; }
.shots img { display: block; width: 100%; height: auto; }

.packs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(28px, 5vw, 48px);
}

.pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 20px;
}

.pack > div { min-width: 0; }
.pack h3 { font-size: clamp(26px, 3.4vw, 38px); }
.pack p { margin: 0; font-size: 15px; line-height: 1.35; }

.pack__stamp {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: currentColor;
  -webkit-mask: var(--stamp) center / contain no-repeat;
  mask: var(--stamp) center / contain no-repeat;
}

.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: clamp(28px, 5vw, 56px);
}

.promises li { min-width: 0; padding-top: 18px; border-top: 4px dashed var(--ink); }
.promises p { margin: 0; }

.closing { text-align: center; }

/* Support and legal pages */
.bar { padding: 16px var(--gutter); }

.text { max-width: 760px; padding-block: 48px 72px; overflow-wrap: anywhere; }
.text h1 { font-size: clamp(44px, 9vw, 76px); }
.text h2 { margin: 40px 0 10px; font-size: clamp(26px, 4.5vw, 34px); line-height: 1.12; }
.text__updated { margin: 12px 0 0; color: #5f5a4c; font-size: 15px; }
.text p { margin: 0 0 14px; }
.text ul { margin: 0 0 14px; padding-left: 22px; }
.text li { margin-bottom: 8px; }

.todo { background: var(--mark); padding: 0 3px; font-weight: 600; }

/* Footer */
.footer { padding-block: 36px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__note { margin-top: 18px; margin-bottom: 0; font-size: 14px; }

@media (max-width: 720px) {
  .stubs { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .stub, .stub + .stub { padding: 18px 0; border-left: 0; border-top: 4px dashed var(--ink); }
  .packs, .promises { grid-template-columns: minmax(0, 1fr); }
}
