/* escroweducator.org — AI for Escrow education, from the person building it for the industry.
   Near-monochrome OKLCH, Inter + IBM Plex Mono, hairline-first. */

:root {
  /* Near-monochrome OKLCH palette (cool-270, chroma <= 0.02) */
  --ink: oklch(0.18 0.005 270);
  --ink-2: oklch(0.27 0.008 270);
  --muted: oklch(0.48 0.012 270);
  --faint: oklch(0.65 0.012 270);
  --paper: oklch(0.96 0.008 270);
  --paper-deep: oklch(0.94 0.012 270);
  --card: oklch(0.99 0.006 270);
  --rule: oklch(0.89 0.015 270);
  --rule-2: oklch(0.82 0.020 270);
  --accent: oklch(0.30 0.020 270);
  --accent-h: oklch(0.22 0.020 270);

  /* Status colors — only on dots/pills, never decoration */
  --green: oklch(0.55 0.12 155);
  --yellow: oklch(0.68 0.14 75);
  --red: oklch(0.55 0.14 25);

  --max: 1120px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-h);
}

[data-mono],
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 9999;
  transform: translateY(calc(-100% - 18px));
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 160ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.96 0.008 270 / 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
  padding: 4px 0;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- section headings ---------- */
.section-heading {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.section-sub {
  margin: 0 0 28px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lead {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.steward {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--rule-2);
}
.steward a {
  color: var(--ink-2);
  display: inline-block;
  padding: 12px 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-p {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-p:hover {
  background: var(--accent-h);
  color: var(--paper);
  border-color: var(--accent-h);
}
.btn-s {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-s:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

/* ---------- sections ---------- */
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}

/* ---------- green/yellow/red framework ---------- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.zone-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.zone-dot-green { background: var(--green); }
.zone-dot-yellow { background: var(--yellow); }
.zone-dot-red { background: var(--red); }
.zone-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.zone-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.zone-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.zone-examples {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.zone-examples li {
  margin-bottom: 4px;
}

/* ---------- asset links grid ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.asset-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.asset-card:hover {
  border-color: var(--rule-2);
}
.asset-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  align-self: flex-start;
}
.asset-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.asset-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.asset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.asset-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-h);
}

/* ---------- course catalog table ---------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.course-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--mono);
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  align-self: flex-start;
}
.course-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.course-badge.live .dot { background: var(--green); }
.course-badge.future .dot { background: var(--yellow); }
.course-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.course-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.course-meta {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}
.course-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 160px;
}

/* ---------- CTA block ---------- */
.cta-block {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-deep);
  padding: 32px;
}
.cta-block h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.cta-block p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------- disclaimer ---------- */
.disclaimer {
  padding: 32px 0;
}
.disclaimer p {
  margin: 0 0 8px;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- boundary ---------- */
.boundary {
  padding: 40px 0 56px;
}
.boundary .wrap {
  max-width: 720px;
}
.boundary-line {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}
.boundary p {
  margin: 0;
  max-width: 64ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.boundary p + p {
  margin-top: 10px;
}
.attribution {
  font-size: 13px !important;
  opacity: 0.85;
}
.attribution a {
  color: var(--ink-2);
  display: inline-block;
  padding: 12px 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: oklch(0.82 0.008 270);
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand strong {
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
}
.footer-brand span {
  font-size: 13px;
  color: oklch(0.65 0.008 270);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-nav a {
  color: oklch(0.82 0.008 270);
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover {
  color: var(--paper);
}
.footer-legal {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-legal p {
  margin: 0;
  font-size: 13px;
}
.footer-legal .boundary-line {
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  padding: 0;
}
.footer-legal .attribution {
  opacity: 1;
}
.footer-legal .attribution a {
  color: var(--paper);
  text-decoration: underline;
  display: inline-block;
  padding: 12px 0;
}

/* ---------- page hero (subpages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- prose section ---------- */
.prose {
  max-width: 68ch;
}
.prose p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .site-nav {
    gap: 1rem;
  }
  .brand-text small {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 44px 0 36px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .page-hero h1 {
    font-size: 26px;
  }
  .section-heading {
    font-size: 24px;
  }
  .site-header .wrap {
    min-height: 56px;
  }
  .site-nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }
  .site-footer .wrap {
    flex-direction: column;
  }
  .footer-legal {
    text-align: left;
  }
  .framework-grid {
    grid-template-columns: 1fr;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .course-item {
    grid-template-columns: 1fr;
  }
  .course-action {
    align-items: flex-start;
  }
  .cta-block {
    padding: 24px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero-cta {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
