:root {
  --color-bg: #f7f7f5;
  --color-surface: #fff;
  --color-text: #171716;
  --color-muted: #686864;
  --color-subtle: #898984;
  --color-border: #deded8;
  --color-border-strong: #b9b9b2;
  --color-accent: #244a3d;
  --color-accent-soft: #e8efeb;
  --color-code: #171918;
  --shadow-card: 0 18px 45px rgba(23, 23, 22, 0.055);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1180px;
  --reading-width: 780px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 65vh;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(36, 74, 61, 0.32);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-text);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(222, 222, 216, 0.88);
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(14px);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-brand {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav-links a,
.footer-links a {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 540;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--color-text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  color: var(--color-subtle);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.language-switcher a {
  padding: 0;
  color: var(--color-muted);
}

.language-switcher [aria-current="page"] {
  color: var(--color-text);
}

.language-switcher .is-unavailable {
  opacity: 0.38;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border: 0;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-label {
  font-size: 0.84rem;
  font-weight: 650;
}

.nav-toggle-icon,
.nav-toggle-icon::before {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before {
  content: "";
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(-6px) rotate(-90deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header {
  padding: clamp(70px, 10vw, 130px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--color-border);
}

.page-header-inner {
  max-width: 820px;
}

.page-title {
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-intro {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.section-shell {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-shell + .section-shell {
  border-top: 1px solid var(--color-border);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--color-accent);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.3;
}

.empty-state {
  max-width: 560px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: var(--color-surface);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 32px;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-identity strong {
  font-size: 0.9rem;
}

.footer-identity span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .site-nav {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2px 0 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 0;
    font-size: 1rem;
  }

  .language-switcher {
    width: 100%;
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .language-switcher a {
    width: auto;
    padding: 0;
    font-size: 0.78rem;
  }

  .section-heading-row,
  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
