/* Reasonable Panic: monochrome, Substack-adjacent, one loud headline. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-display: swap;
  font-weight: 200 800;
  src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"), url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --graphite: #555555;
  --mist: #ededed;
  --smoke: #f6f6f6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

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

/* Shared column */
.masthead, .hero, .dial, .deal, .audit, .closer, .foot {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-stretch: 110%;
  font-size: 1rem; line-height: 1;
  padding: 0 1.4em; min-height: 52px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn-small { min-height: 40px; font-size: .9375rem; }
.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover { background: var(--ink); color: var(--paper); }

/* Masthead */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--display); font-weight: 800; font-stretch: 115%;
  font-size: 1.0625rem; letter-spacing: -0.01em;
}

/* Hero */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(64px, 10vw, 140px); }
.hero h1 {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(3rem, 12.2vw, 10rem);
  line-height: .86; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.hero-body {
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 34rem;
  margin-left: auto;
}
.lede { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; }

.signup { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 15rem; min-width: 0; min-height: 52px;
  padding: 0 16px;
  font: inherit; font-size: 1.0625rem;
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.signup input::placeholder { color: #8a8a8a; }
.signup .btn { flex: 0 0 auto; }
.fine { margin-top: 14px; font-size: .9375rem; color: var(--graphite); }

/* Section rules sit on the content column, not the gutter */
.dial, .deal, .closer {
  background: linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 2 * var(--gutter)) 2px no-repeat;
}

/* Panic dial */
.dial { padding-block: clamp(56px, 8vw, 96px); }
.dial-head { display: grid; gap: 12px; max-width: 40rem; }
.dial-head h2, .deal h2, .audit h2, .closer h2 {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.02; letter-spacing: -0.025em;
}
.dial-head p { color: var(--graphite); }

.gauge { margin-top: 40px; }
.gauge input[type="range"] {
  --fill: 0%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 40px; margin: 0;
  background: transparent; cursor: pointer;
}
.gauge input[type="range"]::-webkit-slider-runnable-track {
  height: 18px; border: 2px solid var(--ink); border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--paper) var(--fill));
}
.gauge input[type="range"]::-moz-range-track {
  height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.gauge input[type="range"]::-moz-range-progress {
  height: 14px; border-radius: 999px; background: var(--ink);
}
.gauge input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 40px; height: 40px; margin-top: -13px;
  background: var(--ink); border: 4px solid var(--paper);
  border-radius: 12px; box-shadow: 0 0 0 2px var(--ink);
}
.gauge input[type="range"]::-moz-range-thumb {
  width: 32px; height: 32px;
  background: var(--ink); border: 4px solid var(--paper);
  border-radius: 12px; box-shadow: 0 0 0 2px var(--ink);
}
.gauge input[type="range"]:focus-visible { outline: none; }
.gauge input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px #bdbdbd; }
.gauge input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px #bdbdbd; }

.gauge-stops {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}
.gauge-stops button {
  font-family: var(--display); font-stretch: 100%; font-weight: 500;
  font-size: .9375rem; color: var(--graphite);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.gauge-stops button:nth-child(1) { text-align: left; }
.gauge-stops button:nth-child(2) { text-align: center; }
.gauge-stops button:nth-child(3) { text-align: right; }
.gauge-stops button[aria-current="true"] { color: var(--ink); font-weight: 800; }

.readout {
  display: grid; gap: 8px;
  margin-top: 36px;
}
.readout-desc { max-width: 40rem; }
.readout-name {
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.25rem, 7vw, 5rem); line-height: .95; letter-spacing: -0.03em;
}
.readout-desc { font-size: 1.25rem; color: var(--graphite); }

/* Posts */
.posts {
  display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  margin-top: 48px;
}
.featured { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-content: start; }
.card img {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--mist);
}
.topic {
  display: block;
  font-family: var(--display); font-weight: 500; font-size: .875rem;
  color: var(--graphite); margin-top: 14px;
}
.card h3 {
  font-weight: 800; font-stretch: 105%;
  font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 4px; max-width: 26ch;
}
.also { border-left: 2px solid var(--ink); padding-left: clamp(20px, 3vw, 32px); }
.also-title { font-weight: 800; font-stretch: 110%; font-size: 1.0625rem; }
.also ul { list-style: none; margin: 8px 0 0; padding: 0; }
.also li { padding-block: 14px; border-bottom: 1px solid var(--mist); line-height: 1.35; }
.also li:last-child { border-bottom: 0; }
.also .topic { margin: 0 0 2px; }

/* How it works */
.deal { padding-block: clamp(56px, 8vw, 96px); }
.deal-grid {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}
.deal h3 {
  font-weight: 800; font-stretch: 108%;
  font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.deal p { color: #222; }

/* Paid audit */
.audit { padding-block: 0 clamp(56px, 8vw, 96px); }
.audit-inner {
  background: var(--ink); color: var(--paper);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 72px);
  display: grid; gap: 18px; justify-items: start;
}
.audit-inner > p { max-width: 38rem; }
.audit-price { font-size: 1.375rem; }
.audit-price strong { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 2rem; }
.audit .fine { color: #b5b5b5; margin: 0; }

/* Closer */
.closer {
  padding-block: clamp(64px, 9vw, 120px);
  display: grid; justify-items: start;
}
.closer .signup { width: 100%; max-width: 34rem; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
  padding-block: 32px 48px;
  background: linear-gradient(var(--mist), var(--mist)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .9375rem; color: var(--graphite);
}
.foot .brand { color: var(--ink); font-size: .9375rem; }
.foot nav { display: flex; gap: 20px; }
.foot nav a { font-family: var(--display); font-weight: 600; color: var(--ink); text-underline-offset: 3px; }
.foot p { flex-basis: 100%; }

/* Responsive */
@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr; }
  .deal-grid { grid-template-columns: 1fr; }
  .hero-body { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 1.125rem; }
  .brand span { font-size: 1rem; }
  .signup .btn { flex: 1 1 100%; }
  .gauge-stops button { font-size: .8125rem; }
}
