@font-face {
  font-family: "Atkinson Next";
  src: url("/fonts/atkinson-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Mono";
  src: url("/fonts/atkinson-mono.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #eef3f1;
  --ink: #10343a;
  --muted: #45625f;
  --quiet: #5d7573;
  --rule: #c4d1cc;
  --paper: #ffffff;
  --mark: #f2c230;
  --mark-ink: #10343a;
  --stamp: #b5332a;
  --line: #10343a;
  --text: 1.125rem;
  --wrap: 38rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light dark;
  font-family: "Atkinson Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e2428;
    --ink: #e6efec;
    --muted: #b4c7c3;
    --quiet: #93aaa6;
    --rule: #2d4a4f;
    --paper: #13302f;
    --stamp: #f08a80;
    --line: #f2c230;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font-size: var(--text); line-height: 1.6; overflow-wrap: break-word; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 0 var(--gutter); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: none; padding-block: 1rem; }
.brand { font-weight: 700; text-decoration: none; }
.header-cta { font-weight: 600; }
.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding: 2rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0; }

/* Reading pages: legal and guide */
.prose { max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 3rem var(--gutter) 1rem; }
.prose h2 { margin-top: 2rem; }
.prose li { margin-bottom: 0.5rem; }

/* Landing */
.landing { padding-top: 3.5rem; }
.hero { margin-bottom: 3rem; }
.sub { font-size: 1.2rem; color: var(--muted); }
.caption { color: var(--muted); font-size: 1rem; }
.small { font-size: 0.95rem; color: var(--muted); }
.text-section { margin-top: 4rem; }
.plain-list { padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.5rem; }

/* Match board: the one memorable element */
.board-section { margin-top: 1rem; }
.board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(4rem, 12vw, 12rem);
  margin: 1.5rem var(--gutter) 0;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border-block: 1px solid var(--rule);
}
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.links path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-drawn .links path { animation: draw 1.1s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .is-drawn .links path { animation: none; } }

.col-head { color: var(--muted); font-weight: 600; font-size: 1rem; }
.col-list, .codes, .client-hits { list-style: none; margin: 0; padding: 0; }
.col-list > li { padding: 1rem 0; border-top: 1px solid var(--rule); }
.client-label, .notice-title { font-size: 1.05rem; font-weight: 700; }
.codes li { margin: 0.2rem 0; }
.code { font-family: "Atkinson Mono", ui-monospace, monospace; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; padding: 0.05em 0.3em; position: relative; }
.codes .code { margin-left: -0.3em; }
.code.is-hit { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: var(--mark-ink); border-radius: 0.15em 0.3em; }
.is-quiet { color: var(--quiet); }
.client-hits { display: none; }

@media (max-width: 47.99rem) {
  .board { grid-template-columns: minmax(0, 1fr); margin-inline: 0; padding-inline: var(--gutter); }
  .links, .board-notices { display: none; }
  .client-hits { display: block; margin-top: 0.75rem; padding-left: 0.9rem; border-left: 3px solid var(--mark); font-size: 1rem; }
  .client-hits li { margin-bottom: 0.4rem; }
}

/* Sample digest email */
.digest-section { margin-top: 4rem; }
.email { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); margin-top: 1rem; }
.email-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.email-head dt { color: var(--muted); }
.email-head dd { margin: 0; }
.email-body { margin: 0; padding-left: 1.3rem; }
.email-body li { margin-bottom: 1.25rem; }
.email-body p { margin: 0 0 0.3rem; }
.digest-notice { font-weight: 700; }
.fake-link { text-decoration: underline; text-underline-offset: 0.2em; }
.email-foot { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Order and signup */
.order { margin-top: 4rem; }
.offer { margin: 0 0 1rem; }
.price { font-size: 1.6rem; font-weight: 700; margin: 0.5rem 0; }
.buy, .signup button {
  display: inline-block; padding: 0.75rem 1.3rem; border: 0; border-radius: 6px;
  background: var(--ink); color: var(--ground); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.signup { margin-top: 1.5rem; }
.signup label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.row input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: 0.7rem; border: 1px solid var(--quiet); border-radius: 6px; font: inherit; background: var(--paper); color: var(--ink); }
.notice { padding: 0.75rem 1rem; border-left: 3px solid var(--ink); background: var(--paper); }
.notice.error { border-color: var(--stamp); }

/* Questions */
.faq { margin: 0; }
.faq-item { padding: 1rem 0; border-top: 1px solid var(--rule); }
.faq dt { font-weight: 700; margin-bottom: 0.4rem; }
.faq dd { margin: 0; }
