:root {
  color-scheme: dark;
  --background: #121318;
  --surface: #1b1d24;
  --cream: #f6f0de;
  --muted: #c7c3b9;
  --lime: #d6ed87;
  --orange: #ff986c;
  --line: #3c3e43;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 2rem; }

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 90% 0, #ff784e0b, transparent 40rem),
    var(--background);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

body::before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--cream) 50%, var(--lime));
  content: '';
}

a { color: var(--lime); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; border-radius: 2px; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  color: var(--background);
  background: var(--lime);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--background); }

.site-header,
.page,
.site-footer {
  width: min(1160px, 100% - 64px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 232px;
  max-width: 100%;
  min-height: 44px;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}
.site-nav a[aria-current='page'] { color: var(--lime); }
.site-nav a:hover { color: var(--cream); }

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) 2.5rem; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 6.2vw, 5.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero-intro { max-width: 62ch; margin: 0; color: var(--muted); font-size: 1.125rem; }
.updated { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.8125rem; }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.highlight { padding: 1.2rem 1.4rem; background: var(--surface); }
.highlight strong { display: block; margin-bottom: 0.2rem; color: var(--lime); }
.highlight p { margin: 0; color: var(--muted); font-size: 0.875rem; }

.document-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 4rem; align-items: start; }
.contents { position: sticky; top: 2rem; }
.contents h2 { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.contents ol { padding: 0; margin: 0; list-style: none; }
.contents a { display: block; padding-block: 0.6rem; font-size: 0.875rem; line-height: 1.5; }
.document { min-width: 0; max-width: 74ch; }
.document section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.document section:last-child { margin-bottom: 0; border-bottom: 0; }
h2 { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.025em; }
h3 { margin: 1.5rem 0 0.4rem; font-size: 1.0625rem; line-height: 1.5; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
li { margin-block: 0.4rem; }
ul, ol { padding-left: 1.4rem; }
.document p, .document li, .faq p { color: var(--muted); }
.document strong, .faq strong { color: var(--cream); }
code { font-size: 0.9375em; }
.contact-address { margin-bottom: 1rem; font-style: normal; }
.contact-address a, .email-link { overflow-wrap: anywhere; }

.contact-card {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  border: 1px solid var(--lime);
  border-radius: 12px;
  background: linear-gradient(120deg, #d6ed870b, transparent 80%), var(--surface);
}
.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card .email-link { display: inline-block; margin-block: 0.25rem 0.75rem; font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 700; }
.contact-card p { max-width: 70ch; color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.support-card { min-width: 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.support-card p, .support-card li { color: var(--muted); }
.support-card ul { margin-bottom: 1rem; }
.notice { padding-left: 1rem; border-left: 3px solid var(--orange); }
.faq { margin-top: 3rem; }
.faq > h2 { margin-bottom: 1.5rem; }
.faq-item { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.faq-item h3 { margin-top: 0; }

.bottom-link { display: inline-flex; align-items: center; min-height: 44px; margin-block: 1.5rem; font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding-block: 1.75rem 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.5rem; }

@media (max-width: 850px) {
  .document-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contents { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .document { max-width: none; }
}

@media (max-width: 600px) {
  .site-header, .page, .site-footer { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.65rem; padding-block: 1.25rem 0.75rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0.2rem 0.5rem; }
  .site-nav a { font-size: 0.8125rem; }
  .highlights, .support-grid { grid-template-columns: 1fr; }
  .highlights { margin-bottom: 2rem; }
  .highlight { padding: 1rem 1.2rem; }
  .hero-intro { font-size: 1rem; }
  .contents a { min-height: 44px; }
  .support-card { padding: 1.25rem; }
  .contact-card { margin-bottom: 1.5rem; }
  .site-footer { flex-direction: column; }
}

@media print {
  :root { color-scheme: light; --background: white; --surface: white; --cream: black; --muted: #333; --lime: #234700; --orange: #8a3300; --line: #bbb; }
  body, .contact-card { background: white; }
  body::before, .skip-link, .site-nav, .contents, .bottom-link { display: none; }
  .site-header, .page, .site-footer { width: 100%; }
  .hero { padding-block: 2rem; }
  h1 { font-size: 2.5rem; }
  .document-layout { display: block; }
  .document { max-width: none; }
  .document section, .support-card, .faq-item { break-inside: avoid; }
}
