:root {
  color-scheme: dark;
  --night: #080a10;
  --night-soft: #11151e;
  --slate: #56637a;
  --slate-light: #9aa8bd;
  --gold: #e2a13d;
  --gold-soft: #efca85;
  --paper: #eee5d2;
  --mist: #c0c8d4;
  --line: rgba(226, 161, 61, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 14%, rgba(112, 130, 159, 0.18), transparent 35rem),
    linear-gradient(145deg, #080a10, #10141d 58%, #090b11);
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #ffe0a3;
}

.landing {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: min(84vh, 900px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 9, 14, 0.92) 0%, rgba(7, 9, 14, 0.62) 42%, rgba(7, 9, 14, 0.14) 76%),
    linear-gradient(0deg, var(--night) 0%, transparent 36%),
    url("/identity/thamyris-sunlit-apparition-banner-1500x500.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 28%, rgba(239, 202, 133, 0.2), transparent 20rem),
    linear-gradient(180deg, rgba(8, 10, 16, 0.12), rgba(8, 10, 16, 0.7));
}

.hero-wash {
  position: absolute;
  width: 42rem;
  height: 42rem;
  left: -22rem;
  bottom: -25rem;
  border-radius: 50%;
  background: rgba(86, 99, 122, 0.28);
  filter: blur(4rem);
}

.hero-content {
  width: min(92vw, 52rem);
  padding: max(4rem, env(safe-area-inset-top)) 1.5rem 5rem;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.apparition {
  width: clamp(8rem, 22vw, 12rem);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto 2rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(239, 202, 133, 0.52);
  box-shadow:
    0 0 0 0.45rem rgba(8, 10, 16, 0.48),
    0 1.2rem 4rem rgba(0, 0, 0, 0.55),
    0 0 4rem rgba(226, 161, 61, 0.14);
}

.eyebrow,
.document-kind,
.effective,
.status {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 0.9;
}

.tagline {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.introduction {
  max-width: 38rem;
  margin: 2rem auto 0;
  color: var(--mist);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.65;
}

.status {
  display: inline-block;
  margin: 2.3rem 0 0;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(192, 200, 212, 0.35);
  border-radius: 99rem;
  color: var(--mist);
  background: rgba(8, 10, 16, 0.45);
}

.site-footer {
  min-height: 16vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding: 2rem max(1.5rem, calc((100vw - 72rem) / 2));
  color: var(--slate-light);
  border-top: 1px solid rgba(154, 168, 189, 0.12);
}

.site-footer nav,
.document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

.legal {
  min-height: 100vh;
}

.legal-header {
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.35), var(--night)),
    linear-gradient(90deg, rgba(8, 10, 16, 0.76), rgba(8, 10, 16, 0.2)),
    url("/identity/thamyris-sunlit-apparition-banner-1500x500.webp") center / cover no-repeat;
}

.wordmark {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 8vw, 4rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-shadow: 0 2px 18px #000;
}

.legal-header p {
  margin: 0.8rem 0 0;
  color: var(--gold-soft);
  font-style: italic;
}

.document {
  width: min(90vw, 47rem);
  margin: -2rem auto 0;
  padding: clamp(2rem, 6vw, 4rem);
  background: rgba(16, 20, 29, 0.96);
  border: 1px solid rgba(154, 168, 189, 0.16);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.36);
}

.document-kind {
  margin: 0 0 1rem;
  color: var(--gold-soft);
}

.document h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.effective {
  margin: 1.2rem 0 2.5rem;
  color: var(--slate-light);
}

.lede {
  margin: 0 0 3rem;
  padding-bottom: 2.4rem;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  font-size: 1.14rem;
  line-height: 1.75;
}

.document section + section {
  margin-top: 2.8rem;
}

.document h2 {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.document p,
.document li {
  line-height: 1.72;
}

.document li + li {
  margin-top: 0.75rem;
}

.document strong {
  color: #f5ead5;
}

details {
  padding: 1rem 0;
  border-top: 1px solid rgba(154, 168, 189, 0.16);
}

details:last-child {
  border-bottom: 1px solid rgba(154, 168, 189, 0.16);
}

summary {
  color: var(--paper);
  cursor: pointer;
  font-size: 1.05rem;
}

details p {
  margin-bottom: 0.25rem;
  color: var(--mist);
}

.document-footer {
  width: min(90vw, 47rem);
  margin: 0 auto;
  padding: 2rem 0 max(3rem, env(safe-area-inset-bottom));
  align-items: center;
  color: var(--slate-light);
  font-size: 0.86rem;
}

.document-footer span {
  margin-left: auto;
}

@media (max-width: 600px) {
  .hero {
    min-height: 88vh;
    background-position: 62% center;
  }

  .hero-content {
    padding-inline: 1rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .document {
    width: 100%;
    margin-top: -1rem;
    border-inline: 0;
  }

  .document-footer span {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
