/* ---------- Studio chrome: identical on every Spread Media Studios site ---------- */
.topbar {
  position: relative; z-index: 20;
  height: 38px;
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3.6vw, 48px) 0;
  background: #000; color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.topbar nav { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.topbar a { display: flex; align-items: center; height: 100%; text-decoration: none; color: #fff; }
.topbar .logo-svg { display: block; height: 17px; width: auto; color: #fff; }
.topbar .tb-text { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.topbar a:hover { opacity: .75; }

.studio-foot { margin-top: auto; }
.studio-foot .legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px 14px;
  padding: 10px clamp(16px, 3.6vw, 48px);
  font: 11px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--foot-ink, #000); background: var(--foot-bg, transparent);
}
.studio-foot .legal p { margin: 0; }
.studio-foot .legal nav { display: flex; gap: 14px; flex-wrap: wrap; }
.studio-foot .legal a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.studio-foot .bars { display: grid; grid-template-columns: repeat(8, 1fr); height: clamp(26px, 6vh, 48px); margin: 0; padding: 0; list-style: none; }
.studio-foot .bars li:nth-child(1) { background: #0b0b0b; } .studio-foot .bars li:nth-child(2) { background: #0000ff; }
.studio-foot .bars li:nth-child(3) { background: #00ffff; } .studio-foot .bars li:nth-child(4) { background: #00ff00; }
.studio-foot .bars li:nth-child(5) { background: #ff00ff; } .studio-foot .bars li:nth-child(6) { background: #ff0000; }
.studio-foot .bars li:nth-child(7) { background: #ffffff; } .studio-foot .bars li:nth-child(8) { background: #ffe100; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: #000; color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* My In-Laws Are Evil: a 1970s/80s humour-magazine cover. Cream newsprint, black masthead, red and yellow,
   fat italic serif headlines against tall condensed cover lines, a starburst, an issue box and a barcode. */

@font-face { font-family: "Fat Face"; src: url("../fonts/playfair-italic-var.woff") format("woff"); font-weight: 700 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Fat Face"; src: url("../fonts/playfair-var.woff") format("woff"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cover Sans"; src: url("../fonts/archivo-var.woff") format("woff"); font-weight: 400 900; font-stretch: 62% 100%; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf1d6;
  --ink: #141210;
  --red: #e2302a;
  --blood: #b5121b;
  --cream: #fbe6b4;
  --yellow: #ffd21f;
  --muted: #5d5547;
  --fat: "Fat Face", "Playfair Display", Georgia, "Times New Roman", serif;
  --cond: "Cover Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3.6vw, 44px);
  --foot-bg: var(--paper); --foot-ink: var(--ink);
  --burst: polygon(50.0% 0.0%, 52.5% 9.1%, 57.1% 0.5%, 58.5% 9.9%, 64.0% 2.0%, 64.1% 11.4%, 70.5% 4.6%, 69.4% 13.9%, 76.5% 8.2%, 74.1% 17.4%, 81.8% 12.8%, 78.3% 21.6%, 86.5% 18.2%, 81.9% 26.5%, 90.4% 24.4%, 84.8% 31.9%, 93.5% 31.1%, 86.9% 37.8%, 95.7% 38.3%, 88.4% 44.2%, 96.9% 45.8%, 89.0% 50.6%, 96.9% 54.2%, 88.4% 57.0%, 95.7% 61.7%, 86.9% 62.2%, 93.5% 68.9%, 84.8% 68.1%, 90.4% 75.6%, 81.9% 73.5%, 86.5% 81.8%, 78.3% 78.4%, 81.8% 87.2%, 74.1% 82.6%, 76.5% 91.8%, 69.4% 86.1%, 70.5% 95.4%, 64.1% 88.6%, 64.0% 98.0%, 58.5% 90.1%, 57.1% 99.5%, 52.5% 90.9%, 50.0% 100.0%, 47.5% 90.9%, 42.9% 99.5%, 41.5% 90.1%, 36.0% 98.0%, 35.9% 88.6%, 29.5% 95.4%, 30.6% 86.1%, 23.5% 91.8%, 25.9% 82.6%, 18.2% 87.2%, 21.7% 78.4%, 13.5% 81.8%, 18.1% 73.5%, 9.6% 75.6%, 15.2% 68.1%, 6.5% 68.9%, 13.1% 62.2%, 4.3% 61.7%, 11.6% 57.0%, 3.1% 54.2%, 11.0% 50.6%, 3.1% 45.8%, 11.6% 44.2%, 4.3% 38.3%, 13.1% 37.8%, 6.5% 31.1%, 15.2% 31.9%, 9.6% 24.4%, 18.1% 26.5%, 13.5% 18.2%, 21.7% 21.6%, 18.2% 12.8%, 25.9% 17.4%, 23.5% 8.2%, 30.6% 13.9%, 29.5% 4.6%, 35.9% 11.4%, 36.0% 2.0%, 41.5% 9.9%, 42.9% 0.5%, 47.5% 9.1%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--cond); font-stretch: 100%; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.cond { font-family: var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900; text-transform: uppercase; }

/* ---------- The cover ---------- */
.cover {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(14px, 2.4vw, 28px) var(--gutter) 0;
}
.dateline {
  display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap;
  font: 800 12px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 3px solid var(--ink); padding-bottom: 8px;
}
.dateline .issue { color: var(--red); }
.masthead {
  position: relative;
  background: var(--ink);
  padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  border-bottom: 8px solid var(--red);
}
.masthead img { display: block; width: min(100%, 720px); height: auto; }
.masthead .price {
  align-self: start; text-align: center;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
  padding: 8px 10px; transform: rotate(4deg);
  font: 900 13px/1.05 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase;
}
.masthead .price b { display: block; font-size: 30px; line-height: .9; }

.cover-body {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 250px);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(22px, 3vw, 36px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 3px solid var(--ink);
  background-image: radial-gradient(rgba(226,48,42,.16) 1.4px, transparent 1.6px);
  background-size: 9px 9px;
}
.lines { display: grid; gap: 18px; align-content: start; }
.line h2 {
  margin: 0;
  font-family: var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900;
  font-size: clamp(26px, 2.6vw, 34px); line-height: .9; text-transform: uppercase;
}
.line h2 .alias { display: block; font: italic 900 .62em/1 var(--fat); text-transform: none; color: var(--red); margin-top: 4px; }
.line p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.line:nth-child(even) h2 { color: var(--red); }
.line:nth-child(even) h2 .alias { color: var(--ink); }

.splash { position: relative; align-self: center; text-align: center; padding: 10px 0 20px; }
.splash .big {
  margin: 0;
  font-family: var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900;
  font-size: clamp(54px, 7.2vw, 108px); line-height: .84; text-transform: uppercase; letter-spacing: -.005em;
}
.splash .big .red { color: var(--red); }
.splash .kicker {
  margin: 14px 0 0;
  font: italic 900 clamp(34px, 4.4vw, 64px)/.95 var(--fat); color: var(--blood);
  text-shadow: 3px 3px 0 var(--yellow);
}
.splash .dek { margin: 18px auto 0; max-width: 44ch; font-size: 17px; line-height: 1.5; }

.burst {
  position: absolute; z-index: 2;
  width: clamp(120px, 12vw, 160px); aspect-ratio: 1;
  clip-path: var(--burst);
  background: var(--yellow);
  display: grid; place-items: center; text-align: center;
  font: 900 clamp(16px, 1.6vw, 21px)/.9 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase;
  transform: rotate(-12deg);
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.burst span { display: block; padding: 0 18%; }
.burst small { display: block; font-size: .62em; margin-top: 3px; }
.masthead .burst { right: clamp(110px, 16%, 220px); top: 50%; margin-top: calc(clamp(120px, 12vw, 160px) / -2); }
.nowrap { white-space: nowrap; }
.splash .big .red { white-space: nowrap; }

.plus { align-content: start; display: grid; gap: 14px; }
.plus .tag {
  justify-self: start;
  background: var(--red); color: #fff; padding: 4px 10px 3px;
  font: 900 26px/1 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; transform: rotate(-3deg);
}
.plus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plus li { border-top: 2px solid var(--ink); padding-top: 10px; font-size: 15px; line-height: 1.35; }
.plus li b { display: block; font: 900 21px/.95 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; margin-bottom: 4px; }
.barcode {
  margin-top: 6px; justify-self: end; width: 150px; background: #fff; border: 2px solid var(--ink); padding: 8px 8px 4px;
  font: 700 10px/1 var(--cond); letter-spacing: .2em; text-align: center;
}
.barcode i {
  display: block; height: 48px; margin-bottom: 5px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px);
}

/* ---------- Inside: how it works ---------- */
.inside { width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(36px, 6vh, 64px) var(--gutter) 0; }
.section-h {
  margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font: italic 900 clamp(34px, 4vw, 54px)/1 var(--fat);
}
.section-h small { font: 800 13px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: panel; }
.panels li {
  position: relative; background: #fff; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 16px 18px;
}
.panels li::before {
  counter-increment: panel; content: counter(panel);
  position: absolute; top: -16px; left: -12px; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 50%;
  font: 900 20px/1 var(--cond);
}
.panels h3 { margin: 4px 0 8px; font: 900 26px/.9 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; }
.panels p { margin: 0; font-size: 15px; line-height: 1.45; }
.panels .snap { background: var(--ink); color: var(--cream); }
.panels .snap h3 { color: var(--red); font-size: 40px; }

.format {
  margin: clamp(36px, 6vh, 56px) 0 0; background: var(--ink); color: var(--cream); overflow: hidden; white-space: nowrap;
  border-top: 6px solid var(--red); border-bottom: 6px solid var(--red);
  font: 900 clamp(20px, 2.4vw, 30px)/1 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .04em;
}
.format div { display: inline-block; padding: 14px 0; }
.format span { margin: 0 .8em; }
.format .dot { color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .format div { animation: ticker 38s linear infinite; }
  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

.cta { width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 7vh, 72px) var(--gutter) 56px; text-align: center; }
.cta h2 { margin: 0; font: italic 900 clamp(36px, 5vw, 70px)/.95 var(--fat); }
.cta p { margin: 14px auto 0; max-width: 56ch; font-size: 17px; line-height: 1.5; }
.sticker {
  display: inline-block; margin-top: 28px;
  background: var(--red); color: #fff; text-decoration: none;
  border: 4px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
  padding: 18px 30px 16px; transform: rotate(-2deg);
  font: 900 clamp(26px, 3vw, 38px)/1 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sticker:hover { transform: rotate(-2deg) translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink); }
.fineprint { margin-top: 18px !important; font-size: 13px !important; color: var(--muted); }
.sister { margin-top: 26px !important; font: italic 700 18px/1.4 var(--fat) !important; }

/* ---------- Submit page: the reader's mailbag coupon ---------- */
.mast-mini { background: var(--ink); padding: 14px var(--gutter); border-bottom: 6px solid var(--red); }
.mast-mini img { display: block; height: 70px; width: auto; }
.mailbag { width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vh, 52px) var(--gutter) 64px; }
.mailbag h1 { margin: 0; font: italic 900 clamp(38px, 5.4vw, 68px)/.95 var(--fat); }
.mailbag h1 .red { color: var(--red); }
.mailbag .dek { margin: 14px 0 26px; font-size: 18px; line-height: 1.5; max-width: 58ch; }
.coupon {
  position: relative; background: #fff;
  border: 3px dashed var(--ink); padding: clamp(20px, 3.4vw, 36px);
}
.coupon::before {
  content: "CUT HERE · CUT HERE · CUT HERE";
  position: absolute; top: -11px; left: 24px; background: var(--paper); padding: 0 8px;
  font: 800 11px/20px var(--cond); letter-spacing: .2em;
}
.coupon h2 { margin: 0 0 16px; font: 900 30px/.95 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.field { display: grid; gap: 6px; min-width: 0; margin-bottom: 14px; }
.grid2 .field { margin-bottom: 0; }
.field label { font: 800 12px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.field .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--cond); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: 11px 12px;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px;
}
.field textarea { min-height: 300px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: 4px 4px 0 rgba(226,48,42,.35); }
.count { justify-self: end; font: 700 12px/1 var(--cond); color: var(--muted); }
.count.short { color: var(--red); }
.warning {
  margin: 0 0 16px; padding: 12px 14px; background: var(--yellow); border: 3px solid var(--ink);
  font-size: 15px; line-height: 1.45;
}
.warning b { font: 900 18px/1 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; margin-right: 6px; }
.decl { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 12px; font-size: 15px; line-height: 1.45; }
.decl input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.decl .req { color: var(--red); font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.submit-row .sticker { margin-top: 0; cursor: pointer; }
.submit-row .sticker[disabled] { opacity: .6; cursor: progress; }
.status { margin: 0; font-weight: 800; font-size: 15px; }
.status.error { color: var(--blood); }
.done { position: relative; text-align: center; background: #fff; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 44px 22px 36px; }
.done .burst { position: relative; margin: 0 auto 16px; width: 170px; font-size: 24px; }
.done h2 { margin: 0; font: italic 900 clamp(32px, 4vw, 48px)/1 var(--fat); }
.done p { margin: 10px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.5; }
.done .ref { font: 900 22px/1.2 var(--cond); letter-spacing: .04em; }

/* Server-generated message pages + legal pages */
.msg, .doc { width: 100%; max-width: 780px; margin: 0 auto; padding: 48px var(--gutter) 64px; font-size: 17px; line-height: 1.6; }
.msg h1, .doc h1 { margin: 0 0 6px; font: italic 900 clamp(34px, 4.4vw, 54px)/1 var(--fat); }
.doc .meta { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 34px 0 8px; font: 900 24px/1 var(--cond); font-stretch: 62%; font-variation-settings: "wdth" 62; text-transform: uppercase; }
.doc .plain { margin: 6px 0 0; padding: 10px 14px; background: var(--yellow); border: 2px solid var(--ink); font-size: 15px; line-height: 1.5; }

@media (max-width: 980px) {
  .cover-body { grid-template-columns: 1fr 1fr; }
  .splash { grid-column: 1 / -1; order: -1; }
  .panels { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
}
@media (max-width: 620px) {
  .masthead { grid-template-columns: 1fr; }
  .masthead .price { position: absolute; right: 10px; bottom: -26px; z-index: 3; }
  .cover-body { grid-template-columns: 1fr; }
  .masthead .burst { right: 6px; top: auto; bottom: -46px; margin: 0; width: 96px; font-size: 13px; }
  .masthead .price { right: auto; left: 10px; }
  .cover-body { padding-top: 54px; }
  .panels { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .barcode { justify-self: start; }
  .mast-mini img { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .sticker { transition: none; } }
