:root {
  color-scheme: light;
  --navy: #0f1e36;
  --navy-rgb: 15, 30, 54;
  --gold: #c7a25a;
  --gold-rgb: 199, 162, 90;
  --ink: #111111;
  --white: #ffffff;
  --stone: #f5f1e8;
  --page-bg: var(--stone);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: var(--navy);
  --text-muted: #4b5668;
  --header-bg: rgba(245, 241, 232, 0.88);
  --line: rgba(var(--navy-rgb), 0.18);
  --line-strong: rgba(var(--navy-rgb), 0.32);
  --button-bg: rgba(var(--navy-rgb), 0.06);
  --button-hover: rgba(var(--navy-rgb), 0.12);
  --focus: #8f6310;
  --shadow: 0 24px 70px rgba(var(--navy-rgb), 0.12);
  --header-height: 4.75rem;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #091321;
  --surface: rgba(15, 30, 54, 0.74);
  --surface-strong: var(--navy);
  --text: var(--white);
  --text-muted: #c0c8d4;
  --header-bg: rgba(9, 19, 33, 0.88);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --button-bg: rgba(255, 255, 255, 0.07);
  --button-hover: rgba(255, 255, 255, 0.13);
  --focus: #f0c66f;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--page-bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 5rem 5rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 28%, rgba(var(--gold-rgb), 0.12), transparent 30rem),
    linear-gradient(180deg, transparent 58%, rgba(var(--navy-rgb), 0.04));
  pointer-events: none;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--surface-strong);
  background: var(--text);
  border-radius: 0.4rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0.8rem clamp(1rem, 4vw, 3.75rem);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(9.5rem, 18vw, 13.5rem);
  min-height: 2.75rem;
  border-radius: 0.35rem;
}

.brand-lockup {
  width: 100%;
  height: auto;
}

.brand-lockup--light,
.hero__logo--light {
  display: block;
}

.brand-lockup--dark,
.hero__logo--dark {
  display: none;
}

html[data-theme="dark"] .brand-lockup--light,
html[data-theme="dark"] .hero__logo--light {
  display: none;
}

html[data-theme="dark"] .brand-lockup--dark,
html[data-theme="dark"] .hero__logo--dark {
  display: block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  background: var(--button-bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  background: var(--button-hover);
  border-color: var(--gold);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle__icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__icon--moon {
  display: block;
}

.theme-toggle__icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.theme-toggle__label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 6.5rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -2;
  width: min(84vw, 72rem);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(var(--gold-rgb), 0.24);
  border-radius: 50%;
  opacity: 0.72;
}

.hero::after {
  position: absolute;
  z-index: -2;
  width: min(64vw, 54rem);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(var(--gold-rgb), 0.13);
  border-radius: 50%;
}

.hero__ornament {
  position: absolute;
  top: 50%;
  z-index: -1;
  width: clamp(2rem, 7vw, 6rem);
  height: 44%;
  border-block: 1px solid rgba(var(--gold-rgb), 0.42);
  opacity: 0.55;
}

.hero__ornament--left {
  left: 0;
  border-right: 1px solid rgba(var(--gold-rgb), 0.42);
}

.hero__ornament--right {
  right: 0;
  border-left: 1px solid rgba(var(--gold-rgb), 0.42);
}

.hero__content {
  width: min(100%, 48rem);
  padding: clamp(2rem, 5vw, 4.2rem);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__logo-wrap {
  display: block;
  width: clamp(12.5rem, 33vw, 20.5rem);
  margin: 0 auto 0.8rem;
}

.hero__logo {
  width: 100%;
  height: auto;
}

.brand-line {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(18rem, 65%);
  margin: 1.35rem auto 1.65rem;
}

.hero__rule::before,
.hero__rule::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.hero__rule span {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
  transform: rotate(45deg);
}

h1 {
  max-width: 13ch;
  margin: 0 auto;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero__copy {
  max-width: 45rem;
  margin: 1.65rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.76;
}

.status-panel {
  display: flex;
  max-width: 39rem;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 2rem auto 0;
  padding: 1rem 1.15rem;
  text-align: left;
  background: rgba(var(--gold-rgb), 0.09);
  border: 1px solid rgba(var(--gold-rgb), 0.46);
  border-radius: 0.5rem;
}

.status-panel__marker {
  flex: 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.36rem;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.28rem rgba(var(--gold-rgb), 0.13);
}

.status-panel p {
  margin: 0;
}

.status-panel__label {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-panel__text {
  margin-top: 0.2rem !important;
  color: var(--text-muted);
  line-height: 1.55;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.85rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.primary-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.primary-link:hover svg {
  transform: translateX(0.2rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.75rem);
  color: var(--text-muted);
  background: var(--header-bg);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-footer p {
  margin: 0;
}

.foundry-endorsement {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  text-decoration: none;
}

.foundry-endorsement img {
  width: 1.8rem;
  height: 1.8rem;
}

.foundry-endorsement strong {
  color: var(--text);
  font-weight: 700;
}

.foundry-endorsement:hover strong {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

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

.noscript-note {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: 28rem;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

@media (max-width: 43rem) {
  :root {
    --header-height: 4.25rem;
  }

  .site-header {
    padding-inline: 1rem;
  }

  .header-brand {
    width: 9rem;
  }

  .theme-toggle {
    padding-inline: 0.72rem;
  }

  .theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero {
    padding: 2.25rem 0.85rem 2.75rem;
  }

  .hero::before {
    width: 42rem;
  }

  .hero::after {
    width: 30rem;
  }

  .hero__content {
    padding: 2rem 1.2rem 2.25rem;
    border-radius: 0.6rem;
  }

  .hero__logo-wrap {
    width: min(15rem, 68vw);
  }

  .brand-line {
    letter-spacing: 0.09em;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero__copy {
    font-size: 1rem;
    line-height: 1.66;
  }

  .status-panel {
    padding: 0.9rem;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding-block: 1.1rem;
    text-align: center;
  }
}

@media (max-width: 24rem) {
  .header-brand {
    width: 7.75rem;
  }

  .theme-toggle {
    min-width: 2.75rem;
    padding-inline: 0.7rem;
  }

  .hero__content {
    padding-inline: 1rem;
  }
}

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

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

@media (forced-colors: active) {
  .hero__rule span,
  .status-panel__marker {
    forced-color-adjust: none;
  }

  .hero__content,
  .status-panel,
  .theme-toggle {
    border: 1px solid CanvasText;
  }
}
