:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --paper-deep: #efe8dc;
  --ink: #24211d;
  --muted: #6d655c;
  --soft: #ded6c9;
  --rule: #cfc4b5;
  --sage: #496856;
  --brick: #9a4e3d;
  --blue-ink: #31485d;
  --white: #fffdf8;
  --shadow: rgba(62, 51, 39, 0.08);
  --max: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(73, 104, 86, 0.08) 0, rgba(73, 104, 86, 0.08) 1px, transparent 1px, transparent 100%),
    var(--paper);
  background-size: 72px 100%;
  color: var(--ink);
  font-family: "Open Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-ink);
  text-decoration-color: rgba(49, 72, 93, 0.34);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--brick);
  text-decoration-color: rgba(154, 78, 61, 0.52);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  border-bottom: 1px solid var(--soft);
  background: rgba(248, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 32px;
  border: 1px solid var(--sage);
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(73, 104, 86, 0.16), transparent 42%),
    var(--white);
  box-shadow: inset 4px 0 0 rgba(154, 78, 61, 0.32);
}

.brand-name {
  font-family: "Literata", "Songti SC", "STSong", Georgia, serif;
  font-size: 19px;
  font-weight: 650;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.main {
  flex: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: end;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Literata", "Songti SC", "STSong", Georgia, serif;
  font-weight: 650;
  line-height: 1.24;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 48px;
}

h2 {
  margin: 0 0 18px;
  font-size: 27px;
}

h3 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.lede {
  margin: 24px 0 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.hero-note {
  border-left: 2px solid var(--sage);
  padding: 4px 0 4px 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero-note strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(207, 196, 181, 0.74);
}

.section:last-child {
  border-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
}

.section-kicker {
  margin: 0;
  color: var(--brick);
  font-size: 14px;
  font-weight: 700;
}

.body-copy {
  max-width: 720px;
}

.body-copy p {
  margin: 0 0 16px;
}

.body-copy ul {
  margin: 14px 0 0;
  padding-left: 1.2em;
}

.body-copy li + li {
  margin-top: 8px;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.52);
  text-decoration: none;
}

.text-link:hover {
  border-color: rgba(154, 78, 61, 0.48);
  background: rgba(255, 253, 248, 0.82);
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--muted);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 34px;
  margin: 28px 0 0;
}

.meta-item {
  padding-top: 14px;
  border-top: 1px solid var(--soft);
}

.meta-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  margin: 0;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 92px;
  color: var(--muted);
  font-size: 14px;
}

.legal-aside p {
  margin: 0 0 16px;
}

.legal-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--brick);
}

.legal-content {
  max-width: 740px;
}

.legal-content section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid rgba(207, 196, 181, 0.72);
}

.legal-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--soft);
  background: var(--paper-deep);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.placeholder {
  color: var(--brick);
  font-weight: 700;
}

@media (max-width: 780px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .main {
    padding: 46px 0 64px;
  }

  .hero,
  .split,
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 17px;
  }

  .hero-note,
  .legal-aside {
    position: static;
  }

  .section {
    padding: 42px 0;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .topbar-inner,
  .main,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

  .links-row {
    display: grid;
  }
}
