:root {
  color-scheme: light dark;
  --page: #f4f4f1;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #161616;
  --muted: #5f5f5f;
  --line: rgba(22, 22, 22, 0.14);
  --inverse: #f8f8f5;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.9), transparent 34rem),
    linear-gradient(145deg, #eeeeea, #fafaf8 55%, #e8e8e4);
  line-height: 1.65;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

main {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.topbar,
.footer-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

.topbar {
  justify-content: space-between;
  padding: 0.5rem 0 1.25rem;
  font-size: 0.9rem;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
}

.language-link {
  color: var(--muted);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 4.5rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  color: var(--inverse);
  background: linear-gradient(140deg, #060606 0%, #2b2b2b 58%, #777 100%);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.16);
}

.hero::after {
  position: absolute;
  top: -5rem;
  right: -3rem;
  width: 14rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.4rem rgba(255, 255, 255, 0.03);
  content: "";
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #c9c9c9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.3rem, 9vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: #dedede;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
}

.page-links {
  margin: 1.4rem 0;
}

.page-links a {
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.sections {
  display: grid;
  gap: 1rem;
}

section {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--surface);
  backdrop-filter: blur(1rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

p,
ul {
  margin: 0.75rem 0 0;
}

li + li {
  margin-top: 0.45rem;
}

footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101010;
    --surface: rgba(27, 27, 27, 0.86);
    --text: #f1f1ed;
    --muted: #b0b0aa;
    --line: rgba(255, 255, 255, 0.15);
  }

  body {
    background: radial-gradient(circle at 10% 0%, #272727, transparent 34rem), #101010;
  }
}

@media (max-width: 36rem) {
  main {
    width: min(100% - 1rem, 52rem);
    padding-top: 0.5rem;
  }

  .hero,
  section {
    border-radius: 1.15rem;
  }
}
