/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-bg: #F8F8F5;
  --color-text: #242923;
  --color-text-muted: #72776F;
  --color-accent: #526F85;
  --color-accent-hover: #344D62;
  --color-accent-deep: #344D62;
  --color-accent-light: #E6EDF1;
  --color-border: #E2E5DF;
  --color-surface: #FFFFFF;
  --color-section-muted: #F0F1EB;
  --color-hero-dark: #1a1f23;
  --transition-fast: 0.18s ease;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-weight-body-regular: 400;
  --font-weight-body-medium: 500;
  --font-weight-body-semibold: 600;
  --font-weight-body-bold: 700;
  --font-weight-heading-semibold: 600;
  --font-weight-heading-bold: 700;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --header-height: 4rem;
  --container-max: 72rem;
  --section-space: clamp(3.5rem, 6vw, 5.5rem);
  --hero-min-height: clamp(12rem, 28vh, 19rem);

  --focus-ring: 0 0 0 3px rgba(82, 111, 133, 0.35);
}

/* ==========================================================================
   Base styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-regular);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea,
.btn,
.navbar,
.nav-link {
  font-family: var(--font-body);
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

.text-link {
  color: var(--color-accent-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color var(--transition-fast), background-size var(--transition-fast);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-accent);
  background-size: 100% 1px;
}

.text-link--strong {
  font-weight: var(--font-weight-body-semibold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1,
h2 {
  font-weight: var(--font-weight-heading-bold);
}

h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-heading-semibold);
}

p {
  margin-top: 0;
}

.container {
  max-width: var(--container-max);
}

/* ==========================================================================
   Accessibility and reduced motion
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  padding: 0.625rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

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

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.site-btn {
  font-weight: var(--font-weight-body-semibold);
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.site-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52, 77, 98, 0.22);
}

.site-btn--primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-hover-bg: var(--color-accent-hover);
  --bs-btn-hover-border-color: var(--color-accent-hover);
  --bs-btn-active-bg: var(--color-accent-hover);
  --bs-btn-active-border-color: var(--color-accent-hover);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

.site-btn--ghost {
  --bs-btn-color: var(--color-text);
  --bs-btn-border-color: var(--color-border);
  --bs-btn-hover-bg: var(--color-section-muted);
  --bs-btn-hover-border-color: #d8d9d2;
  --bs-btn-hover-color: var(--color-text);
  --bs-btn-bg: transparent;
}

.site-btn--light {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: var(--color-accent-hover);
  --bs-btn-hover-bg: var(--color-section-muted);
  --bs-btn-hover-border-color: var(--color-section-muted);
  --bs-btn-hover-color: var(--color-text);
}

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header {
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.15s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--color-border);
}

.site-nav {
  --bs-navbar-padding-y: 0;
  min-height: var(--header-height);
}

.site-nav__inner {
  min-height: var(--header-height);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.92;
}

.site-logo__img {
  display: block;
  width: auto;
  height: 2.125rem;
  max-width: min(11rem, 46vw);
  object-fit: contain;
  object-position: left center;
}

.site-logo__img--footer {
  height: 2.375rem;
  max-width: 12rem;
}

.site-nav__links .nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.875rem;
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color var(--transition-fast), background-size var(--transition-fast);
}

.site-nav__links .nav-link:hover,
.site-nav__links .nav-link:focus-visible,
.site-nav__links .nav-link.is-active {
  color: var(--color-accent);
}

.site-nav__links .nav-link.is-active {
  background-size: 100% 2px;
  font-weight: var(--font-weight-body-semibold);
}

.site-nav__signin {
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  text-decoration: none;
}

.site-nav__signin:hover {
  color: var(--color-text);
}

.site-nav__toggle {
  border-color: var(--color-border);
  padding: 0.375rem 0.5rem;
}

.site-nav__toggle:focus {
  box-shadow: var(--focus-ring);
}

@media (max-width: 991.98px) {
  .site-nav__actions {
    padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }

  .site-nav__links {
    padding-top: 0.5rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: var(--hero-min-height);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero__figure,
.hero__scrim,
.hero__content {
  grid-area: 1 / 1;
}

.hero__figure {
  margin: 0;
  width: 100%;
  min-height: inherit;
  background: var(--color-hero-dark);
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: var(--hero-min-height);
  object-fit: cover;
  object-position: center 42%;
}

.hero__scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(248, 248, 245, 0.97) 0%,
    rgba(248, 248, 245, 0.88) 28%,
    rgba(248, 248, 245, 0.45) 48%,
    rgba(248, 248, 245, 0.08) 68%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  min-height: inherit;
}

.hero__copy {
  position: relative;
  max-width: 36rem;
}

.hero__brand-mark {
  position: absolute;
  top: -2.5rem;
  left: -0.15rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-bold);
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.hero__eyebrow-icon {
  font-size: 0.875rem;
  color: var(--color-accent);
}

.hero__rule {
  width: 3rem;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.125rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-bold);
  font-size: clamp(2.25rem, 5vw, 3.625rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

.hero__lead {
  color: var(--color-text);
  font-size: 1.0625rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero__secondary-link {
  font-weight: var(--font-weight-body-semibold);
  font-size: 0.9375rem;
}

@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
  }

  .hero__image {
    min-height: clamp(10.5rem, 26vh, 14rem);
  }

  .hero__scrim {
    background: linear-gradient(
      to top,
      rgba(248, 248, 245, 0.98) 0%,
      rgba(248, 248, 245, 0.92) 38%,
      rgba(248, 248, 245, 0.35) 62%,
      transparent 100%
    );
  }

  .hero__content {
    align-items: flex-end;
    padding-top: clamp(4.5rem, 18vh, 6.5rem);
    padding-bottom: clamp(1.25rem, 4vw, 1.75rem);
  }

  .hero__brand-mark {
    top: -1.5rem;
    font-size: clamp(3.5rem, 22vw, 5rem);
  }

  .hero__copy {
    max-width: none;
  }
}

@media (min-width: 768px) {
  .hero__copy {
    padding-right: 1rem;
  }
}

/* ==========================================================================
   Main content sections
   ========================================================================== */
