/* Proofline — proofline.business
   Plain CSS. No framework, no build step, no external fonts. */

:root {
  --bg: #faf8f4;
  --surface: #f2efe8;
  --ink: #17171c;
  --ink-soft: #3c3b43;
  --muted: #63616c;
  --line: #e2ddd2;
  --accent: #1f3d4d;
  --accent-strong: #16303d;
  --focus: #1f3d4d;
  --maxw: 46rem;
  --maxw-wide: 62rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad-y: clamp(3.5rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --surface: #1a1c20;
    --ink: #f3f1ec;
    --ink-soft: #d9d6cf;
    --muted: #9b98a3;
    --line: #2b2d33;
    --accent: #9cc6d6;
    --accent-strong: #b9d8e4;
    --focus: #9cc6d6;
  }
}

* { 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(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 1.1em; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  z-index: 20;
}
.header-inner {
  max-width: var(--maxw-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
}
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.wordmark-rule {
  display: block;
  width: 1.9rem;
  height: 2px;
  background: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.9rem);
  font-size: 0.94rem;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.42rem 0.85rem;
  border-radius: 2px;
}
.nav-cta:hover { border-color: var(--accent); }
@media (max-width: 34rem) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- shared section bits ---------- */
.section { padding-block: var(--pad-y); border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }

.rule {
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.6rem;
}
.section-head { margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); }
.section-intro {
  color: var(--muted);
  max-width: 34rem;
  margin-top: 0.9rem;
  margin-bottom: 0;
}
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.prose { max-width: 38rem; }
.prose p { color: var(--ink-soft); }
.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.7rem;
}
.prose ul { color: var(--ink-soft); padding-left: 1.15rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw-wide);
  padding-top: clamp(3.5rem, 11vw, 8rem);
  padding-bottom: clamp(3.5rem, 11vw, 8rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 33rem;
}
.hero-actions { margin-top: 2.2rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease;
}
@media (prefers-color-scheme: dark) { .btn { color: #10222b; } }
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); color: #fff; }
@media (prefers-color-scheme: dark) { .btn:hover { color: #10222b; } }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
}
@media (min-width: 40rem) {
  .steps { grid-template-columns: 1fr 1fr; gap: 3rem 3.5rem; }
}
.step { position: relative; }
.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
  font-variant-numeric: lining-nums;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- principles ---------- */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}
@media (min-width: 40rem) {
  .principles { grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; }
}
.principles h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.principles p { color: var(--muted); margin: 0; font-size: 0.99rem; }

/* ---------- closing ---------- */
.closing { text-align: left; }
.closing .rule { margin-inline: 0; }
.closing-line {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* ---------- legal page ---------- */
.legal { max-width: var(--maxw); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin-bottom: 0.5rem; }
.legal .section-intro { margin-bottom: 2.5rem; }
.legal-postal, .footer-tag { color: var(--muted); }
.legal-postal { margin-top: 2.5rem; font-style: normal; }
.back-link { margin-top: 3rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
  font-size: 0.94rem;
}
.footer-inner {
  max-width: var(--maxw-wide);
  display: grid;
  gap: 2rem;
}
@media (min-width: 40rem) {
  .footer-inner { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}
.footer-brand .wordmark-text { font-size: 1.2rem; }
.footer-tag { margin: 0.5rem 0 0; }
.footer-address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  max-width: var(--maxw-wide);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-legal p { margin: 0; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
