:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --paper-strong: #fbf8f0;
  --ink: #171713;
  --ink-soft: #5f5a4b;
  --line: #d6ccb8;
  --line-strong: #a89f86;
  --accent: #211f1a;
  --brick: #7c2f24;
  --premium: #a88c52;
  --shadow: 0 18px 46px rgba(23, 23, 19, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(247,243,234,0) 360px),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.72;
}

a {
  color: inherit;
}

.topbar,
.wrap,
.footer {
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-mark,
h1,
h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  font-weight: 400;
}

.brand-mark {
  font-size: 24px;
  letter-spacing: 0;
}

.brand-copy,
.nav-links,
.eyebrow,
.panel-kicker,
.muted,
.footer {
  color: var(--ink-soft);
}

.brand-copy {
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 6px;
  font-size: 13px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.42);
}

.wrap {
  padding: 48px 0 72px;
}

.hero,
.document-head {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-soft);
}

.button-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fffdf8;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.panel,
.section,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
}

.panel {
  min-height: 210px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel p:last-child,
.legal-section p,
.legal-section li {
  color: var(--ink-soft);
  font-size: 15px;
}

.section,
.legal-section {
  margin-top: 18px;
  padding: 22px;
}

.split-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.split-links a,
.text-link {
  color: var(--accent);
  text-underline-offset: 4px;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(36, 35, 31, 0.08);
  font-family: "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.92em;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .brand {
    flex-direction: column;
    gap: 2px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .wrap {
    padding-top: 34px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
  }
}
