/* Unsubscribe: one-page landing. Plain CSS, mobile first. The whole page is the title card. */

:root {
  --ink-0: #141117;          /* title-card black */
  --paper: #efe6d6;          /* the show's paper ground */
  --paper-lo: #e7dcc9;
  --card: #fffaf3;
  --text: #2a1a19;           /* the characters' outline ink */
  --text-soft: #5d4a45;
  --coral: #E5564B;          /* Pepper + the underline */
  --coral-deep: #C23F36;     /* coral that passes contrast with white text */
  --coral-hi: #F2867C;       /* coral that passes contrast on the black */
  --cream-84: rgba(239, 230, 214, .84);
  --cream-62: rgba(239, 230, 214, .62);
  --line: rgba(42, 26, 25, 0.14);
  --gutter: 16px;
  --maxw: 1160px;
  --font-brand: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Baskerville, "Big Caslon", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  color: var(--paper);
  background-color: var(--ink-0);
  background-image:
    radial-gradient(ellipse 80% 38% at 50% 14%, rgba(176, 74, 60, .30) 0%, rgba(120, 52, 46, .15) 45%, rgba(80, 40, 40, 0) 72%),
    url("/assets/ink-wash-960.webp");
  background-size: 100% 100%, cover;
  background-position: center, center top;
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
@media (min-width: 700px) {
  body { background-image:
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(176, 74, 60, .30) 0%, rgba(120, 52, 46, .15) 45%, rgba(80, 40, 40, 0) 72%),
    url("/assets/ink-wash.webp"); }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--font-brand); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary {
  background: var(--coral-deep); color: #fff;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  box-shadow: 0 3px 0 #8f2c25;
}
.btn--primary:hover { background: #b23830; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f2c25; }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost { color: var(--text); border-color: var(--line); background: #fff; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .8rem; }

.pill {
  display: inline-flex; align-items: center; gap: .3em;
  background: var(--coral-deep); color: #fff;
  font: 700 .78rem/1 var(--font-ui); letter-spacing: .01em;
  padding: .42em .7em; border-radius: 999px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- the stage: everything on one screen ---------- */
.stage {
  flex: 1; display: flex; align-items: center;
  padding-block: max(16px, env(safe-area-inset-top)) 8px;
}
.stage__inner { display: grid; gap: clamp(14px, 2.6vh, 36px); }

.kicker {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  font: 500 .8rem/1.2 var(--font-brand); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-84);
}
.kicker .pill { letter-spacing: .01em; text-transform: none; }

.title { margin: 0 auto; width: 100%; max-width: 1040px; font-size: 1rem; }
.title__art { width: 100%; animation: ink-in .7s cubic-bezier(.2, .7, .3, 1) both; }
.title__line { width: 101%; margin: clamp(4px, 1vw, 12px) auto 0; overflow: visible; }
.title__line path {
  fill: none; stroke: var(--coral); stroke-width: 13; stroke-linecap: round; opacity: .92;
  stroke-dasharray: 1300; stroke-dashoffset: 0;
  animation: draw .6s cubic-bezier(.25, .8, .3, 1) .55s both;
}
@keyframes ink-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px) scale(1.02); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes draw {
  0%   { stroke-dashoffset: 1300; opacity: 0; }
  8%   { opacity: .92; }
  100% { stroke-dashoffset: 0; opacity: .92; }
}

.stage__grid { display: grid; gap: 18px; align-items: center; }

