:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --paper-deep: #ebe2d2;
  --ink: #201d18;
  --muted: #756d62;
  --rule: #d2c5b2;
  --cinnabar: #a33b2f;
  --shadow: rgba(52, 43, 31, 0.09);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.75), transparent 32rem),
    linear-gradient(180deg, #f8f4ec 0%, var(--paper) 100%);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
}

a {
  color: inherit;
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
}

::selection {
  color: var(--ink);
  background: #dec6b7;
}

.shell {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
  padding-block: 42px 64px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.seal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  color: var(--cinnabar);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
}

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

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

.nav a {
  padding-block: 9px;
  text-decoration: none;
  transition-property: color;
  transition-duration: 150ms;
}

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

.nav a:focus-visible,
.text-link:focus-visible,
.email-link:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 4px;
}

.hero {
  padding-inline: 6px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cinnabar);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12em;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 60px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

.document {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.78);
  box-shadow: 0 24px 70px var(--shadow), inset 0 0 0 5px rgba(255, 255, 255, 0.22);
}

.section {
  padding: 31px 34px 32px;
  border-top: 1px solid var(--rule);
}

.section:first-child {
  border-top: 0;
}

.section-number {
  margin-bottom: 11px;
  color: var(--cinnabar);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
}

h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

h3 {
  margin-bottom: 9px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.section p,
.section li {
  max-width: 65ch;
}

.section p:last-child,
.section ul:last-child {
  margin-bottom: 0;
}

.section p,
.section ul {
  margin-bottom: 12px;
}

ul {
  padding-inline-start: 1.2em;
}

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

.note {
  color: var(--muted);
}

.email-link {
  display: inline-block;
  overflow-wrap: anywhere;
  color: var(--cinnabar);
  font-weight: 600;
  text-decoration-color: rgba(163, 59, 47, 0.45);
  text-underline-offset: 4px;
}

.text-link {
  color: var(--cinnabar);
  text-decoration-color: rgba(163, 59, 47, 0.45);
  text-underline-offset: 4px;
}

.effective-date {
  margin: 24px 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 760px);
    padding-block: 24px 42px;
  }

  .masthead {
    align-items: flex-start;
    margin-bottom: 42px;
  }

  .brand {
    gap: 9px;
  }

  .seal {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero {
    padding-inline: 4px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .document {
    border-radius: 18px;
  }

  .section {
    padding: 25px 22px 27px;
  }

  .footer {
    display: block;
    padding-inline: 4px;
  }

  .footer span {
    display: block;
  }

  .footer span + span {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
