/* Patton's Rescript — sales site
   Desk of olive drab, records on manila index cards, verdicts in rubber-stamp ink. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* desk */
  --od: #3a3d2c;
  --od-deep: #2a2c20;
  --od-line: #565a42;
  --on-od: #eee7d2;
  --on-od-muted: #c7c0a3;
  /* paper */
  --manila: #e6d8b3;
  --manila-deep: #d6c493;
  --card-rule: rgba(64, 92, 140, 0.16);
  --card-head-rule: rgba(162, 48, 42, 0.55);
  --ink: #23221c;
  --ink-soft: #4b473b;
  /* stamp inks — colour carries the verdict */
  --stamp-red: #a2302a;
  --stamp-red-deep: #842520;
  --stamp-blue: #2d4466;
  --stamp-amber: #8a5a12;

  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --typed: "Courier Prime", "Courier New", Courier, monospace;

  --measure: 66ch;
  --radius-paper: 3px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--od);
  color: var(--on-od);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
@media (max-width: 520px) {
  body { font-size: 18px; }
}

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

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

:focus-visible {
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--manila); color: var(--ink); padding: 8px 12px; z-index: 50;
}
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--od-line);
}
.brand {
  font-weight: 800;
  font-stretch: 78%;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.masthead-link {
  font-size: 16px;
  color: var(--on-od-muted);
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sec { padding: clamp(48px, 8vw, 88px) 0 0; }
.sec:last-of-type { padding-bottom: clamp(48px, 8vw, 88px); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 72%;
  line-height: 1.02;
  letter-spacing: 0.002em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(34px, 5.2vw, 52px); }
h3 { font-size: 26px; font-stretch: 80%; line-height: 1.12; }

p { margin: 0 0 1em; max-width: var(--measure); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 7vw, 84px);
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}
.title {
  font-size: clamp(52px, 9.4vw, 112px);
  font-stretch: 64%;
  font-weight: 850;
  line-height: 0.92;
  margin-bottom: 0.32em;
  color: #f5efdc;
}
.lede {
  font-size: clamp(20px, 2.1vw, 23px);
  color: var(--on-od);
  max-width: 34em;
}
.cta-row { margin: 28px 0 10px; }
.fineprint {
  font-size: 16px;
  color: var(--on-od-muted);
  max-width: 36em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--stamp-red);
  color: #fff8ea;
  font-family: var(--sans);
  font-weight: 750;
  font-stretch: 86%;
  font-size: 21px;
  line-height: 1.2;
  text-decoration: none;
  padding: 17px 28px 16px;
  border: 0;
  border-radius: var(--radius-paper);
  box-shadow: 0 3px 0 var(--stamp-red-deep);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
.btn, .sheet a.btn { color: #fff8ea; text-decoration: none; }
.btn:hover { background: #b2362f; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--stamp-red-deep); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--big { font-size: 22px; padding: 19px 32px 18px; }
.btn--small { font-size: 17px; padding: 11px 16px 10px; box-shadow: 0 2px 0 var(--stamp-red-deep); }
@media (max-width: 520px) {
  .cta-row .btn, .btn--big { width: 100%; text-align: center; }
}

/* ---------- index card ---------- */
.card {
  position: relative;
  isolation: isolate;
  background-color: var(--manila);
  color: var(--ink);
  border-radius: var(--radius-paper);
  padding: 18px 22px 22px;
  box-shadow: 0 2px 0 var(--manila-deep), 0 14px 28px -18px rgba(0, 0, 0, 0.6);
  font-family: var(--typed);
  font-size: 18px;
  line-height: 32px;
}
/* ruled index-card lines below a red header rule */
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 58px; bottom: 0;
  z-index: -1;
  border-top: 2px solid var(--card-head-rule);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, var(--card-rule) 30px, var(--card-rule) 31px, transparent 31px, transparent 32px);
  border-radius: 0 0 var(--radius-paper) var(--radius-paper);
  pointer-events: none;
}
.card p { margin: 0 0 0; max-width: none; }
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
  min-height: 40px;
  color: var(--ink);
}
.card-field .k { color: var(--ink-soft); }
.card-body { margin-top: 2px; }
.card-src {
  font-style: italic;
  font-size: 15px;
  line-height: 32px;
  color: var(--ink-soft);
}
.verdict .card-src { line-height: 1.45; margin-top: 4px; }

.card--hero {
  margin: 0;
  max-width: 470px;
  justify-self: end;
  transform: rotate(-1.2deg);
  padding-bottom: 58px;
}
.card-head span:last-child { white-space: nowrap; }
@media (max-width: 860px) {
  .card--hero { justify-self: start; transform: none; padding-bottom: 76px; }
}
@media (max-width: 420px) {
  .card--hero .card-head span:last-child { display: none; }
}

/* ---------- rubber stamps ---------- */
.stamp {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 850;
  font-stretch: 70%;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px 6px;
  border: 3px solid currentColor;
  border-radius: 4px;
  color: var(--stamp-red);
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
  opacity: 0.88;
  /* a little uneven ink */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 62%, rgba(0,0,0,0.78) 100%);
          mask-image: radial-gradient(circle at 30% 40%, #000 62%, rgba(0,0,0,0.78) 100%);
}
.stamp--blue { color: var(--stamp-blue); }
.stamp--amber { color: var(--stamp-amber); }
.stamp--red { color: var(--stamp-red); }
.card--hero .stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
}

