@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-400-normal.a87be5f51483.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-500-normal.a713640bfe1b.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-600-normal.4c3aca48be0c.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-latin-700-normal.b2758c7ec7e6.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-500-normal.2285bacdef39.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("./fonts/fraunces-latin-700-normal.d99d78cac1e8.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Mapped onto the product's "Fluorescent Lab" tokens (DESIGN.md). */
  --bg: #f7fbff;
  --bg-elevated: #ffffff;
  --bg-muted: #f8fafc;
  --text: #17191f;
  --muted: #4f5664;
  --border: rgba(23, 25, 31, 0.12);
  --border-strong: rgba(23, 25, 31, 0.22);
  --obsidian: #17191f;
  --accent: #b8f000;
  --accent-ink: #5c7300;
  --accent-soft: #f4fbd6;
  --accent-strong: #9ccc00;
  --accent-contrast: #111827;
  --focus-ring: #5c7300;
  --shadow: 0 18px 50px rgba(23, 25, 31, 0.1);
  --radius: 8px;
  --radius-sm: 4px;
  --max: 1440px;
  --page-inset: clamp(32px, 6.4vw, 64px);
  --font: "Sora", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.nowrap { white-space: nowrap; }
.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;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand-logo {
  display: block;
  width: 116px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(23, 25, 31, 0.05);
}
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav--legal a {
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.nav--legal a:hover,
.nav--legal a:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
}
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--accent-strong); }
.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { background: var(--accent-soft); }
.btn-login {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-login:hover,
.btn-login:focus-visible { background: var(--accent-soft); }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--obsidian);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

@media (max-width: 900px) {
  .nav:not(.nav--legal) { display: none; }
  .header-tools { gap: 8px; }
  .site-footer__inner { flex-direction: column; }
  /* Footer links become 44px touch targets once the layout is phone or tablet sized. */
  .site-footer nav { gap: 0 20px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  .site-header__inner { gap: 8px; min-height: 64px; }
  .brand { flex: 0 0 auto; gap: 8px; font-size: 0.98rem; }
  .brand-logo { width: 104px; }
  .header-tools { gap: 6px; min-width: 0; }
  /* No room for the text link beside both actions; legal pages repeat it in the hero. */
  .nav--legal { display: none; }
  .header-actions { gap: 8px; flex: 0 0 auto; }
  .header-actions .btn { min-height: 44px; padding: 0 12px; font-size: 0.88rem; }
}

@media (max-width: 400px) {
  .brand-logo { width: 84px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 0 9px; font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
