:root {
  color-scheme: light;
  --paper: #faf9f5;
  --ink: #272621;
  --muted: #605e53;
  --line: #d4d0c6;
  --clay: #984b35;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
.wrap { width: min(91%, 1310px); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -10rem; z-index: 2; background: var(--paper); padding: .5rem; }
.skip:focus { top: .5rem; }
.masthead, nav, .brand, .button, .copy-row { display: flex; align-items: center; }
.masthead { min-height: 79px; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 1rem; }
.brand { font: 1.55rem var(--serif); gap: .85rem; }
.mark { display: inline-block; position: relative; width: 33px; height: 32px; }
.mark::before, .mark::after { content: ""; position: absolute; width: 14px; height: 25px; transform: skewY(-18deg); background: #be6447; left: 1px; top: 7px; }
.mark::after { background: #403e35; left: 19px; top: 1px; }
nav { gap: clamp(1.25rem, 3.6vw, 3.5rem); }
nav a:not(.button):hover, .brand:hover { text-decoration: underline; text-underline-offset: .28em; }
.button { display: inline-flex; justify-content: center; min-height: 44px; padding: .65rem 1.35rem; gap: .65rem; background: var(--ink); color: var(--paper); border-radius: 10px; border: 0; }
.button:hover { background: #494639; }
.hero { text-align: center; padding: clamp(2.8rem, 3.6vw, 3.5rem) 0 2.6rem; }
.product { margin: 0; font: italic 1.5rem Georgia, serif; color: var(--clay); }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h1 { margin: 1rem 0 1.6rem; font-size: clamp(3rem, 5.6vw, 5.2rem); }
.lead { font-size: clamp(1.15rem, 1.65vw, 1.5rem); margin: 0; }
.secondary { margin: .25rem 0 2rem; color: var(--muted); font-size: 1.12rem; }
.primary { padding: .9rem 1.65rem; font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
i { margin-inline: .5rem; color: var(--muted); font-style: normal; }
.principle { background: #ede9de; border-radius: 18px; display: grid; grid-template-columns: 43% 57%; align-items: center; padding: 2.4rem clamp(1.25rem,3vw,3rem); }
.principle img { display: block; max-width: 100%; width: 538px; height: auto; }
h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); margin: 0 0 1.35rem; }
h3 { margin: 0 0 .7rem; font-size: 1.25rem; font-weight: 500; }
.principle p, .requirements p, .release p { color: var(--muted); }
.host::before { content: ""; display: block; margin: 1.8rem 0 1rem; width: 2rem; border-top: 2px solid #be6447; }
.requirements, .release { display: grid; border-top: 1px solid var(--line); margin-top: 2.25rem; padding: 2.5rem .4rem 0; gap: 2.1rem; }
.requirements { grid-template-columns: 1fr 1fr 1fr; }
.requirements p { margin: 0; }
.release { grid-template-columns: 1fr 1fr; padding-bottom: 4rem; }
.release .edition { font-size: 1.2rem; color: var(--ink); }
.release .status { color: var(--clay); }
details { align-self: start; border-left: 1px solid var(--line); padding: .4rem 0 .4rem 2rem; min-width: 0; }
summary { font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; }
details[open] summary::after { content: "−"; }
.filename, code { overflow-wrap: anywhere; }
.filename { font-size: .88rem; }
.hash-label { font: .9rem Consolas, monospace; margin: 1rem 0 .35rem; }
code { user-select: all; font: 1rem/1.55 Consolas, monospace; }
.copy-row { flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
#feedback { font-size: .94rem; }
#feedback[data-state="success"] { color: #496047; }
#menu { background: transparent; border: 0; padding: .65rem .3rem; min-height: 44px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead { flex-wrap: wrap; min-height: 65px; padding-block: .55rem; column-gap: .6rem; row-gap: 0; }
  .brand { font-size: 1.3rem; }
  nav { width: 100%; display: grid; gap: 0; }
  nav a, nav .button { display: block; padding: .75rem .2rem; background: transparent; color: var(--ink); border-radius: 0; border-top: 1px solid var(--line); }
  nav .button:hover { background: transparent; text-decoration: underline; }
  .hero { padding: 2.6rem 0; }
  .product { font-size: 1.2rem; }
  h1 { max-width: 6em; margin-inline: auto; }
  .secondary { font-size: 1rem; margin-bottom: 1.55rem; }
  .meta { font-size: .8rem; }
  .principle, .requirements, .release { grid-template-columns: 1fr; }
  .principle { gap: .8rem; padding: 1.5rem 1.1rem; }
  .wide { display: none; }
  .requirements, .release { gap: 1.3rem; padding-top: 1.75rem; }
  .requirements h2 { margin: 0; }
  details { padding: 0; border: 0; width: 100%; }
}
