@font-face {
  font-family: "Instrument Serif";
  src: url("/media/instrument-serif.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1b2424;
  --muted: #455353;
  --line: #cbd1cc;
  --paper: #fafaf7;
  --sky: #d0e4e5;
  --accent: #9b371f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }
.top { border-bottom: 1px solid #aabec0; background: var(--sky); }
.nav, .footer, nav, .brand, .action { display: flex; align-items: center; }
.nav { justify-content: space-between; min-height: 72px; gap: 12px; }
.brand { gap: 9px; text-decoration: none; font: 32px/1 var(--serif); }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
nav { gap: 28px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; }
.language { border-left: 1px solid #aabbb8; padding-left: 24px; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: white; z-index: 3; }
.skip:focus { top: 6px; }
.hero { overflow: hidden; background: var(--sky); border-bottom: 1px solid #aabec0; }
.hero-inner { position: relative; display: flex; align-items: center; min-height: min(565px, 68svh); }
.scene {
  position: absolute; right: -3%; top: 2%; width: 57%; height: 97%; object-fit: contain; pointer-events: none;
}
.intro { position: relative; width: 47%; padding: 42px 0 48px; }
h1, h2, .footer-name { font-family: var(--serif); font-weight: 400; }
.intro h1 { font-size: 112px; line-height: .98; }
.lead { max-width: 360px; margin-top: 18px; font-size: 23px; line-height: 1.36; text-wrap: balance; }
.sub { max-width: 350px; margin-top: 10px; color: var(--muted); font-size: 16px; }
.action {
  justify-content: space-between; gap: 22px; width: fit-content; min-height: 48px; margin-top: 28px;
  padding: 10px 18px; background: var(--ink); color: white; border-radius: 5px; font-size: 15px;
  font-weight: 600; text-decoration: none;
}
.action:hover { background: #334844; }
.action span { font-size: 19px; line-height: 1; }
.terms { margin-top: 9px; font-size: 13px; color: var(--muted); }
.preview { padding-block: 48px 72px; }
h2 { font-size: 50px; line-height: 1.14; }
:lang(zh-Hans) .preview h2 { font: 500 33px/1.36 -apple-system, "PingFang SC", sans-serif; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 26px; }
.screenshot {
  display: grid; justify-items: center; padding: 26px 20px 0; height: 380px; overflow: hidden;
  background: #dee5d6; border-top: 1px solid #bac4b1;
}
figure:nth-child(2) .screenshot { background: #f2d7c6; border-color: #d4beab; }
figure:nth-child(3) .screenshot { background: #d7e2ec; border-color: #b3c4d2; }
.screenshot img {
  display: block; width: min(100%, 220px); height: auto; align-self: start;
  border: 3px solid var(--ink); border-radius: 24px; transition: transform .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .screenshot:hover img { transform: translateY(-4px); }
}
figcaption { padding-top: 16px; }
h3 { font-size: 20px; font-weight: 550; line-height: 1.4; }
figcaption p { max-width: 33ch; margin-top: 5px; color: var(--muted); font-size: 15px; }
footer { border-top: 1px solid var(--line); }
.footer { flex-wrap: wrap; justify-content: space-between; padding-block: 20px; gap: 8px 20px; }
.footer-name { font-size: 25px; text-decoration: none; }
.document { min-height: 65vh; }
.article { max-width: 720px; margin: auto; padding: 58px 24px 80px; }
.article h1 { font-size: 60px; line-height: 1.1; overflow-wrap: anywhere; text-wrap: balance; }
:lang(zh-Hans) .article h1 { font-size: 40px; line-height: 1.24; }
.article h2 { margin-top: 30px; font-size: 29px; }
:lang(zh-Hans) .article h2 { font-family: inherit; font-size: 23px; font-weight: 550; }
.article p, .article li { margin-top: 12px; overflow-wrap: anywhere; }
.article .opening { margin-top: 22px; font-size: 19px; }
.mail { color: var(--accent); font-weight: 600; display: inline-block; padding-block: 5px; }
.questions { margin: 34px 0 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-size: 17px; font-weight: 550; }
details p { padding: 0 0 18px; color: var(--muted); }
.article details p { margin: 0; }
@media (max-width: 840px) {
  .wrap { width: calc(100% - 56px); }
  .intro h1 { font-size: 82px; }
  .lead { font-size: 20px; }
  .gallery { gap: 15px; }
  .screenshot { height: 270px; padding: 16px 14px 0; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 58px; }
  .brand { font-size: 27px; gap: 5px; }
  .brand img { width: 26px; height: 26px; border-radius: 5px; }
  nav { gap: 14px; }
  nav a { font-size: 13px; }
  .language { padding-left: 12px; }
  .hero-inner { display: block; min-height: auto; padding: 26px 0 min(52svh, 282px); }
  .intro { width: 100%; padding: 0; }
  .intro h1 { font-size: 76px; }
  .lead { margin-top: 9px; font-size: 20px; max-width: 28ch; }
  .sub { margin-top: 6px; font-size: 15px; max-width: 38ch; }
  .action { margin-top: 16px; min-height: 44px; }
  .terms { margin-top: 5px; }
  .scene { top: auto; bottom: 0; right: 0; width: 100%; height: min(52svh, 278px); object-position: center bottom; }
  .preview { padding-block: 26px 42px; }
  h2 { font-size: 38px; }
  :lang(zh-Hans) .preview h2 { font-size: 26px; }
  .gallery { grid-template-columns: 1fr; gap: 28px; margin-top: 16px; }
  .screenshot { height: 300px; padding-top: 20px; }
  figcaption { padding-top: 10px; }
  .footer { padding-block: 14px; }
  .footer-name { font-size: 23px; }
  .article { padding: 36px 20px 54px; }
  .article h1 { font-size: 46px; }
  :lang(zh-Hans) .article h1 { font-size: 33px; }
}
@media (max-width: 620px) and (max-height: 700px) {
  .hero-inner { padding-top: 16px; padding-bottom: 132px; }
  .scene { height: 132px; }
  .intro h1 { font-size: 62px; }
}
@media (min-width: 621px) and (max-height: 560px) {
  .nav { min-height: 48px; }
  .hero-inner { min-height: 0; }
  .intro { width: 56%; padding: 14px 0; }
  .intro h1 { font-size: 52px; }
  .lead { font-size: 17px; margin-top: 4px; max-width: none; }
  .sub { font-size: 14px; line-height: 1.4; margin-top: 4px; max-width: 40ch; }
  .action { margin-top: 10px; min-height: 42px; }
  .terms { margin-top: 4px; }
  .scene { width: 43%; }
  .preview { padding-top: 18px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 32px); }
  nav { gap: 9px; }
  .language { padding-left: 9px; }
}
