:root {
  color-scheme: light;
  --ink: #142724;
  --paper: #f3f6ee;
  --deep: #173831;
  --dim: #50655e;
  --field: #dce9de;
  --accent: #cfed89;
  --light: #f4fbf3;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --heading: clamp(2.3rem, 5vw, 4.3rem);
  --font: system-ui, "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font); }
h1, h2, h3, p, figure, pre, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: .18rem solid currentColor; outline-offset: .22rem; }

.wrap { width: min(100%, 86rem); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-200%); padding: .6rem 1rem; color: var(--light); background: var(--deep); z-index: 1; }
.skip:focus { transform: none; }
.masthead, .masthead nav, footer .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.masthead, footer .wrap { justify-content: space-between; padding-block: .8rem; }
.masthead a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.name { font-size: 1.1rem; font-weight: 760; text-decoration: none; }
.language { font-weight: 650; }

.hero { background: var(--deep); color: var(--light); }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(0, .86fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3.4rem, 8vw, 8rem); }
h1 { font-size: clamp(2.6rem, 7.6vw, 7.2rem); font-weight: 750; line-height: .99; letter-spacing: -.065em; }
:lang(zh-CN) h1 { letter-spacing: -.075em; line-height: 1.08; }
.hero p { margin-block: 2rem 1.7rem; font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 37ch; }
.action { display: inline-flex; align-items: center; min-height: 2.8rem; background: var(--accent); color: var(--ink); padding: .55em .9em; font-weight: 720; text-decoration: none; }
.action:hover { text-decoration: underline; }
.action:focus-visible { outline-color: var(--light); }

.exchange { background: var(--accent); color: var(--ink); padding: clamp(1.1rem, 3.6vw, 2.6rem); }
.exchange figcaption { font-weight: 750; font-size: 1.24rem; margin-bottom: 1rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { font: .9rem/1.65 ui-monospace, Consolas, monospace; }
.exchange .response { margin-top: .9rem; background: var(--deep); color: var(--light); padding: .9rem 1rem; }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section h2 { font-size: var(--heading); line-height: 1; letter-spacing: -.055em; }
.section h3 { font-size: 1.25rem; line-height: 1.2; }
.section p { max-width: 62ch; }
.section p + p { margin-top: .85rem; }
.flow { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem clamp(2.5rem, 9vw, 8rem); }
.flow dl { display: grid; gap: 1.4rem; }
.flow dt { font-weight: 750; }
.flow dd { margin-top: .18rem; max-width: 59ch; }
.check { background: var(--field); }
.check p { margin-top: 1.25rem; }
.check pre { margin-top: 1.5rem; background: var(--deep); color: var(--light); padding: clamp(1rem, 3vw, 2rem); }
.check .notes { max-width: 69ch; }
.policies h2 { margin-bottom: 1.9rem; }
.policies dl { display: grid; grid-template-columns: minmax(8rem, .46fr) minmax(0, 1fr); gap: .8rem 1.6rem; }
.policies dt { font-weight: 740; }
footer { background: var(--field); }
footer .wrap { min-height: 5rem; }

@media (max-width: 46rem) {
  .masthead { align-items: flex-start; }
  .masthead nav { column-gap: .9rem; row-gap: 0; }
  .hero .wrap, .flow { grid-template-columns: 1fr; }
  .hero .wrap { align-items: start; }
  h1 { font-size: clamp(2.55rem, 10.4vw, 4.7rem); }
  .hero p { margin-top: 1.3rem; }
  .section { padding-block: 3.4rem; }
}

@media (max-width: 25rem) {
  .policies dl { display: block; }
  .policies dd { margin-bottom: 1rem; }
}
