:root {
  --ink: #142033;
  --muted: #3e4c5e;
  --paper: #f6f4ef;
  --white: #fffdf9;
  --line: #d9d3c7;
  --rule: #8c7344;
  --serif: "EB Garamond", "Noto Sans SC", Georgia, serif;
  --sans: Lato, "Noto Sans SC", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

:lang(zh-Hans) body {
  font-family: "Noto Sans SC", Lato, sans-serif;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--rule);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-140%);
}

.skip:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.legal-bar,
.header-inner,
.wrap {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
}

.lang button {
  min-width: 52px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

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

.kicker {
  margin: 0 0 8px;
  color: var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2 {
  font-family: "Noto Sans SC", var(--serif);
}

.meta {
  margin: 0 0 28px;
  color: var(--muted);
}

h2 {
  margin: 32px 0 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}

p,
li {
  max-width: 68ch;
}

ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

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

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
}

.policy-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer {
  background: var(--ink);
  color: #f6f4ef;
  padding: 28px 0 32px;
}

.site-footer p {
  margin: 0;
  color: #ddd6c8;
}

@media (max-width: 720px) {
  .legal-bar,
  .header-inner,
  .wrap {
    width: min(760px, calc(100% - 28px));
  }

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

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