/* escroweducator.org — Veto design system. Near-monochrome OKLCH on cool hue 270.
   Inter only (tabular-nums for numbers). Hairline-first elevation.
   4px grid. Tiered radii (6-16px). Inverted-ink band at climaxes. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---- Ink (text) ------------------------------------------------------ */
  --ink: oklch(0.18 0.005 270);
  --ink-soft: oklch(0.46 0.005 270);

  /* ---- Surfaces -------------------------------------------------------- */
  --background: oklch(1 0 0);
  --surface: oklch(0.985 0.002 270);
  --surface-2: oklch(0.965 0.003 270);
  --line: oklch(0.92 0.003 270);
  --line-strong: oklch(0.86 0.004 270);

  /* ---- Status (dots, pills, thin tints only) --------------------------- */
  --ok: oklch(0.48 0.10 155);
  --ok-bg: oklch(0.965 0.04 155);
  --warn: oklch(0.55 0.11 60);
  --warn-bg: oklch(0.97 0.035 80);
  --info: oklch(0.46 0.005 270);
  --info-bg: oklch(0.965 0.003 270);
  --destructive: oklch(0.55 0.18 27);

  /* ---- Radii (tiered) -------------------------------------------------- */
  --radius-sm: 0.375rem;    /* 6px — small chips */
  --radius-md: 0.5rem;      /* 8px — buttons, nav rows */
  --radius-lg: 0.625rem;    /* 10px — inputs */
  --radius-xl: 0.75rem;     /* 12px — cards */
  --radius-2xl: 1rem;       /* 16px — overlays */
  --radius-full: 9999px;    /* avatars, status dots */

  /* ---- Elevation (hairline-first; shadows only for floating layers) ---- */
  --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, 0.25);
  --shadow-overlay: 0 24px 64px -24px rgba(0, 0, 0, 0.35);

  /* ---- Layout ---------------------------------------------------------- */
  --max: 1120px;

  /* ---- Motion ---------------------------------------------------------- */
  --mo-1: 140ms;
  --ease-out: cubic-bezier(0.22, 0.68, 0.16, 1);

  /* ---- Typography ------------------------------------------------------ */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

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

a:hover {
  color: var(--ink);
}

.num, [data-mono] {
  font-variant-numeric: tabular-nums;
}

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

/* ---- Layout ---- */
.cont { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding: 0 24px; }

@media (max-width: 560px) {
  .wrap, .cont { padding: 0 16px; }
}

/* ---- screen reader 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: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--background) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.navico {
  width: 20px;
  height: 20px;
  color: var(--ink);
  flex: none;
}
.brandtext {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 1px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navlink {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: color var(--mo-1), background var(--mo-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.navlink:hover {
  color: var(--ink);
  background: var(--surface);
}
.navlink[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.h1 {
  font-size: clamp(34px, 4.7vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.h2 {
  font-size: clamp(23px, 2.6vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.measure { max-width: 56ch; }
.meta {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.dataline {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  margin: 26px 0 0;
}
.dataline b { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
.sec { padding: 92px 0; }
.sec-sm { padding: 60px 0; }
.seclead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: 72px;
}
.hero-c { text-align: center; }
.hero-c .lead, .hero-c .measure {
  margin-left: auto;
  margin-right: auto;
}

.steward {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 2px solid var(--line);
}
.steward a {
  color: var(--ink);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-top: 72px;
  padding-bottom: 48px;
}

/* ---------- CTA buttons ---------- */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--mo-1) var(--ease-out), color var(--mo-1), background var(--mo-1);
}
.btn-p {
  background: var(--ink);
  color: var(--background);
  border-color: var(--ink);
}
.btn-p:hover {
  background: var(--ink);
  color: var(--background);
  opacity: 0.88;
}
.btn-s {
  background: var(--background);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-s:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Section heading ---------- */
.section-heading {
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.12;
  color: var(--ink);
}
.section-sub {
  margin: 0 0 28px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- 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(--line);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-card);
  padding: 22px;
  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(--ok); }
.zone-dot-yellow { background: var(--warn); }
.zone-dot-red { background: var(--destructive); }
.zone-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.zone-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.zone-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.zone-examples {
  margin: 8px 0 0;
  padding: 0 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.zone-examples li {
  margin-bottom: 4px;
}

/* ---------- Asset grid (tcard) ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--mo-1), background var(--mo-1);
}
.asset-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.asset-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  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;
  color: var(--ink);
}
.asset-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.asset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}
.asset-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Course catalog list ---------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--background);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: border-color var(--mo-1);
}
.course-item:hover {
  border-color: var(--line-strong);
}
.course-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  align-self: flex-start;
}
.course-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.course-badge.live .dot { background: var(--ok); }
.course-badge.future .dot { background: var(--warn); }
.course-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.course-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}
.course-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.course-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 140px;
}

/* ---------- CTA block ---------- */
.cta-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 28px;
}
.cta-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.cta-block p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
}
.cta-block p + p {
  margin-bottom: 16px;
}

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

.textlink {
  color: var(--ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}

/* ---------- Inverted-ink "Veto moment" band ---------- */
.band {
  background: var(--ink);
  color: var(--background);
}
.bandin {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-inv {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--background) 60%, transparent);
  margin: 0 0 14px;
}
.h2-inv { color: var(--background); }
.lead-inv {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklch, var(--background) 80%, transparent);
  margin: 14px 0 0;
}
.bandcard {
  border: 1px solid color-mix(in oklch, var(--background) 20%, transparent);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.bandcard-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--background) 60%, transparent);
  margin: 0 0 16px;
}
.bandflow {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.bandflow .s {
  font-size: 15px;
  color: color-mix(in oklch, var(--background) 84%, transparent);
}
.bandflow .s.strong {
  color: var(--background);
  font-weight: 600;
}
.bandflow .ar {
  color: color-mix(in oklch, var(--background) 48%, transparent);
  font-size: 13px;
  line-height: 1;
}
.bandnote {
  font-size: 12.5px;
  line-height: 1.5;
  color: color-mix(in oklch, var(--background) 62%, transparent);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid color-mix(in oklch, var(--background) 18%, transparent);
}

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

/* ---------- Boundary ---------- */
.boundary {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
}
.boundary .wrap { max-width: 760px; }
.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(--ink-soft);
}
.boundary p + p { margin-top: 10px; }
.attribution {
  font-size: 13px !important;
  opacity: 0.85;
}
.attribution a { color: var(--ink); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--background);
  padding: 56px 0 40px;
}
.footin {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
.footnote {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 44ch;
}
.footneutral {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 12px 0 0;
  max-width: 46ch;
}
.footcols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footcol-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.footlink {
  display: block;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 11px;
  transition: color var(--mo-1);
  text-decoration: none;
}
.footlink:hover { color: var(--ink); }
.footbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.veto-wm {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .bandin, .footin, .footcols { grid-template-columns: 1fr; gap: 24px; }
  .sec { padding: 64px 0; }
  .navlinks .navlink.hideable { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 28px; }
  .section-heading { font-size: 22px; }
  .navin { height: 52px; }
  .navlinks .navlink.hideable { display: none; }
  .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: 22px; }
}

/* ---------- 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 {
  .nav, .foot { display: none; }
  body { background: #fff; color: #000; }
}
