/* Attribution Sciences — marketing page.
   Set like a long-copy press advertisement: a picture with a caption, a headline, then facts.
   Ink on paper, hairline rules, one accent for links and one red line in the picture.
   No scripts, no third-party requests; fonts are served from this folder. */

@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --paper: #fbfaf7;
  --paper-sunk: #f3f1ec;
  --ink: #15171a;
  --ink-2: #3a3f46;
  --ink-3: #636a74;
  --line: #d9d6cf;
  --line-strong: #15171a;
  --accent: #1f4e8c;
  --absent: #b3261e;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, p, ol, ul, figure, table, pre { margin: 0; }
p + p { margin-top: 0.95em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- masthead */
.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.35rem 1.1rem;
  font-family: var(--sans); font-size: 0.9rem;
}
.masthead::after { content: ""; flex-basis: 100%; border-bottom: 2px solid var(--line-strong); margin-top: 0.55rem; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); text-decoration: underline; }
.masthead nav .masthead-cta { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ---------------------------------------------------------------- the picture */
.picture { padding-top: clamp(1.5rem, 4vw, 3rem); }
.diagram { display: block; width: 100%; height: auto; }
.diagram-narrow { display: none; max-width: 24rem; margin-inline: auto; }
.picture figcaption {
  margin-top: 1.1rem; max-width: 46rem;
  font-style: italic; font-size: 0.98rem; line-height: 1.5; color: var(--ink-2);
}

.dg-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.dg-yours { fill: var(--paper-sunk); stroke-width: 2; }
.dg-paper { fill: var(--paper); }
.dg-yours + .dg-paper { fill: var(--paper); }
.dg-name { font-family: var(--sans); font-weight: 600; font-size: 15.5px; fill: var(--ink); }
.dg-note { font-family: var(--sans); font-size: 13px; fill: var(--ink-3); }
.dg-label { font-family: var(--serif); font-style: italic; font-size: 14px; fill: var(--ink-2); }
.dg-line { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.dg-head { fill: var(--ink); }
.dg-absent { fill: none; stroke: var(--absent); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.dg-absent-label { font-family: var(--sans); font-weight: 600; font-size: 14px; fill: var(--absent); }

/* ---------------------------------------------------------------- headline */
.head { padding-top: clamp(2rem, 5vw, 3.75rem); }
h1 {
  max-width: 17ch;
  font-weight: 600; font-size: clamp(2.5rem, 7.2vw, 5.25rem); line-height: 1.02; letter-spacing: -0.028em;
  text-wrap: balance;
}
.deck {
  margin-top: clamp(1.25rem, 2.5vw, 2rem); max-width: 44rem;
  font-size: clamp(1.2rem, 1.9vw, 1.42rem); line-height: 1.46; color: var(--ink-2);
}

/* ---------------------------------------------------------------- the argument */
.argument {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.copy { max-width: 40rem; }
.opening::first-letter {
  float: left; margin: 0.06em 0.09em 0 0;
  font-weight: 600; font-size: 4.05em; line-height: 0.78;
}

.specimen { align-self: start; border-top: 2px solid var(--line-strong); padding-top: 0.8rem; }
.specimen-title { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; text-align: left; }
.specimen pre {
  margin-top: 0.7rem; padding: 0.9rem 1rem; overflow-x: auto;
  background: var(--paper-sunk); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.55; color: var(--ink-2);
}
.specimen pre b { font-weight: 400; color: var(--ink); background: linear-gradient(transparent 62%, #e6dfc9 62%); }
.caption, .row-specimen figcaption { font-style: italic; font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); }
.specimen .caption { margin-top: 0.7rem; }

/* ---------------------------------------------------------------- shared section heading */
h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -0.018em; }
.particulars, .compare, .limits, .audience, .ask, .row-specimen { padding-top: clamp(3.25rem, 7vw, 5.5rem); }
.particulars > h2, .compare > h2, .audience > h2 { padding-top: 1rem; border-top: 2px solid var(--line-strong); }
.section-intro { margin-top: 0.9rem; max-width: 44rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- particulars */
.facts {
  list-style: none; padding: 0; margin-top: 2.25rem; counter-reset: fact;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.1rem 4.5rem;
}
.facts li { counter-increment: fact; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-content: start; }
.facts li::before {
  content: counter(fact); grid-row: 1 / span 2;
  font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--ink-3); font-variant-numeric: lining-nums;
}
.facts h3 { font-weight: 600; font-size: 1.14rem; line-height: 1.3; letter-spacing: -0.005em; }
.facts p { margin-top: 0.4rem; color: var(--ink-2); }
.facts em { font-style: italic; }

/* ---------------------------------------------------------------- a stored row */
.row-specimen-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem; align-items: start;
  border-top: 2px solid var(--line-strong); padding-top: 0.9rem;
}
.kv { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.82rem; line-height: 1.5; }
.kv caption { caption-side: top; padding-bottom: 0.7rem; }
.kv th, .kv td { padding: 0.34rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 1px solid var(--line); }
.kv th { width: 12.5rem; padding-right: 1rem; color: var(--ink-3); white-space: nowrap; }
.kv td { color: var(--ink); overflow-wrap: anywhere; }
.row-specimen figcaption { max-width: 26rem; }

/* ---------------------------------------------------------------- comparison */
.comparison { width: 100%; margin-top: 2rem; border-collapse: collapse; font-size: 0.96rem; line-height: 1.42; table-layout: fixed; }
.comparison thead th {
  padding: 0 1.1rem 0.8rem 0; text-align: left; vertical-align: bottom;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem; line-height: 1.25;
  border-bottom: 2px solid var(--line-strong);
}
.comparison thead small { display: block; margin-top: 0.3rem; font-weight: 400; font-size: 0.8rem; line-height: 1.3; color: var(--ink-3); }
.comparison thead th:first-child { width: 19%; }
.comparison tbody th, .comparison tbody td { padding: 0.85rem 1.1rem 0.85rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison tbody th { font-weight: 600; }
.comparison tbody td { color: var(--ink-2); }
.comparison .ours { padding-left: 1.1rem; padding-right: 1rem; background: var(--paper-sunk); color: var(--ink); }
.comparison thead .ours { padding-top: 0.9rem; border-top: 2px solid var(--line-strong); font-size: 1rem; }
.comparison tbody td.ours { font-weight: 600; }

/* ---------------------------------------------------------------- candor */
.limits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem; border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.limits-list { list-style: none; padding: 0; margin: 0; }
.limits-list li { padding: 0.8rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.limits-list li:first-child { border-top: 0; padding-top: 0.2rem; }
.limits-list strong { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- who it is for */
.audience-copy { margin-top: 1.25rem; max-width: 40rem; }
.audience-copy p:first-child { font-size: 1.14rem; line-height: 1.5; }
.audience-copy p + p { color: var(--ink-2); }

/* ---------------------------------------------------------------- the coupon */
.coupon { border: 2px dashed var(--ink); padding: clamp(1.4rem, 4vw, 2.75rem); max-width: 50rem; }
.coupon p { margin-top: 0.9rem; max-width: 40rem; }
.coupon p + p { color: var(--ink-2); }
.coupon-action { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 1.6rem !important; }
.button {
  display: inline-block; padding: 0.82rem 1.35rem;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
}
.button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.coupon-address { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- colophon */
.colophon {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 2rem;
  margin-top: clamp(3.5rem, 8vw, 6rem); padding-block: 1.1rem 2.5rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-3);
}
.colophon.wrap { border-top: 0; }
.colophon.wrap::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--line); margin-bottom: 0.8rem; }
.colophon p + p { margin-top: 0; }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 56rem) {
  .argument { grid-template-columns: minmax(0, 1fr) 21.5rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-specimen-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .row-specimen figcaption { padding-top: 2.3rem; }
  .limits-grid { grid-template-columns: 19rem minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 43.99rem) {
  .diagram-wide { display: none; }
  .diagram-narrow { display: block; }
  .masthead nav a:not(.masthead-cta) { display: none; }
  .kv th { width: 9.5rem; }
}

/* The comparison becomes one block per question, each answer labelled with whose it is. */
@media (max-width: 55.99rem) {
  .comparison, .comparison tbody, .comparison tr, .comparison th, .comparison td { display: block; width: auto; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison tbody tr { padding: 1.1rem 0 0.4rem; border-top: 2px solid var(--line-strong); }
  .comparison tbody th { padding: 0 0 0.6rem; border: 0; font-size: 1.08rem; }
  .comparison tbody td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 1rem; padding: 0.55rem 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .comparison tbody td::before { content: attr(data-col); font-family: var(--sans); font-size: 0.82rem; line-height: 1.5; color: var(--ink-3); }
  .comparison tbody td.ours { padding: 0.7rem 0.75rem; margin: 0.2rem -0.75rem 0; }
  .comparison tbody td.ours::before { color: var(--ink); font-weight: 600; }
}

@media print {
  body { background: #fff; font-size: 10.5pt; }
  .masthead nav, .button { display: none; }
  .facts li, .comparison tr, .coupon { break-inside: avoid; }
}
