:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #25283b;
  --muted: #595c69;
  --accent: #40428c;
  --lavender: #eeedf8;
  --line: #dad9df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}
.shell {
  max-width: 1136px;
  width: calc(100% - 72px);
  margin-inline: auto;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
a:hover,
button:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  margin: 0;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.3rem);
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  letter-spacing: -0.035em;
}
p {
  margin: 0.8rem 0;
}
:lang(zh) h1,
:lang(zh) h2 {
  letter-spacing: -0.025em;
  line-height: 1.25;
}
header,
footer {
  border-block-end: 1px solid var(--line);
}
.masthead,
.footer-row,
nav,
.brand {
  display: flex;
  align-items: center;
}
.masthead {
  min-height: 76px;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  gap: 0.65rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand img {
  border-radius: 10px;
}
nav {
  gap: 1.4rem;
}
nav > a,
nav > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 0.92rem;
  text-decoration: none;
  font-weight: 550;
  background: transparent;
  border: 0;
}
nav > a:hover,
nav > button:hover {
  text-decoration: underline;
}
.home-header {
  margin: clamp(2.8rem, 7vw, 6rem) 0 2.25rem;
}
.intro {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}
.home-header .intro {
  margin-top: 1.2rem;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
figure {
  margin: 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
}
.feature figure {
  display: grid;
  align-items: center;
  background: #efe7f4;
}
.feature-copy {
  align-self: center;
  padding: clamp(1.6rem, 4.3vw, 3.8rem);
}
.feature-copy h2 a {
  text-decoration: none;
}
.feature-copy p {
  color: var(--muted);
  margin: 1.1rem 0 1.6rem;
}
.action {
  background: var(--accent);
  color: white;
  border-radius: 0.7rem;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.85rem;
  font-weight: 650;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
}
.action:hover {
  background: #303271;
  color: white;
}
.already {
  margin: 2.7rem 0 clamp(3rem, 7vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.already h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.already > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
}
.text-link,
.ordinary,
.back {
  display: inline-flex;
  min-height: 44px;
  gap: 0.45rem;
  align-items: center;
}
.text-link,
.back {
  font-weight: 650;
  color: var(--accent);
}
.ordinary {
  color: var(--muted);
}
.article {
  margin: 1.7rem 0 4rem;
}
.article-top {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 2.1rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
}
.article-top h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.article-top figure {
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 0.85rem;
}
figcaption {
  padding: 0.65rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.reading {
  margin-inline: auto;
  max-width: 710px;
  font-size: 1.08rem;
  line-height: 1.76;
}
.reading section {
  margin: 2.25rem 0;
}
.reading h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}
.finish {
  background: var(--lavender);
  border-radius: 0.95rem;
  padding: 1.25rem 1.6rem 1.4rem;
}
.finish p {
  margin: 0 0 0.9rem;
}
.troubleshooting {
  margin-top: clamp(2.6rem, 6vw, 4.4rem);
}
.troubleshooting ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}
.troubleshooting li {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.troubleshooting a,
.resources a {
  color: var(--accent);
  font-weight: 650;
}
.troubleshooting p {
  color: var(--muted);
  margin: 0.45rem 0;
}
.common-questions {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.common-questions h2 {
  margin-bottom: 1.2rem;
}
.common-questions details {
  border-bottom: 1px solid var(--line);
}
.common-questions summary {
  padding-block: 0.9rem;
  cursor: pointer;
  font-weight: 650;
}
.common-questions summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.common-questions p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.reading section[id] {
  scroll-margin-top: 1.5rem;
}
.information {
  margin-block: clamp(1.7rem, 5vw, 4rem);
}
.information h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}
.resources {
  padding-inline-start: 1.3rem;
}
.resources a {
  overflow-wrap: anywhere;
}
footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.footer-brand {
  font-weight: 650;
  text-decoration: none;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: white;
  padding: 0.65rem 1rem;
  z-index: 10;
}
.skip:focus {
  top: 0.65rem;
}
.choice {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  max-width: 45rem;
  margin: 0 auto 1rem;
}
.choice p {
  margin: 0 0 0.65rem;
}
.choice > div {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.choice button {
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 36px);
  }
  .masthead {
    min-height: 65px;
    gap: 0.4rem;
  }
  .masthead nav {
    gap: 0.8rem;
  }
  .brand {
    font-size: 1rem;
    gap: 0.4rem;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .feature,
  .article-top {
    grid-template-columns: 1fr;
  }
  .feature-copy {
    padding: 1.4rem;
  }
  .article-top {
    gap: 1rem;
    padding-top: 0.9rem;
  }
  .article-top figure {
    max-width: 31rem;
  }
  .already,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
  .footer-row nav {
    gap: 0.9rem;
    flex-wrap: wrap;
  }
  .choice {
    margin: 0 1rem 1rem;
  }
}
@media (max-width: 360px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.6rem;
  }
}
.choice:not([hidden]) {
  position: fixed;
  z-index: 5;
  inset: auto 1rem 1rem;
  width: fit-content;
  max-width: min(45rem, calc(100% - 2rem));
  margin: 0 auto;
  box-shadow: 0 0.3rem 1.55rem #25283b26;
}
body:has(.choice:not([hidden])) {
  padding-bottom: 11rem;
}
