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

:root {
  --bg: #f5f6f8;
  --bg-2: #eceff3;
  --panel: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #d1d5db;
  --brand: #374151;
  --brand-2: #4b5563;
  --focus: #2563eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.64;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #ffffff;
  color: #000;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 14px;
  min-height: 76px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(170px, 19vw, 280px);
  height: auto;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 999px;
  position: relative;
}

.nav-toggle-label span::before {
  position: absolute;
  left: 0;
  top: -6px;
}

.nav-toggle-label span::after {
  position: absolute;
  left: 0;
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: auto;
}

.site-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #f3f4f6;
  color: #111;
  border-color: #9ca3af;
  transform: none;
}

.age-banner {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #374151;
  background: #f3f4f6;
  padding: 10px 12px;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 14px 58px;
  display: block;
}

.page-hero {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(22px, 2.4vw, 36px);
  box-shadow: none;
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #9ca3af;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
}

.lead {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  max-width: 68ch;
  font-weight: 400;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
  padding: clamp(20px, 2.8vw, 42px);
}

.prose p,
.prose li {
  color: #181818;
  font-size: 1.04rem;
}

.prose h2 {
  margin: 1.9rem 0 0.7rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #101010;
}

.prose a {
  color: #2563eb;
  text-decoration-color: #93c5fd;
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 10px;
}

.prose th {
  background: #f3f4f6;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.callout {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-left: 4px solid #9ca3af;
  border-radius: 8px;
  padding: 14px 15px;
  background: #f9fafb;
}

.site-footer {
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #222;
  font-weight: 500;
  text-transform: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.site-footer nav a {
  text-decoration: none;
  color: #111;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.site-footer nav a:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-self: center;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 92px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .site-nav a {
    text-align: center;
    padding: 10px;
  }

  .nav-toggle-input:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .page-hero,
  .prose,
  .site-footer {
    box-shadow: none;
  }
}

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