:root {
  color-scheme: light dark;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  color: #172033;
  background: #eef3f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  width: min(860px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid #d9e1ea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgb(30 50 80 / 10%);
}

.hero {
  padding-bottom: 24px;
  border-bottom: 1px solid #d9e1ea;
}

.welcome-note {
  padding: 24px;
  border: 1px solid #cfe2df;
  border-radius: 14px;
  background: #f5fbfa;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #09656e;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  background: #e3f3f1;
}

.button-link-disabled {
  border-color: #aab5c0;
  color: #677485;
  cursor: not-allowed;
}

.eyebrow {
  margin: 0;
  color: #176b72;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 12px;
  color: #153c58;
  font-size: 1.35rem;
}

.updated,
.muted {
  color: #596579;
}

.updated {
  margin: 8px 0 20px;
}

nav,
section {
  margin-top: 28px;
  scroll-margin-top: 16px;
}

nav {
  padding: 20px 24px;
  border-radius: 14px;
  background: #edf7f6;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 12px 0;
  border-bottom: 1px solid #d9e1ea;
  border-radius: 0;
  background: transparent;
  margin-top: 0;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.language-menu {
  position: relative;
  margin-left: auto;
}

.language-menu summary {
  cursor: pointer;
  color: #09656e;
  font-weight: 700;
}

.language-menu ul {
  position: absolute;
  z-index: 1;
  right: 0;
  min-width: 150px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #cbd7df;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(30 50 80 / 16%);
  list-style: none;
}

.language-menu li + li {
  margin-top: 4px;
}

.language-menu a[aria-current="page"] {
  font-weight: 750;
  text-decoration: none;
}

nav ul {
  columns: 2;
}

.link-list {
  padding-left: 1.2rem;
}

p,
ul {
  margin: 10px 0;
}

li + li {
  margin-top: 6px;
}

a {
  color: #09656e;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid #ef9c39;
  outline-offset: 4px;
  border-radius: 2px;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: #e8edf3;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

strong {
  color: #853d24;
}

@media (max-width: 600px) {
  main {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  nav ul {
    columns: 1;
  }

  .site-nav {
    align-items: stretch;
  }

  .language-menu {
    margin-left: 0;
  }

  .language-menu ul {
    right: auto;
    left: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #e7edf5;
    background: #101722;
  }

  main {
    border-color: #354152;
    background: #182230;
    box-shadow: none;
  }

  .hero,
  .site-nav {
    border-color: #354152;
  }

  .welcome-note {
    border-color: #365450;
    background: #172c2e;
  }

  .button-link:hover {
    background: #244346;
  }

  .button-link-disabled {
    border-color: #667587;
    color: #aab6c5;
  }

  .language-menu ul {
    border-color: #47566a;
    background: #182230;
    box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
  }

  .eyebrow,
  a {
    color: #71d4d2;
  }

  h2 {
    color: #a9d8ef;
  }

  .updated,
  .muted {
    color: #b4bfce;
  }

  nav {
    background: #1b3439;
  }

  .site-nav {
    background: transparent;
  }

  code {
    background: #2c3949;
  }

  strong {
    color: #ffc0a6;
  }
}
