/*
 * getfullarc-verify.com — the Letterpress design (mockUps/, assets/global.css), one stylesheet, no framework.
 * Fonts are self-hosted (src/fonts, SIL OFL): the privacy page promises no tracking, and the CSP allows only 'self'.
 */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-baskerville-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/libre-baskerville-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Baskerville";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/libre-baskerville-latin-400-italic.woff2") format("woff2");
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  /* Brand kit (FullArcVerify-BrandKit/07-brand): Oxblood, Ink Navy, Paper. */
  --color-primary: #74231b;
  --color-primary-hover: #5a1a14;
  --color-ink: #1b2431;
  --color-background: #f9f6ef;
  --color-surface: #fffaf3;
  --color-paper: #efe7d8;
  --color-linen: #eee5d7;
  --color-text: #37322c;
  --color-muted: #665d52;
  --color-accent: #7f3a2f;
  --color-border: #d7cabc;
  --color-cream: #f9f1e4;
  --color-band-text: #f3e4d9;
  --color-band-eyebrow: #efcfb4;
  --color-footer: #e7decf;
  --color-code-bg: #1b2431;
  --color-code-text: #efe7d8;
  --color-code-border: #2f3b4d;
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --container: 1180px;
  --shadow-paper: 9px 11px 0 rgba(65, 35, 29, 0.13);
  --h1: clamp(38px, 5.1vw, 72px);
  --h2: clamp(28px, 3vw, 44px);
  --h3: clamp(21px, 2vw, 27px);
  color-scheme: light;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}
