:root {
  --bg: #090907;
  --bg-deep: #040402;
  --surface: rgba(8, 8, 6, 0.74);
  --surface-strong: rgba(6, 6, 5, 0.86);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(245, 212, 69, 0.28);
  --text: #f6efd7;
  --muted: rgba(246, 239, 215, 0.72);
  --soft: rgba(246, 239, 215, 0.5);
  --accent: #f5d445;
  --accent-soft: rgba(245, 212, 69, 0.12);
  --page: 1180px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --space-1: 10px;
  --space-2: 14px;
  --space-3: 18px;
  --space-4: 22px;
  --space-5: 28px;
  --space-6: 34px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(245, 212, 69, 0.11), transparent 26rem),
    radial-gradient(circle at 84% 12%, rgba(245, 212, 69, 0.08), transparent 22rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 52%, #0c0c08);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
blockquote {
  font-family: "Spectral", Georgia, serif;
}

.shell {
  width: min(calc(100% - 32px), var(--page));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.surface {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--surface);
  border: 1px solid var(--line);
}

.topbar,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-radius: 999px;
}

.topbar {
  margin-bottom: 18px;
}

.brand {
  min-width: 0;
}

.domain {
  display: inline-block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-switch button,
.footer-link {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
}

.lang-switch button {
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--accent);
  color: #17150b;
}

.content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.section {
  display: grid;
  gap: var(--space-4);
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
}

.section-header {
  display: grid;
  gap: var(--space-1);
}

.section-kicker {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-lead,
.prose p,
.copy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card {
  border-radius: var(--radius-lg);
}

.footer {
  margin-top: 18px;
  color: var(--soft);
}

.footer-meta {
  display: grid;
  gap: 0;
}

.footer-project {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-note {
  margin: 0;
}

.footer-link {
  border-color: var(--line);
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 20px), var(--page));
    padding-top: 16px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch button {
    flex: 1;
  }

  .domain,
  .section-title,
  .page-title {
    max-width: none;
  }

  .footer-link {
    width: 100%;
    text-align: center;
  }
}
