/* Baken Digital, edition 07 "Inspection: Oxblood".
   Loaded last, after site.css, ledger.css and page-details.css. The site reads as a
   professional inspection report bound in oxblood: warm report paper, oxblood for the
   brand (headings, bands, footer), stone blush for tinted sections, electric teal as the
   personality colour (actions, finding marks, the underline under key words).
   Depth comes from light, not decoration: fine paper grain, recessed tinted sections,
   oxblood bands lit from the top left, and sheets lifted on soft warm shadows.
   Display: Archivo at a fixed condensed width (instanced to wdth 86, weights 600 to 900).
   Body: Source Sans 3. Caveat appears only as the inspector's handwriting on exhibits,
   never for running text. */

@font-face {
  font-family: "Report Display";
  src: url("/assets/fonts/archivo-cond-latin-600-900.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inspector Hand";
  src: url("/assets/fonts/caveat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Tokens. Legacy names are remapped so every existing component follows:
   --blue is the teal action colour, --lime the pale teal highlight, --blue-deep oxblood. */
:root {
  --paper: #faf6f4;
  --paper-deep: #f2e9e6;
  --paper-alt: #f2e9e6;
  --sheet-face: #fffdfc;
  --ink: #2a1418;
  --ink-soft: #563d41;
  --muted: #6e5559;
  --line: #e2d4d1;
  --field: #7a6266;
  --main: #5b1a22;
  --main-deep: #3f1016;
  --main-lit: #74242d;
  --on-main: #faf6f4;
  --on-main-soft: #e9d6d6;
  --pen: #00716c;
  --pen-dark: #005a56;
  --pen-bright: #00a6a0;
  --pen-on-main: #3fe0d8;
  --pen-soft: #d3efed;
  --blue: var(--pen);
  --blue-deep: var(--main);
  --lime: var(--pen-soft);
  --yellow: var(--pen-soft);
  --heading: var(--main);
  --display: "Report Display", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --hand: "Inspector Hand", "Segoe Print", cursive;
  --mono: var(--body);
  --lift: 0 1px 0 rgba(63, 16, 22, 0.05), 0 2px 6px -2px rgba(63, 16, 22, 0.1), 0 22px 44px -22px rgba(63, 16, 22, 0.32);
  --band: radial-gradient(130% 110% at 12% 0%, var(--main-lit) 0%, var(--main) 42%, var(--main-deep) 100%);
}

body {
  background: var(--paper);
  font-size: 18px;
}
h1,
h2 {
  letter-spacing: -0.01em;
  color: var(--heading);
}
::selection {
  background: var(--pen-soft);
  color: var(--ink);
}

/* ---------- Depth ---------- */

/* Paper: warm light falls from the top left; a fine grain sits over everything. */
body {
  background-image: radial-gradient(90% 60% at 0% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
  background-attachment: fixed;
}
body::after {
  display: block;
  opacity: 0.05;
}

/* Tinted sections sit slightly below the page, as if recessed. */
.page-home .fact-strip,
.page-home .check-example,
.page-home .questions,
.ld-sec.tint {
  background-color: var(--paper-deep);
  box-shadow:
    inset 0 10px 18px -14px rgba(63, 16, 22, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

/* Oxblood bands: lit from the top left, darker at the edges. */
.process,
.closing-band,
.site-footer,
.page-opener.ink,
.ink {
  background: var(--main-deep) var(--band);
  color: var(--on-main);
  --heading: var(--on-main);
  --line: rgba(250, 246, 244, 0.18);
}
.process p,
.closing-band p,
.site-footer p,
.timeline p {
  color: var(--on-main-soft);
}

/* Sheets (price sheets, At a glance, founder card, check exhibit) lift off the page. */
.page-home .quote-sheet::after,
.page-pricing .quote-sheet::after,
.glance::after,
.founder-card::after,
.check-sheet::after {
  display: none;
}
.page-home .quote-sheet::before,
.page-pricing .quote-sheet::before,
.glance::before,
.founder-card::before,
.check-sheet::before {
  background-color: var(--sheet-face);
  border: 1px solid var(--line);
  border-top: 3px solid var(--main);
  box-shadow: var(--lift);
}
.founder-card:hover,
.founder-card:focus-within {
  transform: none;
}

/* ---------- Actions ---------- */

.btn {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12), 0 8px 16px -10px rgba(0, 80, 76, 0.7);
}
.btn:active {
  box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 3px 6px -4px rgba(0, 80, 76, 0.6);
}
.btn-primary,
.header-cta,
.btn-ink {
  background: var(--pen);
  border-color: var(--pen);
  color: #fff;
}
.btn-primary:hover,
.header-cta:hover,
.btn-ink:hover {
  background: var(--pen-dark);
  border-color: var(--pen-dark);
  color: #fff;
}
.site-header .header-cta {
  box-shadow: none;
}
a:hover {
  color: var(--pen);
}
:focus-visible {
  outline-color: var(--pen);
}
.process :focus-visible,
.closing-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--pen-on-main);
}
.process a:hover,
.closing-band a:not(.btn):hover,
.site-footer a:hover {
  color: var(--pen-on-main);
}

/* ---------- Structure ---------- */

/* Sections read as report sections, divided by an oxblood rule. */
main > section + section:not(.closing-band) {
  border-top: 2px solid var(--main);
}

.page-home .case {
  background: transparent;
  color: var(--ink);
  --line: #e2d4d1;
}
.case h2 span,
.case .fact-rail b {
  color: var(--pen);
}
.case .fact-rail {
  border-top-color: var(--main);
}
.case .honest,
.case .proof-shots figcaption {
  color: var(--muted);
}
.case a:hover {
  color: var(--pen);
}
.case :focus-visible {
  outline-color: var(--pen);
}
.case .proof-desktop,
.case .proof-phone {
  box-shadow: var(--lift);
  border: 1px solid var(--line);
}

.closing-band h2,
.closing-band p,
.closing-band label,
.closing-band a:not(.btn) {
  color: var(--on-main);
}
.closing-band input {
  background: #fff;
  color: var(--ink);
}

/* Sector guides: the stripe above the opener carries each sector's tone. */
.sector-tone-attorneys {
  --tone: var(--main);
}

/* ---------- Report components ---------- */

/* Findings: numbered in teal pen, the way an inspector marks a page. */
.check-findings li::before {
  border: 2px solid var(--pen);
  border-radius: 50%;
  color: var(--pen);
}
.sev {
  border-width: 1.5px;
  border-radius: 0;
}
.sev-first {
  background: transparent;
  border-color: var(--pen);
  color: var(--pen);
}
.sev-later {
  border-color: var(--line);
  color: var(--muted);
}
.check-next {
  background: var(--sheet-face);
  border-top: 0;
  border-left: 4px solid var(--pen);
  box-shadow: var(--lift);
}
.check-next-label {
  color: var(--pen) !important;
  background: none;
}
.exhibit {
  background: var(--main);
  color: var(--on-main);
}
.pen-note {
  display: block;
  margin-top: 10px;
  font: 600 24px/1.15 var(--hand);
  color: var(--pen);
}

/* Founder card: the Baken mark on oxblood. */
.fc-mark {
  background: var(--main);
  color: var(--on-main);
}

.qs-head h3 {
  letter-spacing: 0.04em;
  color: var(--main);
}
.qs-price {
  color: var(--main);
}

/* Archivo runs wider than the old Barlow: scale display sizes down a step. */
h2 {
  font-size: clamp(36px, 4.3vw, 62px);
}
.ledger-name strong {
  font-size: clamp(32px, 3.5vw, 54px);
  color: var(--main);
}
.poster-hero h1 {
  letter-spacing: -0.02em;
}

/* The hero's key word is underlined in teal pen. */
.marker::before {
  background: var(--pen-bright);
  height: 0.075em;
  bottom: -0.06em;
}
/* "YOUR WORK." sets about 5.8em wide in Archivo; keep it inside the gutter on phones. */
@media (max-width: 1100px) {
  .poster-hero h1 {
    font-size: 15vw;
  }
}

/* Process: each step's rule draws in teal and its number fills teal. */
.timeline li {
  border-top-color: rgba(250, 246, 244, 0.2);
}
.timeline li::after,
.timeline h3::before {
  background: var(--pen-on-main);
  color: var(--main-deep);
}
.timeline li::before {
  background: var(--main-deep);
  color: var(--on-main);
  box-shadow: inset 0 0 0 2px var(--pen-on-main);
}
.timeline .when {
  color: var(--pen-on-main);
}

@media print {
  body::after {
    display: none;
  }
  .page-home .quote-sheet::before,
  .page-pricing .quote-sheet::before,
  .glance::before,
  .founder-card::before,
  .check-sheet::before,
  .check-next,
  .btn {
    box-shadow: none;
  }
  .process,
  .closing-band,
  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* ---------- Hero on oxblood ---------- */
/* The home hero opens on the brand colour, lit like the other oxblood bands. */
.poster-hero {
  background: var(--main-deep) var(--band);
  color: var(--on-main);
  --heading: var(--on-main);
  --line: rgba(250, 246, 244, 0.22);
}
.poster-hero .eyebrow,
.poster-hero .hero-actions p {
  color: var(--on-main);
}
.poster-hero .hero-actions .hero-note {
  color: var(--on-main-soft);
}
.poster-hero .hero-actions {
  border-top-color: rgba(250, 246, 244, 0.35);
}
.poster-hero .marker::before {
  background: var(--pen-on-main);
}
.poster-hero .btn-primary {
  background: var(--pen-on-main);
  border-color: var(--pen-on-main);
  color: var(--main-deep);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 22px -12px rgba(0, 0, 0, 0.55);
}
.poster-hero .btn-primary:hover {
  background: var(--on-main);
  border-color: var(--on-main);
  color: var(--main-deep);
}
.poster-hero .plain-link {
  color: var(--on-main);
  background-image: linear-gradient(var(--pen-on-main), var(--pen-on-main));
}
.poster-hero .plain-link:hover,
.poster-hero a:hover {
  color: var(--pen-on-main);
}
.poster-hero :focus-visible {
  outline-color: var(--pen-on-main);
}
main > .poster-hero + section {
  border-top: 0;
}

/* The headline steps down slightly: about 10% smaller at every width. */
.poster-hero h1 {
  font-size: clamp(58px, 12.6vw, 208px);
}
@media (max-width: 1100px) {
  .poster-hero h1 {
    font-size: 13.5vw;
  }
}

/* ---------- Hero contour lines ---------- */
/* Fine survey-map lines drift slowly sideways behind the hero text. The SVG tiles
   seamlessly every 1600px; the layer is one tile wider than the hero and slides
   one tile per 60s cycle, so the lines keep the same shape on every screen. Transform only, and still for anyone who prefers reduced motion. */
.poster-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.poster-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% + 1600px);
  z-index: -1;
  pointer-events: none;
  background: url("/assets/contours.svg") repeat-x 0 0 / 1600px 100%;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .poster-hero::before {
    animation: baken-contours 60s linear infinite;
  }
}
@keyframes baken-contours {
  to {
    transform: translateX(-1600px);
  }
}
@media print {
  .poster-hero::before {
    display: none;
  }
}

/* ---------- Footer: five columns with the Security column ---------- */
@media (min-width: 1101px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  }
}

/* Inline code in guides (for example DNS lookups). */
main code {
  font: 600 0.92em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

/* Phones: long service names in ledgers wrap beside the price, so step them down. */
@media (max-width: 650px) {
  .ledger-name strong {
    font-size: clamp(24px, 7vw, 30px);
  }
}
