:root {
  color-scheme: dark;
  --bg: #111323;
  --panel: #1a1d32;
  --text: #f9f4fa;
  --muted: #c3c4d6;
  --accent: #d8c5ff;
  --line: #ffffff24;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--body);
}

a { color: inherit; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

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

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
}

.shell {
  width: min(100% - 8vw, 1160px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.5rem 1rem;
  transform: translateY(-150%);
  background: var(--bg);
}

.skip-link:focus { transform: none; }

.header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  font-size: 1.44rem;
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1;
  text-decoration: none;
}

.brand-period { color: var(--accent); }

.brand-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #dfd1ff75;
  border-radius: 50%;
  color: var(--accent);
}

.brand-icon span {
  position: relative;
  width: 17px;
  height: 7px;
  margin-top: 4px;
  border-radius: 8px;
  background: currentColor;
}

.brand-icon span::before,
.brand-icon span::after {
  position: absolute;
  bottom: 2px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.brand-icon span::before { left: 3px; width: 9px; height: 9px; }
.brand-icon span::after { right: 1px; width: 6px; height: 6px; }

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }

nav a {
  padding-block: 0.45rem;
  color: #e6e3f5;
  font-size: 0.91rem;
  font-weight: 550;
  text-decoration: none;
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(740px, 91svh);
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at right bottom, #78638b, #211f3d 50%, #111323 85%);
}

.hero-image,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  object-fit: cover;
  object-position: center 56%;
}

.hero::after {
  background:
    linear-gradient(0deg, var(--bg), transparent 24%, transparent 88%, #0b0e1e54),
    linear-gradient(90deg, #0b0c22ca 1%, #10112885 42%, #10112812 80%);
  content: "";
}

.hero-inner { padding-block: 9.5rem 7rem; }

.eyebrow {
  margin-bottom: 1.35rem;
  color: #e4d5ff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}

.hero h1 em { color: #e1ccff; }

.hero-copy {
  max-width: 37ch;
  margin-top: 1.6rem;
  color: #ece6f5;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.action {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  margin-top: 1.85rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid #efe4ff;
  border-radius: 100px;
  background: #eadcff;
  color: #251936;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms, transform 150ms;
}

.action:hover { background: #fff6ff; transform: translateY(-2px); }

.atlas, .observe { scroll-margin-top: 2rem; }

.atlas { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 8vw, 6.5rem); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.7rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.section-head p, .observe p {
  max-width: 38ch;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.15rem;
}

.card {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #363653;
}

.card-body { padding: 1.35rem; }

.latin {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.88rem;
}

.latin abbr {
  padding: 0.04rem 0.5rem;
  border: 1px solid #d8c5ff48;
  border-radius: 0.4rem;
  font-weight: 650;
  text-decoration: none;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.card-body > p:not(.latin), details p { color: var(--muted); }

details {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding-top: 0.35rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 640;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after { content: "+" / ""; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "−" / ""; }
summary:hover { color: #fff4ff; }
details p { margin-bottom: 0.75rem; }

.text-link {
  color: var(--accent);
  text-decoration-color: #d8c5ff65;
  text-underline-offset: 0.25em;
}

.text-link:hover { text-decoration-color: currentColor; }

.observe-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.6rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border: 1px solid #ceb1ff30;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at left top, #382b51, #211f36 68%);
}

.observe h2 { margin-bottom: 0.75rem; }

.observe ol {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-inline-start: 1.6rem;
  color: var(--muted);
}

.observe li { padding-inline-start: 0.35rem; }
.observe li::marker { color: var(--accent); font-weight: 750; }
.observe strong { color: var(--text); }

.footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer .brand { color: var(--text); }

@media (max-width: 850px) {
  .section-head { align-items: start; flex-direction: column; }
  .cards { gap: 0.75rem; }
  .card-body { padding: 1rem; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; }
  .hero { min-height: min(670px, 90svh); }
  .hero-image { object-position: 64% center; }
  .hero::after {
    background: linear-gradient(0deg, var(--bg), #11132322 32%, #1011286b),
                linear-gradient(90deg, #0b0c22bd, #10112835);
  }
  .hero-inner { padding-block: 8rem 4rem; }
  .hero h1 { font-size: clamp(3.15rem, 11vw, 4.6rem); }
  .hero-copy { max-width: 32ch; }
  .cards, .observe-inner { grid-template-columns: 1fr; }
  .cards { gap: 1rem; }
  .card-body { padding: 1.2rem; }
  .footer { align-items: start; flex-direction: column; }
}

@media (max-width: 360px) {
  .header-inner { gap: 0.5rem; }
  .header .brand { gap: 0.4rem; font-size: 1.25rem; }
  nav { gap: 0.55rem; }
  nav a { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action { transition: none; }
  .action:hover { transform: none; }
}