.section {
  padding: var(--section-space) 0;
}

.section--muted {
  background: var(--color-section-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header--narrow {
  max-width: 38rem;
}

.section__header--center {
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.section__kicker {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.section__title {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section--find-players {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
  border-bottom: 1px solid var(--color-border);
}

.section--games {
  border-top: 1px solid var(--color-border);
}

.section__intro {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 36rem;
}

.section__header-row {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section__aside-link {
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* Find players paths */
.find-paths--editorial {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.find-path {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--color-border);
}

.find-path--feature {
  background: var(--color-accent-light);
}

.find-path__label {
  font-size: 0.625rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.find-path__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent-deep);
  font-size: 1.125rem;
  margin-bottom: 0.875rem;
}

.find-path__icon--sm {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.find-path__row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.find-path__title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin: 0 0 0.5rem;
}

.find-path--feature .find-path__title {
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  max-width: 18ch;
}

.find-path__text {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  max-width: 34rem;
  font-size: 0.9875rem;
}

.find-path__link {
  font-size: 0.9375rem;
  position: relative;
  z-index: 2;
}

.find-paths__secondary .find-path--compact:last-child {
  border-bottom: none;
}

@media (min-width: 992px) {
  .find-paths--editorial {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }

  .find-path--feature {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: clamp(2rem, 3vw, 2.75rem);
  }

  .find-paths__secondary {
    display: flex;
    flex-direction: column;
  }

  .find-paths__secondary .find-path--compact {
    flex: 1;
    display: flex;
    align-items: center;
  }
}

/* Game communities grid */
.game-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.game-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: #fff;
  min-height: 10rem;
  background: var(--color-hero-dark);
}

.game-tile__img {
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.game-tile__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.25rem 1.125rem;
  background: linear-gradient(to top, rgba(20, 24, 27, 0.88) 0%, rgba(20, 24, 27, 0) 100%);
}

.game-tile__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.game-tile__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-semibold);
  font-size: 1.125rem;
  line-height: 1.25;
}

.game-tile__hint {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

.game-tile:hover .game-tile__img,
.game-tile:focus-visible .game-tile__img {
  opacity: 1;
  transform: scale(1.02);
}

.game-tile:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 576px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(9.5rem, auto);
  }

  .game-tile--feature {
    grid-column: span 2;
    min-height: 12rem;
  }

  .game-tile--wide {
    grid-column: span 2;
  }
}

@media (min-width: 992px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(10rem, 11rem);
  }

  .game-tile--feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 100%;
  }

  .game-tile--tall {
    grid-row: span 2;
    min-height: 100%;
  }

  .game-tile--wide {
    grid-column: span 2;
  }
}

