/* Layout: a paper "film-can label" card sits on a full-bleed strip of slow film-leader colour; edge print runs down the right side. */
:root {
  --paper: #F4F1EA;
  --paper-edge: #E4DED2;
  --ink: #2B2A28;
  --ink-soft: #5E5A54;
  --knob: #111110;
  --moss: #799f7b;
  --yolk: #EFB03F;
  --brick: #ac6f61;
  --slate: #7c96ab;
  --base: #1B1714;
  --error: #9E3B2A;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- film background ---------- */
.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--base);
}
.film canvas, .film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.film video { opacity: 0; transition: opacity 1.2s ease; }
.film.has-video video { opacity: 1; }
.film.has-video canvas.colour { opacity: 0; transition: opacity 1.2s ease; }

.edge-print {
  position: fixed;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: max(10px, env(safe-area-inset-right, 0px));
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(244, 241, 234, 0.55);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  padding-block: 48px;
  pointer-events: none;
  user-select: none;
}

/* ---------- page ---------- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(24px, 6vh, 72px);
  padding-left: max(16px, env(safe-area-inset-left, 0px), 7vw);
  padding-right: max(40px, env(safe-area-inset-right, 0px));
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: 0 1px 0 var(--paper-edge), 0 30px 80px -30px rgba(0, 0, 0, 0.55);
  position: relative;
  isolation: isolate;
}
/* paper tooth */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.16  0 0 0 0 0.15  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}

.logo { display: block; width: min(300px, 78%); height: auto; margin: -14px 0 -14px -20px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.punch {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.lede {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- teaser slot ---------- */
.teaser {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--base);
  border-radius: 2px;
  overflow: hidden;
}
.teaser video, .teaser iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.teaser .slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.8);
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(239,176,63,0.35) 46% 54%, transparent 54%),
    radial-gradient(120% 90% at 20% 30%, rgba(121,159,123,0.55), transparent 60%),
    radial-gradient(90% 90% at 85% 75%, rgba(172,111,97,0.6), transparent 60%),
    var(--base);
}
.teaser .slot span { background: rgba(27,23,20,0.55); padding: 6px 10px; }

/* ---------- form ---------- */
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field-row input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  color: var(--ink);
  background: #FFFDF8;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.field-row input::placeholder { color: #8C867D; }
.field-row button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 13px 20px;
  color: var(--paper);
  background: var(--knob);
  border: 1.5px solid var(--knob);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.field-row button:hover { background: var(--brick); border-color: var(--brick); }
.field-row button[disabled] { opacity: 0.6; cursor: progress; }
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 2px;
}
.note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.status { margin: 0; font-size: 15px; min-height: 1.5em; }
.status.ok { color: #3E5F42; font-weight: 600; }
.status.err { color: var(--error); font-weight: 600; }

/* ---------- footer ---------- */
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-top: 1px dashed var(--paper-edge);
  padding-top: 16px;
}
.card-foot a { color: inherit; text-underline-offset: 3px; }
.card-foot .addr { user-select: all; }

/* ---------- long text pages ---------- */
.prose h1 { font-size: clamp(34px, 5vw, 44px); }
.prose h2 { font-size: 18px; margin: 22px 0 6px; }
.prose p, .prose li { font-size: 16px; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose a { color: inherit; }

@media (max-width: 560px) {
  .page { align-items: flex-start; padding-top: 36vh; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .edge-print { display: none; }
  .card { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .film video { display: none; }
}