.copy { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.tagline {
  font: 600 clamp(1.45rem, 5.6vw, 2.15rem)/1.15 var(--font-brand);
  letter-spacing: -.005em; text-wrap: balance;
}
.logline {
  max-width: 30em;
  font: 400 .98rem/1.6 var(--font-serif); color: var(--cream-84);
  text-wrap: balance;
}
.ep {
  font: 600 .76rem/1.3 var(--font-brand); letter-spacing: .2em; text-transform: uppercase;
  color: var(--coral-hi);
}

.signup { display: flex; gap: 8px; width: 100%; max-width: 440px; margin-top: 6px; }
.signup__input {
  flex: 1; min-width: 0; min-height: 48px;
  font: 400 1rem/1.2 var(--font-ui); color: var(--text);
  background: var(--card); border: 2px solid transparent; border-radius: 999px; padding: 0 18px;
}
.signup__input::placeholder { color: #9a8d82; }
.signup__input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(229, 86, 75, .35); }
.signup .btn { flex: none; padding: 0 1.1rem; letter-spacing: .06em; }
.signup__note { max-width: 30em; font-size: .86rem; line-height: 1.5; color: var(--cream-62); text-wrap: balance; }
.signup__note.is-ok { color: var(--paper); }
.signup__note.is-err { color: #f3c98b; }

.cutout {
  order: -1; /* on phones the still sits right under the title */
  margin: 0 4px; background: var(--card); padding: 8px 8px 0; border-radius: 6px;
  transform: rotate(-1.2deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 18px 40px -14px rgba(0, 0, 0, .7);
}
.cutout img { width: 100%; border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-lo); }
.cutout figcaption { color: var(--text-soft); font: italic .85rem/1.4 var(--font-serif); padding: 9px 4px 11px; }

@media (min-width: 960px) {
  .stage { padding-block: max(24px, env(safe-area-inset-top)) 24px; }
  .stage__inner { gap: clamp(20px, 3.4vh, 36px); }
  .stage__grid { grid-template-columns: 5fr 6fr; gap: 56px; }
  .copy { justify-items: start; text-align: left; gap: 12px; }
  .logline { font-size: 1.04rem; }
  .cutout { order: 0; padding: 10px 10px 0; }
}
/* short phone screens (Safari with its bars showing): a smaller still so the email box stays on screen */
@media (max-width: 959px) and (max-height: 740px) {
  .cutout { width: min(100% - 8px, 300px); justify-self: center; }
  .cutout figcaption { font-size: .8rem; padding: 7px 2px 9px; }
}
/* short laptop screens: shrink the title so it all still fits */
@media (min-width: 960px) and (max-height: 820px) {
  .title { max-width: 860px; }
  .cutout { max-width: 520px; justify-self: end; }
}

/* ---------- footer ---------- */
.footer { padding-block: 0 max(16px, env(safe-area-inset-bottom)); }
.footer p { text-align: center; font: 400 .72rem/1.5 var(--font-ui); color: var(--cream-62); text-wrap: balance; }
.unsub {
  display: inline-block; padding: 6px 4px; /* keeps the tap target sane while the text stays tiny */
  font: 400 11px/1 var(--font-ui); color: #8d9097;
  text-decoration: underline; text-underline-offset: 2px;
}
.unsub:hover { color: var(--paper); }

/* ---------- the unsubscribe pop-up ---------- */
.popup {
  width: min(340px, calc(100vw - 32px));
  border: 0; border-radius: 16px; padding: 22px 20px 18px; text-align: center;
  background: #fff; color: var(--text); font-family: var(--font-ui);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.popup::backdrop { background: rgba(20, 17, 23, .6); }
.popup__h { font: 700 1.2rem/1.3 var(--font-ui); }
.popup__p { margin-top: 6px; color: var(--text-soft); font-size: .95rem; }
.popup__offer { margin-top: 10px; color: var(--coral-deep); font-weight: 700; font-size: 1.05rem; }
.popup__actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.popup__note { margin-top: 12px; min-height: 1.4em; font-size: .88rem; color: var(--coral-deep); }
.popup [data-claim]:disabled { opacity: 1; cursor: default; }

/* ---------- small pages (404, /unsubscribe, no-JS signup replies) ---------- */
.solo {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; text-align: center; padding: 40px var(--gutter);
  background: var(--ink-0) url("/assets/ink-wash-960.webp") center / cover; color: var(--paper);
}
.solo__card {
  width: min(380px, 100%); background: #fff; color: var(--text); border-radius: 16px;
  padding: 26px 22px 22px; font-family: var(--font-ui);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.solo__card h1 { font: 700 1.3rem/1.3 var(--font-ui); }
.solo__card p { margin-top: 8px; color: var(--text-soft); }
.solo__card .btn { margin-top: 18px; }
.solo__mark { width: 220px; margin: 0 auto 28px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .title__art, .title__line path { animation: none; }
  .title__line path { stroke-dashoffset: 0; opacity: .92; }
  .btn { transition: none; }
}
