/* ============================================================
   PARABOARDS.COM — GLOBAL STYLESHEET
   v2.0 — May 2026

   Architecture : Vanilla CSS with custom properties
   Standard     : WCAG 2.2 AA
   Approach     : Mobile-first responsive
   Fonts        : Fraunces (display) + Lora (body)
   Contrast verified (white on all surfaces):
     #170945 → 18.1:1  #450949 → 15.1:1  #680021 → 13.0:1
============================================================ */


/* ============================================================
   1. CUSTOM PROPERTIES — Design Tokens
============================================================ */

:root {
  /* Surfaces */
  --color-surface-primary:   #170945;
  --color-surface-secondary: #450949;
  --color-surface-accent:    #680021;

  /* Text */
  --color-text-primary: #ffffff;
  --color-text-dim:     rgba(255, 255, 255, 0.95);
  --color-text-muted:   rgba(255, 255, 255, 0.92);

  /* Mark (logo stroke) */
  --color-mark: #ffffff;

  /* Borders */
  --color-border:        rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.3);

  /* Interactive — primary CTA inverts palette */
  --color-cta-bg:    #ffffff;
  --color-cta-text:  #170945;
  --color-cta-hover: rgba(255, 255, 255, 0.88);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;

  /* Type scale — clamp-based, responsive without breakpoint overrides */
  --text-display: clamp(2.5rem, 6vw, 4rem);    /* 40–64px */
  --text-h2:      clamp(1.5rem, 3.5vw, 2.25rem); /* 24–36px */
  --text-h3:      clamp(1.125rem, 2.5vw, 1.5rem); /* 18–24px */
  --text-body:    clamp(0.9375rem, 1.5vw, 1rem);  /* 15–16px */
  --text-small:   0.8125rem;  /* 13px */
  --text-label:   0.6875rem;  /* 11px */

  /* Legacy scale kept for component use */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.25rem;    /* 36px */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  4rem;       /* 64px */

  /* Line heights */
  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.78;

  /* Spacing — 8px grid */
  --space-1:  0.5rem;   /*  8px */
  --space-2:  1rem;     /* 16px */
  --space-3:  1.5rem;   /* 24px */
  --space-4:  2rem;     /* 32px */
  --space-5:  2.5rem;   /* 40px */
  --space-6:  3rem;     /* 48px */
  --space-8:  4rem;     /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */
  --space-16: 8rem;     /* 128px */

  /* Layout */
  --max-width:      69rem;   /* ~1100px */
  --max-width-text: 44rem;   /* comfortable reading line */
  --nav-height:     4rem;    /* 64px */
  --gutter:         clamp(1.5rem, 5vw, 5rem);

  /* Radii */
  --radius-sm:   0.25rem;
  --radius:      0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}


/* ============================================================
   2. REDUCED MOTION — honor before anything animates
============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}


/* ============================================================
   3. RESET & BASE
============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-surface-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6, p, li, dt, dd {
  overflow-wrap: break-word;
}


/* ============================================================
   4. SKIP NAVIGATION — WCAG 2.4.1
============================================================ */

.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-1) var(--space-3);
  background: var(--color-text-primary);
  color: var(--color-surface-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: 0;
  outline: 3px solid var(--color-surface-primary);
  outline-offset: 2px;
}


/* ============================================================
   5. FOCUS STYLES — WCAG 2.4.11 (2.2 AA)
============================================================ */

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

:focus:not(:focus-visible) {
  outline: none;
}


/* ============================================================
   6. TYPOGRAPHY
============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  /* Semantic only — size via CSS, never heading level */
}

h1 {
  font-size: var(--text-display);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.3;
}

h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--leading-normal);
  max-width: var(--max-width-text);
}

p + p { margin-top: var(--space-2); }

strong { font-weight: 700; }
em     { font-style: italic; }