::selection {
  background: #e7c6b0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.045em;
  line-height: 1.22;
  color: var(--color-ink);
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
p,
li {
  line-height: 1.8;
  color: var(--color-muted);
}
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.wide {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}
.eyebrow {
  display: block;
  margin-bottom: 18px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.lead {
  max-width: 740px;
  font-size: 18px;
}
.small {
  font-size: 14px;
}
.caps {
  text-transform: uppercase;
}

/* ── Header and navigation ─────────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 89px;
  flex-wrap: wrap;
  padding-block: 12px;
}
/* The logo: the brand kit's horizontal lockup. Never under 140px wide (kit usage note). */
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  display: block;
  width: auto;
  height: 44px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a {
  padding-block: 8px;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-nav .nav-cta {
  padding: 13px 17px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
}

/* ── Buttons and links ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 23px;
  border: 1px solid var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-linen);
}
.btn-light {
  background: var(--color-cream);
  border-color: var(--color-cream);
  color: var(--color-primary);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.text-link {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding-block: 88px;
}
.section-soft {
  background: var(--color-paper);
  border-block: 1px solid var(--color-border);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.section-head h2 {
  margin-bottom: 0;
}
.section-head p {
  max-width: 430px;
  margin: 0;
}

/* Page heroes */
.page-hero {
  padding: 76px 0 65px;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  max-width: 840px;
  margin-bottom: 22px;
}
.page-hero .lead {
  margin-bottom: 0;
}
.page-hero h1 em,
.home-hero h1 em {
  color: var(--color-primary);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.breadcrumb li {
  line-height: 1.6;
  color: var(--color-accent);
}
.breadcrumb li + li::before {
  content: "/";
  content: "/" / "";
  padding-inline: 8px;
  opacity: 0.55;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* Home hero */
.home-hero {
  padding: 66px 0 82px;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  padding: 75px 5vw 0;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
}
.hero-frame::after {
  content: "FULLARC / VERIFIED WITH CARE";
  content: "FULLARC / VERIFIED WITH CARE" / "";
  position: absolute;
  right: -66px;
  top: 38px;
  padding: 12px;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font: 600 11px var(--font-mono);
  opacity: 0.24;
  transform: rotate(17deg);
}
.home-intro {
  max-width: 850px;
  margin: 0 auto 57px;
  text-align: center;
}
.home-intro p {
  max-width: 685px;
  margin: 24px auto;
  font-size: 17px;
}
.home-intro .actions {
  justify-content: center;
}
.ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 -5vw;
  padding: 0;
  list-style: none;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.ledger > li {
  padding: 30px 39px;
  border-right: 1px solid var(--color-border);
}
.ledger > li:last-child {
  border-right: 0;
}
.ledger strong {
  display: block;
  margin: 6px 0 12px;
  font: 21px var(--font-heading);
  color: var(--color-text);
}
.ledger p {
  margin: 0;
  font-size: 14px;
}

/* Cards and grids */
.grid-2,
.grid-3 {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.card.tint {
  background: var(--color-linen);
  border-top: 4px solid var(--color-primary);
}
.card h3 {
  margin: 15px 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.card-index {
  display: block;
  font: 600 12px var(--font-mono);
  letter-spacing: 0.11em;
  color: var(--color-accent);
}
.pill {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid var(--color-border);
  background: var(--color-linen);
  color: var(--color-primary);
  font: 600 11px var(--font-mono);
  letter-spacing: 0.04em;
}

/* Note band and letter */
.note-band {
  padding: 80px 0;
  background: var(--color-primary);
  color: var(--color-cream);
}
.note-band h2 {
  color: var(--color-cream);
}
.note-band p {
  color: var(--color-band-text);
}
.note-band .eyebrow {
  color: var(--color-band-eyebrow);
}
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.letter {
  padding: 39px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-paper);
  transform: rotate(-1deg);
}
.letter.flat {
  max-width: 690px;
  transform: none;
}
.letter .eyebrow {
  color: var(--color-accent);
}
.letter p {
  color: var(--color-muted);
}

/* Inner pages: sidebar + content */
.info-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
}
.sidebar-card {
  position: sticky;
  top: 25px;
  align-self: start;
  padding: 25px;
  background: var(--color-linen);
  border-top: 3px solid var(--color-primary);
}
.sidebar-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-card li {
  line-height: 1.4;
}
.sidebar-card a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  text-decoration: none;
}
.sidebar-card a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.content-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 25px;
}
.content-section:last-child {
  margin-bottom: 0;
  border: 0;
}
.content-section h2 {
  font-size: clamp(26px, 2.7vw, 37px);
}
.content-section > p {
  max-width: 780px;
}

/* Tables, code, notices, lists */
.table-scroll {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  width: 30%;
  color: var(--color-primary);
  font-weight: 700;
}
.data-table td {
  overflow-wrap: anywhere;
}
.code-panel {
  margin: 0 0 24px;
  padding: 22px;
  overflow: auto;
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  color: var(--color-code-text);
  font: 13px/1.9 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-panel code {
  font-size: inherit;
}
.notice {
  margin: 24px 0;
  padding: 23px 27px;
  background: var(--color-linen);
  border-left: 4px solid var(--color-primary);
}
.notice p:last-child {
  margin: 0;
}
.timeline {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}
.timeline > li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  counter-increment: item;
}
.timeline > li::before {
  content: counter(item, decimal-leading-zero);
  display: grid;
  place-items: center;
  height: 42px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font: 600 13px var(--font-mono);
}
.timeline strong {
  color: var(--color-text);
}

.form-frame {
  display: block;
  width: 100%;
  min-height: 780px;
  margin-top: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  /* Ink Navy: the surface the brand kit's reversed logo is drawn for. */
  --footer-bg: #1b2431;
  --footer-text: #efe7d8;
  --footer-muted: #b3bcc8;
  --footer-heading: #e8988a;
  --footer-rule: rgba(239, 231, 216, 0.14);
  background: var(--footer-bg);
  color: var(--footer-text);
}
.site-footer a:focus-visible {
  outline-color: var(--footer-heading);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px 56px;
  padding-block: 64px 56px;
}
.footer-about .brand img {
  height: 40px;
}
.footer-about p,
.footer-about address {
  margin: 20px 0 0;
  max-width: 320px;
  color: var(--footer-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}
.footer-heading {
  margin: 0 0 14px;
  font: 600 11px var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-heading);
}
.footer-col ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  line-height: 1.4;
  color: var(--footer-text);
}
.footer-col a {
  display: inline-block;
  padding-block: 6px;
  color: var(--footer-text);
  font-size: 15px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-col a:hover,
.footer-col a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-contact {
  gap: 10px !important;
}
.footer-contact span {
  display: block;
  color: var(--footer-muted);
  font-size: 13px;
}
.footer-contact a {
  padding-block: 2px;
}
.footer-bottom {
  border-top: 1px solid var(--footer-rule);
}
.footer-bottom p {
  margin: 0;
  padding-block: 20px;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-bottom a {
  color: var(--footer-text);
  text-underline-offset: 4px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .site-nav {
    gap: 8px 15px;
  }
  .info-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sidebar-card {
    position: static;
  }
  .note-grid {
    gap: 30px;
  }
}

@media (max-width: 740px) {
  .header-inner {
    min-height: 76px;
  }
  .site-header .brand img {
    height: 36px;
  }
  /* The menu button exists only when menu.js has run; without it the nav simply wraps. */
  .js-menu .menu-toggle {
    display: inline-flex;
  }
  .js-menu .header-inner {
    flex-wrap: nowrap;
  }
  .js-menu .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 16px #33291e15;
  }
  .js-menu .site-nav.open {
    display: flex;
  }
  .js-menu .site-nav a {
    padding: 13px 9px;
  }
  .js-menu .site-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
  .grid-2,
  .grid-3,
  .ledger,
  .note-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-top {
    gap: 36px;
    padding-block: 48px 40px;
  }
  .hero-frame {
    padding: 52px 24px 0;
  }
  .hero-frame::after {
    display: none;
  }
  .ledger {
    margin-inline: -24px;
  }
  .ledger > li {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .ledger > li:last-child {
    border-bottom: 0;
  }
  .home-hero {
    padding: 25px 0 50px;
  }
  .section {
    padding-block: 58px;
  }
  .page-hero {
    padding: 52px 0;
  }
  .section-head {
    display: block;
  }
  .section-head h2 {
    margin-bottom: 16px;
  }
  .letter {
    padding: 28px;
    transform: none;
  }
  .note-band {
    padding: 55px 0;
  }
  .data-table th {
    width: 40%;
  }
  .data-table th,
  .data-table td {
    padding: 12px 9px;
  }
  .card {
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header nav,
  .menu-toggle,
  .skip-link,
  .sidebar-card {
    display: none;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}
