/* ============================================================
   EasyH1B — base: tokens, reset, type, controls, utilities
   ============================================================ */

:root {
  --cobalt: #1743cf;
  --cobalt-deep: #0e33a4;
  --cobalt-ink: #12309a;
  --cobalt-soft: #edf2fe;
  --cobalt-line: #b9c8f5;
  --marigold: #ffb100;
  --marigold-deep: #e09a00;
  --marigold-soft: #fff3d1;
  --marigold-line: #f2d38a;
  --ink: #1b1b1f;
  --ink-2: #34343a;
  --muted: #55555e;
  --faint: #6d6d76;
  --line: #e5e5e8;
  --line-2: #d2d2d7;
  --bg: #ffffff;
  --bg-tint: #ffffff;
  --cobalt-faint: #f4f7fe;
  --display: "Mona Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-lift: 0 1px 2px rgba(27, 27, 31, 0.06);
  --wrap: 1160px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--cobalt-deep);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 4px;
}

[tabindex="-1"]:focus {
  outline: none;
}

::selection {
  background: var(--marigold-soft);
  color: var(--ink);
}

/* ---------- display face: Mona Sans, width axis opened up ---------- */

.display {
  font-family: var(--display);
  font-stretch: 112.5%;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- structure helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--cobalt);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* ---------- eyebrow / kickers ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.eyebrow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 1.5px solid var(--cobalt);
  border-radius: 999px;
  font-family: var(--display);
  font-stretch: 112.5%;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.eyebrow-sep {
  width: 26px;
  height: 2px;
  background: var(--marigold);
  border-radius: 2px;
}

.asof-inline {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* ---------- lede / body copy ---------- */

.lede {
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
}

strong {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14, 51, 164, 0.35);
}

.btn-primary:hover {
  background: var(--cobalt-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 rgba(23, 67, 207, 0.18);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(14, 51, 164, 0.35);
}

.btn-ghost {
  background: #fff;
  color: var(--cobalt);
  border-color: var(--cobalt-line);
}

.btn-ghost:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 17px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14.5px;
}

.link-quiet {
  font-weight: 600;
  color: var(--muted);
  text-decoration-color: var(--line-2);
}

.link-quiet:hover {
  color: var(--cobalt);
  text-decoration-color: var(--cobalt);
}

/* ---------- status chips (always carry words) ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-live {
  background: var(--cobalt);
  color: #fff;
}

.chip-court {
  background: var(--marigold);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.chip-proposed {
  background: #fff;
  color: var(--ink-2);
  border: 1.5px dashed var(--faint);
}

.chip-inline {
  margin-left: 10px;
  vertical-align: 2px;
}

/* ---------- "current as of" marker ---------- */

.asof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1.5px solid var(--marigold-line);
  background: var(--marigold-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.asof-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marigold-deep);
  box-shadow: 0 0 0 3px rgba(224, 154, 0, 0.25);
}

/* ---------- marker underlines (hand-drawn SVG stroke) ---------- */

.marker {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.marker > svg {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 104%;
  height: 0.3em;
  color: var(--marigold);
  overflow: visible;
  pointer-events: none;
}

.marker > svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.marker-sm > svg {
  height: 0.34em;
  bottom: -0.1em;
}

/* ---------- kbd ---------- */

kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1.5px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--bg-tint);
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--ink-2);
}

/* ---------- scroll progress hairline ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: var(--cobalt);
}

/* ---------- reveal-on-scroll (motion-safe only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
  }

  .rv.in {
    opacity: 1;
    transform: none;
  }

  .rv.in .marker > svg path,
  .rv .marker.drawn > svg path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
  }

  .marker > svg path {
    stroke-dashoffset: 0;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
