/* PAGECRUX — ivory paper, near-black ink, one rust accent.
   Fraunces and Atkinson Hyperlegible are self-hosted under the SIL Open Font License.
   License texts: ../fonts/OFL-fraunces.txt and ../fonts/OFL-atkinson-hyperlegible.txt */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4efe6;
  --paper-2: #fbf7f0;
  --ink: #1c1916;
  --ink-soft: #3c362f;
  --muted: #5c564c;
  --line: #d5cdc0;
  --rust: #8d3a22;
  --rust-deep: #6f2c18;
  --rust-press: #541f10;
  --pass: #1b4634;
  --pass-bg: #e5efe8;
  --partial: #6d4a12;
  --partial-bg: #f3ead6;
  --fail: #6f2c18;
  --fail-bg: #f6e6df;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --header-offset: 5.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 0% -10%, rgba(141, 58, 34, 0.06), transparent 46%),
    radial-gradient(ellipse at 100% 0%, rgba(28, 25, 22, 0.035), transparent 42%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
.wordmark,
.price-amount,
.step-num,
.score-num {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.35rem, 5vw, 3.7rem);
}

.display {
  max-width: 11em;
  font-size: clamp(2.6rem, 5.6vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

h3,
h4 {
  margin-bottom: 0.4rem;
  font-size: 1.28rem;
}

h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p,
li,
dd {
  overflow-wrap: break-word;
}

p {
  margin-bottom: 0.85rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--rust-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--rust-deep);
  outline-offset: 3px;
}

.button-primary:focus-visible {
  outline-color: var(--ink);
}

::selection {
  background: #efd3c8;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.measure {
  max-width: 40rem;
}

.measure-wide {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--rust-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.5;
}

.fine,
.muted {
  color: var(--muted);
}

.fine {
  font-size: 0.95rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section {
  padding: 4.25rem 0;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-heading h2,
.section-heading p:last-child {
  margin-bottom: 0;
}

.band {
  background: rgba(251, 247, 240, 0.78);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  gap: 1.75rem;
}

.two {
  display: grid;
  gap: 1rem;
}

.panel,
.specimen-card,
.order-card,
.report {
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.panel,
.specimen-card {
  padding: 1.2rem 1.15rem 1.3rem;
}

.order-card {
  border-top: 4px solid var(--rust);
  padding: 1.4rem 1.25rem 1.35rem;
  align-self: start;
}

.order-card .button {
  width: 100%;
}

.order-card .fine {
  margin-top: 0.9rem;
}

.block-title,
.spaced {
  margin-top: 1.35rem;
}

.block-title {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--rust-deep);
  border-color: var(--rust-deep);
  color: #fbf7f0;
}

.button-primary:hover {
  background: var(--rust-press);
  border-color: var(--rust-press);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.button:disabled,
.button-disabled {
  background: transparent;
  color: var(--ink);
  border-color: var(--muted);
  cursor: not-allowed;
}

.button:disabled:hover,
.button-disabled:hover {
  background: transparent;
  color: var(--ink);
}

.draft-banner {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rust-deep);
  background: var(--fail-bg);
}

.button-small {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  font-size: 0.95rem;
}

button {
  font: inherit;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
}

.price-amount {
  font-size: 3.15rem;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
  line-height: 0.9;
}

.price-note {
  color: var(--ink-soft);
  max-width: 28rem;
  line-height: 1.4;
}

.hero {
  padding: 2.4rem 0 1rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.trust {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}

.trust li {
  margin: 0;
  color: var(--ink-soft);
}

.specimen-kicker,
.sample-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.mark-label,
.sample-flag strong {
  border: 1.5px solid var(--rust-deep);
  color: var(--rust-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.18rem 0.42rem;
  font-family: var(--sans);
}

.specimen-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.specimen {
  list-style: none;
  margin: 0.9rem 0;
  padding: 0;
}

.specimen li {
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.specimen li span:first-child {
  font-weight: 700;
}

.checks {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.checks li {
  background: var(--paper-2);
  padding: 1.1rem 1.05rem 1.15rem;
}

.checks h3 {
  font-size: 1.22rem;
  margin-bottom: 0.35rem;
}

.checks p {
  margin: 0;
  color: var(--ink-soft);
}

.steps {
  list-style: none;
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
}

.steps li,
.steps article {
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
}

.step-num {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--rust-deep);
  font-size: 1.45rem;
  font-variant-numeric: lining-nums;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li + li {
  margin-top: 0.45rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover .wordmark {
  color: var(--rust-deep);
}

.mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
  color: var(--ink);
}

.wordmark {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.tagline,
.footer-tag {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-nav {
  display: block;
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0 1rem;
}

html.js .nav-toggle {
  display: inline-flex;
}

html.js .site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
}

html.js .site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  width: min(100% - 2.5rem, var(--wrap));
  margin: 0 auto;
  padding: 0;
}

.site-nav li a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.site-nav li a:hover,
.site-nav a[aria-current="page"] {
  color: var(--rust-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav .button {
  width: min(100% - 2.5rem, var(--wrap));
  margin: 0.85rem auto 0;
}

.page-intro {
  padding: 3rem 0 0.25rem;
}

.prose > * + * {
  margin-top: 0.9rem;
}

.prose h2 {
  margin-top: 2.3rem;
}

.prose h3 {
  margin-top: 1.45rem;
}

.prose ul,
.prose ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.facts,
.report-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.facts div,
.report-meta div {
  display: grid;
  gap: 0.12rem;
}

.facts dt,
.report-meta dt {
  font-weight: 700;
}

.report-meta dt {
  color: var(--muted);
  font-weight: 400;
}

.facts dd,
.report-meta dd {
  margin: 0;
}

address {
  font-style: normal;
}

.address-placeholder {
  display: inline-block;
  margin: 0.15rem 0 0;
  padding: 0.7rem 0.8rem;
  border: 1px dashed var(--rust-deep);
  background: var(--fail-bg);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-top: 1.25rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.hint {
  font-weight: 400;
  color: var(--ink-soft);
}

input,
textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #b7ad9e;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}

::placeholder {
  color: #5c564c;
  opacity: 1;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust-deep);
  outline-offset: 1px;
  border-color: var(--rust-deep);
}

.form-error {
  margin: 0;
  color: var(--rust-deep);
  font-weight: 700;
}

.confirmation {
  display: grid;
  gap: 0.7rem;
  max-width: 40rem;
  margin-top: 1rem;
  padding: 1rem 1rem 1.05rem 1.05rem;
  border-left: 4px solid var(--rust);
  background: var(--paper-2);
}

.confirmation p {
  margin: 0;
}

pre.composed {
  margin: 0;
  padding: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.45;
}

.report {
  padding: 1.2rem 1.05rem 1.4rem;
}

.report-top {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.score {
  width: 8.75rem;
  height: auto;
  display: block;
}

.score-track,
.score-value {
  fill: none;
  stroke-width: 6;
}

.score-track {
  stroke: var(--line);
}

.score-value {
  stroke: var(--rust-deep);
  stroke-dasharray: 289.03;
  stroke-dashoffset: 176.31;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.score-num,
.score-den {
  fill: var(--ink);
  text-anchor: middle;
}

.score-num {
  font-size: 32px;
  font-variant-numeric: lining-nums;
}

.score-den {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.score-wrap {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.score-caption {
  margin: 0;
  max-width: 14rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.legend {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
}

.legend li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
}

.status {
  display: inline-block;
  flex: none;
  padding: 0.12rem 0.4rem;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.status-pass {
  color: var(--pass);
  background: var(--pass-bg);
}

.status-partial {
  color: var(--partial);
  background: var(--partial-bg);
}

.status-failed {
  color: var(--fail);
  background: var(--fail-bg);
}

.finding {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.finding h3,
.finding h4 {
  margin: 0;
  font-size: 1.25rem;
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.finding p {
  margin: 0;
}

.fixes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fix;
}

.fixes > li {
  counter-increment: fix;
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.fixes > li::before {
  content: counter(fix, decimal-leading-zero);
  color: var(--rust-deep);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.fixes h3,
.fixes h4,
.fixes p {
  margin: 0;
}

.prose .checks {
  margin-top: 1.25rem;
  padding-left: 0;
  grid-template-columns: 1fr;
}

.prose .checks li + li {
  margin-top: 0;
}

.site-footer {
  margin-top: auto;
  padding: 2.6rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
}

.footer-wordmark {
  margin: 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--rust-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-line {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#order,
#main {
  scroll-margin-top: var(--header-offset);
}

@media (min-width: 36rem) {
  .specimen li,
  .facts div,
  .report-meta div {
    grid-template-columns: 9.5rem 1fr;
    gap: 0.35rem 1rem;
    align-items: baseline;
  }

  .facts div {
    grid-template-columns: 11rem 1fr;
  }
}

@media (min-width: 40rem) {
  .steps:not(.steps-3) li {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    column-gap: 0.75rem;
    align-items: start;
  }

  .wordmark {
    letter-spacing: 0.14em;
  }
}

@media (min-width: 48rem) {
  .two,
  .steps.steps-3 {
    grid-template-columns: 1fr 1fr;
  }

  .report {
    padding: 1.8rem 1.8rem 2rem;
  }

  .report-top {
    grid-template-columns: 1fr auto;
  }

  .fixes > li {
    grid-template-columns: 3.2rem 1fr;
    column-gap: 0.8rem;
  }

  .fixes > li::before {
    grid-row: 1 / span 3;
  }
}

@media (min-width: 64rem) {
  .wrap {
    width: min(100% - 4rem, var(--wrap));
  }

  .hero {
    padding: 4rem 0 1.25rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 3.25rem;
    align-items: start;
  }

  .section {
    padding: 5.4rem 0;
  }

  .trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .checks {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .steps.steps-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 62rem) {
  .nav-toggle,
  html.js .nav-toggle {
    display: none;
  }

  .site-nav,
  html.js .site-nav,
  html.js .site-nav.is-open {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    width: auto;
    gap: 0.15rem 1.05rem;
  }

  .site-nav li a {
    padding: 0.25rem 0;
    border: 0;
    font-weight: 400;
  }

  .site-nav .button {
    width: auto;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .report,
  .panel,
  .specimen-card {
    border-color: #bbb;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