a {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

a:hover { opacity: 0.75; }

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-text-dim);
  border-left: 3px solid var(--color-border-strong);
  padding-left: var(--space-3);
  max-width: var(--max-width-text);
}

/* Eyebrow label — small uppercase, tracked */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}


/* ============================================================
   7. LAYOUT
============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section       { padding-block: var(--space-8); }
.section--lg   { padding-block: var(--space-12); }
.section--sm   { padding-block: var(--space-5); }

/* Surface variants */
.surface--secondary { background-color: var(--color-surface-secondary); }
.surface--accent    { background-color: var(--color-surface-accent); }
/* Legacy alias kept for existing HTML */
.surface--tertiary  { background-color: var(--color-surface-accent); }

/* Grid */
.grid    { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* Legacy non-BEM aliases */
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid--3, .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4, .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

main { flex: 1; }


/* ============================================================
   8. SITE HEADER & NAVIGATION
============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: var(--color-surface-primary);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-3);
}

/* Logo */
.nav__logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Desktop nav links — Lora, uppercase, tracked */
.nav__links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-block: var(--space-1);
  transition: color var(--transition-fast);
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-text-primary);
  opacity: 1;
}

/* Active underline */
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
}

/* Desktop CTA */
.nav__cta { display: none; }

@media (min-width: 768px) {
  .nav__cta { display: flex; }
}

/* Mobile hamburger — 44×44px minimum */
.nav__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.nav__toggle:hover { border-color: var(--color-border-strong); }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

/* Hamburger bars */
.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}

/* Animate to × when open */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background-color: var(--color-surface-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-5) var(--gutter) var(--space-8);
  z-index: 99;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  visibility: hidden;
}

.nav__drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

@media (min-width: 768px) {
  .nav__drawer { display: none; }
}

.nav__drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-5);
}

.nav__drawer-links a {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  padding-block: var(--space-2);
  text-decoration: none;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
  min-height: 56px;
}

.nav__drawer-links a:hover,
.nav__drawer-links a[aria-current="page"] {
  color: var(--color-text-primary);
  opacity: 1;
}


/* ============================================================
   9. BUTTONS — min 44×44px (WCAG 2.5.8)
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              opacity var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.btn--primary {
  background-color: var(--color-cta-bg);
  color: var(--color-cta-text);
  border-color: var(--color-cta-bg);
}

.btn--primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  opacity: 1;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.btn--outline:hover {
  border-color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.btn--lg {
  font-size: var(--text-sm);
  padding: 1rem 2rem;
  min-height: 52px;
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
  min-height: 36px;
}

/* Badge / status chip */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background-color: rgba(255, 255, 255, 0.05);
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}


/* ============================================================
   10. FORMS
============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 44px;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:hover,
.form-textarea:hover { border-color: var(--color-border-strong); }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-text-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] { border-color: #ff9999; }

.form-textarea { resize: vertical; min-height: 120px; }

.form-error {
  font-size: var(--text-xs);
  color: #ff9999;
}

.form-success {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* Inline email capture */
.form-inline {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 480px) {
  .form-inline { flex-direction: row; }
  .form-inline .form-input { flex: 1; min-width: 0; }
}

/* Notify CTA section — always centered */
#notify > .container {
  text-align: center;
}

#notify form,
#notify [data-success] {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Notify form wrapper — centers the form in CTA sections */
.notify-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}


/* ============================================================
   11. CARDS
============================================================ */

.card {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: auto;
  padding-top: var(--space-2);
}

.card__price-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ============================================================
   12. HERO
============================================================ */

.hero {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .hero { padding-block: var(--space-10) var(--space-8); }
}

.hero h1 { margin-block: var(--space-2) var(--space-3); }

.hero__body {
  font-size: var(--text-md);
  color: var(--color-text-dim);
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
}


/* ============================================================
   13. NOT-THAT-WAY LIST — brand positioning block
============================================================ */

.not-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.not-list li {
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-md);
  color: var(--color-text-dim);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.not-list li::before {
  content: '×';
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-weight: 300;
  line-height: 1;
}

