:root {
  color-scheme: dark;
  --background: #0b0e15;
  --surface: #151925;
  --foreground: #f4f0e8;
  --muted: #aaa49b;
  --outline: #303541;
  --coral: #e76443;
  --gold: #e2b84e;
  --green: #67b994;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  border-bottom: 1px solid var(--outline);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

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

.page-shell {
  padding-block: 64px 88px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--foreground);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

p,
ul {
  margin-block: 0 18px;
}

ul {
  padding-left: 1.25rem;
}

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

.lede {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.1rem;
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--surface);
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.page-link-primary {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.page-link-primary:hover {
  color: white;
}

.notice {
  margin-top: 30px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--surface);
  color: var(--muted);
}

.policy-content,
.changelog {
  margin-top: 50px;
}

.policy-section,
.release {
  padding-block: 30px;
  border-top: 1px solid var(--outline);
}

.policy-section > :last-child,
.release > :last-child {
  margin-bottom: 0;
}

.release-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.release-header h2,
.release-header p {
  margin: 0;
}

.release-header p {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 42px;
  border-top: 1px solid var(--outline);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 620px) {
  .header-inner,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-block: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .page-shell {
    padding-block: 48px 68px;
  }

  .release-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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