:root {
  --ink: #172231;
  --ink-soft: #596574;
  --paper: #f3f5f7;
  --panel: #ffffff;
  --line: #d9dee5;
  --accent: #a43f69;
  --accent-dark: #7e3155;
  --focus-ring: rgba(164, 63, 105, 0.24);
}

:root[data-theme="dark"] {
  --ink: #eaf0f7;
  --ink-soft: #aebccc;
  --paper: #10151c;
  --panel: #18212c;
  --line: #344151;
  --accent: #d66d99;
  --accent-dark: #f0a7c4;
  --focus-ring: rgba(214, 109, 153, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

.theme-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.theme-toggle-state {
  padding: 2px 6px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 4px;
  font-size: 11px;
}

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

.info-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.info-hero {
  padding: 68px 0 38px;
  border-bottom: 1px solid var(--line);
}

.info-kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

.info-lede {
  max-width: 68ch;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 64px;
  padding: 48px 0 30px;
}

.info-content {
  min-width: 0;
  max-width: 76ch;
}

.info-content section + section {
  margin-top: 46px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.info-content h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.info-content h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.info-content p,
.info-content ul,
.info-content ol {
  margin: 0 0 16px;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.info-content li + li {
  margin-top: 8px;
}

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

.section-nav {
  align-self: start;
  position: sticky;
  top: 24px;
  padding-top: 3px;
}

.section-nav p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.section-nav a:hover {
  color: var(--ink);
}

.info-note {
  margin: 24px 0;
  padding: 16px 18px;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-note strong {
  display: block;
  margin-bottom: 4px;
}

.source-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.source-table th,
.source-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.source-table th {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 4%, var(--panel));
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-table tr:last-child td {
  border-bottom: 0;
}

.source-table a {
  color: var(--ink);
  font-weight: 750;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.contact-action:hover {
  border-color: var(--accent);
}

@media (max-width: 800px) {
  .info-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-nav {
    position: static;
    order: -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .section-nav p {
    display: none;
  }

  .section-nav a {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .info-shell {
    width: min(100% - 22px, 1120px);
  }

  .info-hero {
    padding: 46px 0 30px;
  }

  .info-hero h1 {
    font-size: 42px;
  }

  .info-lede {
    font-size: 16px;
  }

  .theme-toggle,
  .contact-action {
    min-height: 44px;
  }

  .info-layout {
    padding-top: 30px;
  }

  .info-content h2 {
    font-size: 27px;
  }

  .info-content p,
  .info-content li {
    font-size: 15px;
  }

  .source-table {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
