:root {
  --teal: #00c6a7;
  --navy: #0d1b2a;
  --navy-light: #1a2b3c;
  --alice: #f0f8ff;
  --text-light: #e0f0ff;
  --text-muted: #7aa5c0;
}

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

body {
  background: var(--navy);
  color: var(--text-light);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.75;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--navy-light);
}

.nav-logo,
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.nav-logo {
  color: var(--text-light);
  font-size: 1.4rem;
  text-decoration: none;
}

.nav-logo span,
a {
  color: var(--teal);
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch a {
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--teal);
  color: var(--navy);
}

.container {
  hyphens: auto;
  margin: 0 auto;
  max-width: 820px;
  overflow-wrap: anywhere;
  padding: 64px 24px 96px;
}

.back-link {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.85rem;
  gap: 6px;
  margin-bottom: 48px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--teal);
}

.doc-label {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1 {
  color: var(--alice);
  font-size: 2.8rem;
  hyphens: manual;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  overflow-wrap: normal;
}

.doc-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

h2 {
  color: var(--alice);
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

p,
ul {
  color: var(--text-muted);
  margin-bottom: 16px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--text-light);
  font-weight: 500;
}

code {
  color: var(--text-light);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 24px 48px;
  text-align: center;
}

@media (max-width: 640px) {
  nav {
    padding: 16px 20px;
  }

  .container {
    padding: 40px 20px 64px;
  }

  h1 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
  }

  .footer {
    padding: 24px 20px;
  }
}
