/* It's Not the Messaging — site styles */
:root {
  --paper: #eef1f0;
  --paper-raised: #f7f9f8;
  --ink: #1e2a2f;
  --ink-soft: #4f5f65;
  --rule: #c7d0cf;
  --pencil: #2f5fd0;
  --pencil-soft: rgba(47, 95, 208, 0.12);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151d21;
    --paper-raised: #1b252a;
    --ink: #e3e9e8;
    --ink-soft: #9fb0b3;
    --rule: #33424a;
    --pencil: #7fa2ff;
    --pencil-soft: rgba(127, 162, 255, 0.14);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--pencil);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--pencil); }
a:focus-visible, button:focus-visible, input:focus-visible + label {
  outline: 2px solid var(--pencil);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
  font-family: var(--sans); font-size: .9rem;
}
.skip:focus { left: var(--gutter); }

/* Header */
.site-header {
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .75rem 2rem;
}
.wordmark {
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .78rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.35rem;
  font-family: var(--sans); font-size: .92rem;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--pencil);
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

/* Main column */
main {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) 4rem;
}
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.15em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-soft); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); margin: 3.25rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .5rem; }

.lede { font-size: 1.3rem; line-height: 1.55; color: var(--ink); }
.quiet { color: var(--ink-soft); }
.sans { font-family: var(--sans); }

/* Hero: the crossed-out vendor line */
.hero { margin-bottom: 3rem; }
.struck {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  padding: .1em 0;
}
.struck svg {
  position: absolute;
  left: -2%; top: 50%;
  width: 104%; height: 1.1em;
  transform: translateY(-48%);
  overflow: visible;
  pointer-events: none;
}
.struck path {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: strike 900ms 350ms cubic-bezier(.6,.05,.3,1) forwards;
}
@keyframes strike { to { stroke-dashoffset: 0; } }
.hero h1 { max-width: 15em; margin-bottom: 0; }

/* Symptoms */
.symptoms {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}
.symptoms li {
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
  font-style: italic;
}

.closing {
  max-width: 30rem;
  margin: 4rem 0 0;
  font-size: 1.45rem;
  line-height: 1.4;
  padding-left: 1.25rem;
  border-left: 3px solid var(--pencil);
}

/* Start-here links */
.starts { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.starts li { margin: 0 0 1.25rem; }
.starts a { font-weight: 600; }
.starts p { margin: .2rem 0 0; color: var(--ink-soft); }

/* Tables (pricing) */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.45;
}
th, td {
  text-align: left; vertical-align: top;
  padding: .85rem 1rem .85rem 0;
  border-bottom: 1px solid var(--rule);
}
th { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
td.price { white-space: nowrap; font-weight: 600; }
td strong { font-weight: 600; }

/* Self-check */
.check { max-width: 40rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: q; }
.check > li {
  counter-increment: q;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.check legend { padding: 0; font-size: 1.15rem; line-height: 1.45; }
.check legend::before {
  content: counter(q) ". ";
  color: var(--ink-soft);
}
.check fieldset { border: 0; margin: 0; padding: 0; }
.choices {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .8rem;
  font-family: var(--sans); font-size: .9rem;
}
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label {
  cursor: pointer;
  padding: .45rem .8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper-raised);
  transition: background-color .15s, color .15s, border-color .15s;
}
.choices input:checked + label {
  border-color: var(--pencil);
  color: var(--ink);
  background: var(--pencil-soft);
}

.button {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: .7rem 1.2rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--paper); }
.check-actions { margin: 2rem 0 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.check-actions .note { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }

.results { max-width: 40rem; margin-top: 3rem; }
.results[hidden] { display: none; }
.results .summary { font-size: 1.35rem; line-height: 1.45; }
.result-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.result-list li { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.result-list .q { font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin: 0 0 .3rem; }
.result-list .a { margin: 0; }
.result-list .read { margin: .4rem 0 0; font-family: var(--sans); font-size: .9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--ink-soft);
}
.site-footer .inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
}
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  .struck path { animation: none; stroke-dashoffset: 0; }
  .choices label { transition: none; }
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .lede { font-size: 1.15rem; }
  .closing { font-size: 1.25rem; }
}

/* On narrow screens the tagline wraps; strike each line instead of drawing one stroke */
@media (max-width: 40rem) {
  .struck svg { display: none; }
  .struck {
    text-decoration: line-through;
    text-decoration-color: var(--pencil);
    text-decoration-thickness: 2px;
  }
}

/* Pricing table becomes stacked rows on phones */
@media (max-width: 40rem) {
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
  td { display: block; border: 0; padding: .2rem 0; }
  td[data-label] { display: flex; gap: 1rem; justify-content: space-between; }
  td[data-label]::before { content: attr(data-label); color: var(--ink-soft); }
  td:first-child { padding-bottom: .6rem; }
}
@media (max-width: 40rem) {
  td[data-label] { text-align: right; }
  td[data-label]::before { flex-shrink: 0; text-align: left; }
}
