:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f7f7f7;
  --text: #111;
  --text-secondary: #555;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --accent: #0077a8;
  --accent-soft: #e8f5fb;
  --focus: #0ea5e9;
  --page-width: 70rem;
  --reading-width: 45rem;
  --header-height: 4rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --background: #000;
  --surface: #0c0c0e;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #a1a1aa;
  --border: #27272a;
  --accent: #38bdf8;
  --accent-soft: #082f49;
  --focus: #38bdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 94%, transparent);
}

.header-inner,
.page,
.site-footer {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a,
.language-switch,
.theme-toggle,
.menu-toggle {
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.language-switch,
.theme-toggle,
.menu-toggle {
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.45rem;
}

.language-switch strong {
  color: var(--text);
  font-weight: 650;
}

.theme-toggle,
.menu-toggle {
  min-width: 2.25rem;
  padding: 0.35rem;
  color: var(--text);
}

.menu-toggle {
  display: none;
}

.page {
  min-height: calc(100vh - var(--header-height));
}

.hero {
  padding-block: clamp(5rem, 13vw, 9rem) clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--border);
}

.eyebrow,
.section-label,
.meta,
.status,
.empty-state a,
.text-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.eyebrow,
.section-label,
.meta {
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 17ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 650;
}

.hero-copy {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.link-row a {
  font-size: 0.92rem;
}

.section {
  padding-block: clamp(3.75rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  max-width: 22ch;
  margin-bottom: 0.6rem;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 620;
}

.section-intro {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--text-secondary);
}

.currently-list {
  margin: 0;
  border-top: 1px solid var(--border);
}

.currently-list > div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.currently-list dt {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.currently-list dd {
  margin: 0;
  color: var(--text-secondary);
}

.currently-list dd strong {
  color: var(--text);
  font-weight: 550;
}

.empty-state {
  max-width: var(--reading-width);
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.empty-state p {
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
}

.empty-state p:first-child {
  color: var(--text);
}

.empty-state :last-child {
  margin-bottom: 0;
}

.page-header {
  max-width: var(--reading-width);
  padding-block: clamp(4.5rem, 10vw, 7rem) 3.5rem;
}

.page-header h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.page-header p {
  max-width: 40rem;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.content {
  max-width: var(--reading-width);
  padding-bottom: 5rem;
}

.content section {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
}

.content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 620;
}

.content p,
.content li {
  color: var(--text-secondary);
}

.content strong {
  color: var(--text);
}

.simple-list,
.resource-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.simple-list li,
.resource-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.resource-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.resource-list span {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 52rem) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .section-heading,
  .currently-list > div {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .section-heading {
    gap: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