/* ==========================================================================
   Community discussion list
   ========================================================================== */
.forum-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
}

.forum-preview__note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.forum-list__head {
  display: none;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .forum-list__head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
}

.forum-preview__badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-right: 0.5rem;
}

.forum-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.forum-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.forum-list__item:hover {
  background: rgba(230, 237, 241, 0.35);
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
}

.forum-list__title {
  font-weight: var(--font-weight-body-semibold);
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color var(--transition-fast), background-size var(--transition-fast);
}

.forum-list__title:hover {
  color: var(--color-accent-deep);
  background-size: 100% 1px;
}

.forum-list__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.forum-list__game {
  font-weight: var(--font-weight-body-medium);
}

.forum-list__category {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  background: var(--color-accent-light);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.forum-list__arrow {
  color: var(--color-text-muted);
  font-size: 1rem;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

/* How it works */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: steps;
}

.steps-list__item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.steps-list__item:last-child {
  border-bottom: none;
}

.steps-list__num {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.steps-list__title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.steps-list__text {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 28rem;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
  }

  .steps-list__item {
    border-bottom: none;
    padding: 1.5rem 0 0;
  }

  .steps-list__text {
    max-width: none;
  }
}

/* Benefits */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.benefits-list__item {
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  color: var(--color-text);
}

.benefits-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.section--cta {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.cta-panel {
  background: var(--color-accent-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-panel__title {
  color: #fff;
  font-weight: var(--font-weight-heading-bold);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto 0.75rem;
}

.cta-panel__text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9375rem;
}

.site-logo--footer {
  margin-bottom: 0.75rem;
}

.site-footer__about {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  max-width: 22rem;
  line-height: 1.55;
}

.site-footer__forum-link {
  font-weight: 600;
  text-decoration: none;
}

.site-footer__heading {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-body-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links li + li {
  margin-top: 0.4rem;
}

.site-footer__links a {
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Simple placeholder pages
   ========================================================================== */
.page-simple {
  padding: var(--section-space) 0;
}

.page-simple h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.page-simple p {
  color: var(--color-text-muted);
  max-width: 40rem;
}

.page-simple a {
  font-weight: 600;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.page-legal {
  padding: clamp(2rem, 5vw, 3rem) 0 var(--section-space);
}

.legal-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.legal-breadcrumb a {
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-header {
  max-width: 42rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.legal-content {
  max-width: 46rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

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

.legal-content a {
  font-weight: var(--font-weight-body-medium);
}

.legal-callout {
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

.legal-callout--notice {
  background: var(--color-section-muted);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.legal-table th {
  background: var(--color-section-muted);
  font-weight: var(--font-weight-body-semibold);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-related {
  max-width: 46rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-related h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.legal-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.legal-related a {
  font-size: 0.9375rem;
  text-decoration: none;
  font-weight: var(--font-weight-body-semibold);
}

.legal-related a:hover {
  text-decoration: underline;
}

.page-not-found__code {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-bold);
  font-size: clamp(3rem, 10vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-accent);
  opacity: 0.35;
  margin: 0 0 0.75rem;
}

.page-not-found__actions {
  max-width: 36rem;
}

.page-not-found__layout {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.page-not-found__figure {
  margin: 0;
  max-width: 22rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-not-found__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-not-found__header {
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 768px) {
  .page-not-found__layout {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
  }

  .page-not-found__figure {
    max-width: none;
  }
}

.site-nav__links .nav-link--muted {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 319.98px) {
  body {
    font-size: 1rem;
  }

  .hero__actions .site-btn {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .hero {
    --hero-min-height: min(28vh, 19rem);
  }
}