.not-list__thesis {
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text-primary);
}


/* ============================================================
   14. SYSTEM DIAGRAM — CSS-only, no images required
============================================================ */

.system-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-6);
}

@media (min-width: 640px) {
  .system-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-3) var(--space-4);
  }
}

.system-diagram__center {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 160px;
  height: 160px;
  border: 2px solid var(--color-text-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  background-color: rgba(255, 255, 255, 0.04);
}

.system-diagram__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 400;
}

.system-diagram__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  max-width: none;
}

.system-diagram__price {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  margin-top: 0.25rem;
  max-width: none;
}

.system-diagram__attachment {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.02);
}

.system-diagram__attachment--top    { grid-column: 1 / 4; grid-row: 1; justify-self: center; }
.system-diagram__attachment--right  { grid-column: 3; grid-row: 2; }
.system-diagram__attachment--bottom { grid-column: 1 / 4; grid-row: 3; justify-self: center; }

/* On mobile, attachments display as simple nodes */
@media (max-width: 639px) {
  .system-diagram__attachment { width: 100%; max-width: 240px; }
}

figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: var(--space-3);
  max-width: var(--max-width-text);
}


/* ============================================================
   15. FAQ ACCORDION — native <details>/<summary>, no JS
============================================================ */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  cursor: pointer;
  list-style: none;
  gap: var(--space-3);
  min-height: 44px;
  line-height: var(--leading-snug);
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq__item[open] > .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 0 var(--space-3) 0;
  color: var(--color-text-dim);
  line-height: var(--leading-normal);
  max-width: var(--max-width-text);
}

.faq__answer p + p { margin-top: var(--space-1); }


/* ============================================================
   16. TABLES — specs and pricing
============================================================ */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

caption {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-bottom: var(--space-2);
  caption-side: top;
}

th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(255, 255, 255, 0.02); }


/* ============================================================
   17. SITE FOOTER
============================================================ */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-5);
  }
}

.footer__logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-1);
}

.footer__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  max-width: 22ch;
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .footer__nav {
    display: contents; /* let inner cols be direct grid children */
  }
}

.footer__nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: var(--space-1);
}

.footer__nav-heading {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.footer__nav-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  padding-block: 0.125rem;
}

.footer__nav-col a:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.footer__legal {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer__legal p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}


/* ============================================================
   18. UTILITY CLASSES
============================================================ */

/* Screen reader only — WCAG 1.3.1 */
.u-sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.u-text-center  { text-align: center; }
.u-text-muted   { color: var(--color-text-muted); }
.u-text-dim     { color: var(--color-text-dim); }

.u-mt-2  { margin-top: var(--space-2); }
.u-mt-4  { margin-top: var(--space-4); }
.u-mt-6  { margin-top: var(--space-6); }
.u-mt-8  { margin-top: var(--space-8); }
.u-mb-4  { margin-bottom: var(--space-4); }
.u-mb-6  { margin-bottom: var(--space-6); }

/* Legacy non-prefixed aliases */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-4        { margin-top: var(--space-4); }
.mt-6        { margin-top: var(--space-6); }
.mt-8        { margin-top: var(--space-8); }

.border-top    { border-top: 1px solid var(--color-border); }
.border-bottom { border-bottom: 1px solid var(--color-border); }


/* ============================================================
   19. 404 PAGE
============================================================ */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: var(--space-10);
  min-height: 60vh;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-muted);
  letter-spacing: -0.03em;
}


/* ============================================================
   20. PRINT STYLES
============================================================ */

@media print {
  .site-header,
  .site-footer,
  .nav__toggle,
  .nav__drawer,
  .skip-nav,
  .btn { display: none; }

  body {
    background: white;
    color: black;
    font-family: Georgia, serif;
    font-size: 12pt;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, serif;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 10pt;
    color: #555;
  }
}