/* the one moment of motion: stamps land when their card scrolls in */
@media (prefers-reduced-motion: no-preference) {
  .js .verdict .stamp { opacity: 0; transform: rotate(-7deg) scale(1.45); }
  .js .verdict.is-in .stamp {
    animation: stamp-land 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
  }
  @keyframes stamp-land {
    0%   { opacity: 0; transform: rotate(-7deg) scale(1.45); }
    70%  { opacity: 0.95; transform: rotate(-7deg) scale(0.96); }
    100% { opacity: 0.88; transform: rotate(-7deg) scale(1); }
  }
}

/* ---------- provenance line ---------- */
.provenance {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--od-line);
  color: var(--on-od-muted);
  font-size: 17px;
  max-width: 62em;
}
.provenance a { color: var(--on-od); }

/* ---------- paper sheet (long reading) ---------- */
.sheet {
  background: var(--manila);
  color: var(--ink);
  border-radius: var(--radius-paper);
  padding: clamp(26px, 5vw, 56px);
  box-shadow: 0 2px 0 var(--manila-deep), 0 22px 40px -28px rgba(0, 0, 0, 0.7);
}
.sheet h2 { color: var(--ink); }
.sheet a { color: var(--ink); }

/* ---------- sample facts ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 640px; }
}
.sec-intro { color: var(--on-od-muted); font-size: 19px; }

/* ---------- verdicts ---------- */
.verdicts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .verdicts { grid-template-columns: 1fr; max-width: 640px; }
}
.verdict {
  background: var(--manila);
  color: var(--ink);
  border-radius: var(--radius-paper);
  padding: 22px 22px 24px;
  box-shadow: 0 2px 0 var(--manila-deep), 0 14px 28px -18px rgba(0, 0, 0, 0.6);
}
.claim {
  font-family: var(--typed);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 16px !important;
}
.verdict .stamp { margin: 2px 0 18px 4px; }
.verdict p { font-size: 18px; max-width: none; }
.verdict .card-src { margin-bottom: 0; }

/* ---------- contents ---------- */
.parts {
  list-style: none;
  counter-reset: part;
  padding: 0;
  margin: 8px 0 0;
}
.parts li {
  counter-increment: part;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(35, 34, 28, 0.18);
}
.parts li:last-child { border-bottom: 1px solid rgba(35, 34, 28, 0.18); }
.parts li::before {
  content: "Part " counter(part);
  font-family: var(--typed);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-soft);
  padding-top: 4px;
}
.parts li.extra::before { content: "Plus"; }
.parts h3 { margin: 0 0 4px; color: var(--ink); }
.parts p { margin: 0; color: var(--ink-soft); font-size: 18px; }
.note { margin-top: 22px; font-size: 17px; color: var(--ink-soft); }

/* ---------- look inside ---------- */
.samples {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.samples figure {
  flex: 0 0 min(78vw, 340px);
  margin: 0;
  scroll-snap-align: start;
}
.samples img {
  border-radius: var(--radius-paper);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.7);
  background: var(--manila);
}

/* ---------- offer / signup ---------- */
.offer .sheet { max-width: 760px; }
.offer-format { font-family: var(--typed); font-size: 17px; color: var(--ink-soft); }
.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
}
.checks li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.18em;
  width: 9px;
  height: 17px;
  border: solid var(--stamp-blue);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 18px;
}
.price-main {
  font-weight: 850;
  font-stretch: 70%;
  font-size: 64px;
  line-height: 1;
}
.price-note { font-size: 17px; color: var(--ink-soft); max-width: 30em; }
.guarantee {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(35, 34, 28, 0.35);
  font-size: 17px;
  color: var(--ink-soft);
}
.offer .fineprint { color: var(--ink-soft); margin-top: 14px; }

/* form */
.field { margin: 22px 0 14px; }
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  max-width: 460px;
  font: inherit;
  font-size: 20px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fbf6e8;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius-paper);
}
.field input:focus-visible { outline-color: var(--stamp-blue); }
.consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 560px;
}
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--stamp-blue); }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-error { color: var(--stamp-red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-top: 1px solid var(--od-line);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--od-line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 21px;
  padding: 16px 40px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 28px;
  font-weight: 400;
  color: var(--on-od-muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--on-od); margin-bottom: 18px; }

/* ---------- footer ---------- */
.foot {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--od-deep);
  color: var(--on-od-muted);
  font-size: 16px;
  padding: 36px 0 120px;
}
.foot p { max-width: 70ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.foot nav a { color: var(--on-od); }

/* ---------- sticky buy bar ---------- */
.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--od-deep);
  border-top: 1px solid var(--od-line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.buybar-title {
  font-weight: 800;
  font-stretch: 74%;
  font-size: 19px;
  line-height: 1.15;
  color: var(--on-od);
}
@media (max-width: 560px) {
  .buybar-title { display: none; }
  .buybar .btn--small { width: 100%; text-align: center; font-size: 18px; padding: 13px 14px 12px; }
}

/* ---------- document pages (legal) ---------- */
.doc {
  max-width: 820px;
  margin: clamp(28px, 5vw, 56px) auto;
  padding: 0 var(--gutter);
}
.doc .sheet h1 { font-size: clamp(38px, 6vw, 56px); color: var(--ink); }
.doc .sheet h2 { font-size: 30px; margin-top: 1.4em; }
.doc .sheet p, .doc .sheet li { font-size: 18px; }
.doc .sheet ul { padding-left: 1.2em; max-width: var(--measure); }
.doc .updated { font-family: var(--typed); font-size: 16px; color: var(--ink-soft); }
.fill { background: rgba(162, 48, 42, 0.14); padding: 0 4px; border-radius: 2px; }
