:root {
  color-scheme: dark;
  --background: #101d1d;
  --panel: #172b28;
  --line: #38534a;
  --ink: #ecf1e7;
  --muted: #b5c6bd;
  --accent: #c4dfaa;
  --active: #203831;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .23em; }
a:hover { color: var(--ink); }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden], html[data-language="sl"] body [lang="en"]:not(button), html[data-language="en"] body [lang="sl"]:not(button) { display: none !important; }
.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; left: 24px; top: 0; padding: 12px; background: var(--panel); transform: translateY(-150%); z-index: 1; }
.skip:focus { transform: none; }
.masthead { min-height: 72px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-weight: 650; font-size: 1.26rem; letter-spacing: -.05em; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); padding-inline: 1px; }
.hub { font-size: .92rem; }
.languages { margin-inline-start: auto; display: flex; gap: 5px; }
.languages button {
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.languages button[aria-pressed="true"] { color: var(--accent); border-color: var(--line); background: var(--panel); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); align-items: center; gap: 44px; padding: clamp(42px, 8vw, 88px) 0; }
.eyebrow, .highlight-label { margin: 0 0 12px; font: 500 .9rem/1.45 ui-monospace, monospace; color: var(--muted); }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; }
h1 { font-size: clamp(2.5rem, 6.8vw, 5.3rem); line-height: .98; max-width: 680px; }
h1 span { display: block; color: var(--accent); }
.intro { max-width: 57ch; color: var(--muted); margin: 20px 0 17px; }
.section-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; }
.highlight { border-block: 1px solid var(--line); border-inline-start: 3px solid var(--accent); background: var(--panel); padding: clamp(19px, 3vw, 34px); }
.highlight p { margin: 0; }
.highlight .highlight-value { color: var(--accent); font: 400 clamp(3.6rem, 7.5vw, 6rem)/1.12 Georgia, serif; letter-spacing: -.065em; white-space: nowrap; }
.percent { font-size: .59em; margin-left: .06em; }
.highlight .highlight-proof { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 11px; color: var(--muted); }
.highlight-proof strong { color: var(--ink); }

.section { padding: 29px 0 43px; border-top: 1px solid var(--line); scroll-margin-block: 16px; }
.section-heading { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); align-items: baseline; gap: 9px 30px; margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.05; }
.section-heading p, .note, details p { margin: 0; color: var(--muted); max-width: 72ch; }
.comparison { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 10px 15px; color: var(--muted); }
th, td { border-top: 1px solid var(--line); padding: 10px 14px; text-align: right; }
th:first-child { text-align: left; }
thead th { color: var(--muted); font-size: .92rem; font-weight: 500; vertical-align: bottom; }
tbody th { font-weight: 540; }
.best { color: var(--accent); background: var(--active); }
.note { margin-top: 16px; }
details { margin-top: 10px; }
summary { padding: 10px 0; cursor: pointer; color: var(--accent); min-height: 44px; }
.elf { padding-bottom: 24px; }
.elf .section-heading { margin-bottom: 0; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 32px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 690px) {
  .wrap { width: calc(100% - 32px); }
  .hero, .section-heading { grid-template-columns: 1fr; }
  .hero { gap: 22px; }
  .highlight { max-width: 360px; }
  th, td { padding-inline: 8px; }
  caption { padding-inline: 8px; }
}

@media (max-width: 375px) {
  .masthead { gap: 12px; }
  .comparison { font-size: .92rem; }
  th, td { padding-inline: 6px; }
}
