:root {
  --red: #e03933;
  --red-2: #ff4a42;
  --red-deep: #560d0a;

  --bg-0: #0a0605;
  --bg-1: #170a09;
  --bg-2: #2b0f0d;

  --text-0: #f5f0ec;
  --text-1: #c2a89a;
  --text-2: #8f7a70;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-max: 72rem;
  --measure: 68ch;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Layout rhythm tokens — reused globally by current and future pages */
  --section-gap: clamp(2rem, 1.6rem + 1.6vw, 3.25rem);
  --hero-gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  --heading-body-gap: var(--space-xs);
  --heading-body-gap-sm: var(--space-2xs);
  --subsection-gap: var(--space-md);
  --body-content-gap: var(--space-md);
  --card-gap: var(--space-sm);

  /* Logo */
  --logo-height: 1.5rem;
  --logo-height-lg: 1.875rem;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-1);
  color: var(--text-0);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

a {
  color: var(--red-2);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--text-0);
}

/* Global heading-weight hierarchy — H1 is always the boldest heading on
   the page; do not set page-specific heading weights. */
h1 {
  font-weight: 900;
}

h2 {
  font-weight: 800;
}

h3 {
  font-weight: 700;
}

h4 {
  font-weight: 600;
}

h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  margin: 0 0 var(--heading-body-gap);
}

h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem);
  margin: 0 0 var(--heading-body-gap);
}

h3 {
  font-size: 1.1rem;
  margin: var(--subsection-gap) 0 var(--heading-body-gap-sm);
}

h4 {
  font-size: 1rem;
  margin: var(--subsection-gap) 0 var(--heading-body-gap-sm);
}

p {
  max-width: var(--measure);
  color: var(--text-1);
  margin: 0 0 1rem;
}

.site-header {
  border-bottom: 1px solid var(--bg-2);
  background: var(--bg-1);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.site-logo img {
  height: var(--logo-height);
  width: auto;
}

.site-footer .site-logo {
  margin-right: 0;
  margin-bottom: var(--space-md);
}

.site-footer .site-logo img {
  height: var(--logo-height-lg);
}

.primary-nav,
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.primary-nav {
  display: none;
}

.primary-nav a,
.footer-nav a {
  color: var(--text-1);
  text-decoration: none;
}

.primary-nav a:hover,
.footer-nav a:hover {
  color: var(--red-2);
}

.mobile-nav {
  position: relative;
}

.mobile-nav__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--bg-2);
  border-radius: 0.5rem;
  color: var(--text-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mobile-nav__toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav__toggle::after {
  content: "▾";
  margin-left: 0.4rem;
}

.mobile-nav[open] .mobile-nav__toggle::after {
  content: "▴";
}

.mobile-nav__toggle:hover,
.mobile-nav__toggle:focus-visible {
  color: var(--red-2);
}

.mobile-nav__list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem;
  min-width: 10rem;
  list-style: none;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 0.5rem;
}

.mobile-nav__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  border-radius: 0.25rem;
  color: var(--text-1);
  text-decoration: none;
}

.mobile-nav__list a:hover,
.mobile-nav__list a:focus-visible {
  color: var(--red-2);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.btn--primary {
  background: linear-gradient(180deg, var(--red) -40%, var(--red-deep) 100%);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--red-deep);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border: 1px solid var(--bg-2);
}

.hero {
  padding-block: var(--hero-gap);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--body-content-gap);
}

section {
  padding-block: var(--section-gap);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
  margin-top: var(--body-content-gap);
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.notice {
  background: var(--bg-1);
  border-left: 3px solid var(--red);
  border-radius: 0.25rem;
  padding: 1rem 1.25rem;
}

.faq-item {
  border-bottom: 1px solid var(--bg-2);
  padding-block: 1rem;
}

.faq-item:first-child {
  border-top: 1px solid var(--bg-2);
}

.site-footer {
  border-top: 1px solid var(--bg-2);
  background: var(--bg-1);
  padding-block: var(--space-lg);
  margin-top: var(--section-gap);
}

.footer-nav {
  margin-bottom: var(--space-sm);
}

.footer-note {
  color: var(--text-2);
  font-size: 0.875rem;
  max-width: var(--measure);
}

@media (min-width: 640px) {
  .primary-nav {
    display: flex;
  }

  .mobile-nav {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header .site-logo img {
    height: var(--logo-height-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
