:root {
  --bg: #f6f5f2;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #d8d4cc;
  --link: #0b3d91;
  --link-hover: #072a63;
  --accent: #2f5d3a;
  --nav-height: 3.25rem;
  --max: 52rem;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e8efe6 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e7eef6 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(8px);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: inherit;
}

.brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav > a,
.nav summary {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
  list-style: none;
}

.nav > a:hover,
.nav summary:hover {
  color: var(--link);
}

.nav details {
  position: relative;
}

.nav details summary::-webkit-details-marker {
  display: none;
}

.nav details[open] summary {
  color: var(--link);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
}

.nav-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: #f0eee8;
  color: var(--link);
}

.site-main {
  padding: 2.25rem 0 4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: inherit;
}

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 0.5rem;
}

.hero__brand {
  width: min(16rem, 70vw);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
}

.button:hover {
  color: #fff;
  filter: brightness(1.05);
}

.button--ghost {
  background: transparent;
  color: var(--accent);
}

.button--ghost:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.prose {
  max-width: var(--max);
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.prose h1 {
  margin-top: 0;
  font-size: 2rem;
}

.prose p,
.prose li {
  max-width: 42rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.news-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-list a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table.downloads {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

table.downloads th,
table.downloads td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.downloads th {
  background: #efece5;
  font-size: 0.9rem;
}

table.downloads td.muted {
  color: var(--text-muted);
}

.note {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-elevated));
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.55rem 0;
  }

  .site-header {
    height: auto;
  }
}
