@font-face {
  font-family: Quill Display;
  src: url("./fonts/display.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Quill Icons;
  src: url("./fonts/icons.woff2") format("woff2");
  font-display: block;
}
:root {
  color-scheme: light;
  font-size: clamp(87.5%, calc(78% + .25vw + .09vh), 140%);
  --ink: #202625;
  --muted: #555d5b;
  --faint: #88908a;
  --paper: #f6f4ee;
  --line: #cacbc2;
  --cyan: #15e3dc;
  --heading: "Quill Display", "Noto Serif SC", "Songti SC", SimSun, serif;
  --body: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;
  --header: 68px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; font: 1rem/1.65 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a, button, summary { -webkit-tap-highlight-color: rgba(21,227,220,.25); }
:focus-visible { outline: 3px solid #007c78; outline-offset: 4px; }
.topbar :focus-visible, .footer :focus-visible, .rail :focus-visible { outline-color: var(--cyan); }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: #90f4e8; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 10px; z-index: 50; padding: 8px 16px; background: white; }
.wrap, .topbar-inner { width: min(1240px, calc(100% - 144px)); margin-inline: auto; }
.icon { display: inline-block; font: normal 1em/1 "Quill Icons"; vertical-align: -.09em; flex-shrink: 0; }
.get::before { content: "\f30a"; } .down::before { content: "\f128"; }
.up::before { content: "\f148"; } .external::before, .more::before { content: "\f144"; }
.gh::before { content: "\f3ed"; } .windows::before { content: "\f65e"; }
.stack::before { content: "\f45b"; } .box::before { content: "\f1c8"; }
.sliders::before { content: "\f56b"; } .terminal::before { content: "\f5c3"; }
.next::before { content: "\f285"; } .chevron::before { content: "\f282"; }
.menu::before { content: "\f479"; } .close::before { content: "\f659"; }
.link::before { content: "\f470"; } .shield::before { content: "\f52f"; }
.expand::before { content: "\f14d"; }

/* Navigation */
.topbar { position: sticky; top: 0; z-index: 30; min-height: var(--header); background: #222625; color: #f8f8f3; border-bottom: 1px solid #464b47; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: var(--header); gap: 22px; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 12px; line-height: 1.15; flex-shrink: 0; }
.brand::after { content: ""; width: 1px; height: 30px; margin-left: 12px; transform: skewX(-25deg); background: var(--cyan); }
.brand img { width: 32px; height: 32px; }
.brand strong { display: block; font-size: 1.125rem; font-weight: 750; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 4px; color: #c8cec7; font-size: 0.625rem; letter-spacing: .23em; }
.topnav { display: flex; align-self: stretch; gap: clamp(15px,2.7vw,42px); }
.topnav a { display: grid; align-content: center; position: relative; color: #d7dad4; font-size: 0.875rem; font-weight: 550; white-space: nowrap; }
.topnav a[aria-current], .topnav a:hover { color: white; }
.topnav a::after { content: ""; position: absolute; bottom: 11px; left: 0; right: 0; height: 2px; background: var(--cyan); transform: scaleX(0) skewX(-25deg); transition: transform .15s; }
.topnav a[aria-current]::after, .topnav a:hover::after { transform: scaleX(1) skewX(-25deg); }
.mobile-toggle { color: #fff; background: none; border: 0; padding: 8px; font-size: 1.5rem; }
.rail { position: fixed; z-index: 18; top: 50%; right: 0; transform: translateY(-50%); display: grid; padding: 10px 0; background: #242928; color: #d8dbd7; clip-path: polygon(9px 0,100% 0,100% 100%,0 100%,0 9px); }
.rail::before { content: ""; position: absolute; top: 25px; bottom: 25px; left: 10px; border-left: 1px solid #656c67; }
.rail a { position: relative; display: flex; align-items: center; width: 43px; height: 29px; padding-left: 19px; font: 0.625rem/1 var(--mono); }
.rail a::before { content: ""; position: absolute; left: 8px; width: 5px; height: 5px; background: #c4cbc5; border-radius: 50%; }
.rail a[aria-current] { background: var(--cyan); color: #101817; font-weight: bold; }
.rail a[aria-current]::before { background: #132c2a; border-radius: 0; }
.rail a:hover { text-decoration: underline; }
.rail a:focus-visible { outline-offset: -2px; }

/* First screen */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #f6f3ec; border-bottom: 1px solid #626b61; }
.hero::before, .guide-section::before { content: ""; position: absolute; pointer-events: none; inset: 0; z-index: -1; background-image: repeating-linear-gradient(127deg, transparent 0 195px, #61685413 196px, transparent 197px 374px),linear-gradient(127deg,transparent 0 57%,#e6e5dc70 57% 69%,transparent 69%); }
.hero::after { content: ""; position: absolute; width: clamp(23px,5vw,82px); height: clamp(36px,7vw,110px); left: 0; top: 0; background: #222625; clip-path: polygon(0 0,100% 0,0 100%); z-index: -1; }
.hero-land { position: absolute; z-index: -1; inset: auto 0 0; height: 56%; background: url("./images/valley.webp") center 69% / cover no-repeat; mask-image: linear-gradient(to bottom,transparent 0%,#0006 25%,#000e 65%,black 100%); }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(16px,3vw,50px); min-height: clamp(595px,76vh,795px); padding-top: clamp(54px,8vh,106px); padding-bottom: clamp(124px,16vh,180px); }
.hero-copy { position: relative; z-index: 2; }
.product-type { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: #444e47; font: 600 0.6875rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.product-type span { width: 28px; height: 3px; background: var(--ink); box-shadow: 9px 0 var(--cyan); }
.hero h1 { font: italic 800 clamp(3.0625rem,5.25vw,5.25rem)/1.14 var(--heading); letter-spacing: -.066em; }
.hero-description { color: #3b4541; font-size: clamp(0.875rem,1.15vw,1.0625rem); line-height: 1.9; margin: 21px 0 26px; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 19px 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; position: relative; min-height: 48px; padding: 10px 24px; border: none; background: transparent; font-weight: 700; line-height: 1.4; white-space: nowrap; isolation: isolate; }
.button::before { content: ""; position: absolute; inset: 0; transform: skewX(-15deg); z-index: -1; transition: background .18s, box-shadow .18s; }
.primary { color: #112726; min-width: 185px; font-size: 1.1875rem; margin-inline: 6px; }
.primary::before { background: var(--cyan); box-shadow: 0 3px 0 #107e79; }
.primary:hover::before { background: #51eee4; box-shadow: 0 4px 0 #107e79; }
.triangle { width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.inline-action, .checksum-link { display: inline-flex; align-items: center; gap: 9px; font-size: 0.875rem; font-weight: 600; }
.inline-action:hover, .checksum-link:hover, .archive th a:hover { text-decoration: underline; text-underline-offset: 4px; }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 17px 0 0 2px; color: #39453e; font: 0.75rem/1.4 var(--mono); }
.release-meta span { color: #797f74; }
.hero-preview { position: relative; padding: 5px 0 0; }
.preview-link { position: relative; display: block; transform: perspective(1300px) rotateY(-9deg) rotateZ(-1.3deg); transform-origin: 55% 50%; border: 1px solid #4d5553; border-radius: 5px; box-shadow: 4px 5px 0 -1px #53d7d1, 12px 24px 32px #1c332a39; background: #242927; }
.preview-link img { width: 100%; border-radius: inherit; }
.zoom-mark { position: absolute; bottom: 9px; right: 9px; display: grid; place-items: center; width: 31px; height: 31px; opacity: 0; background: #212625; color: #fff; border: 1px solid #a4afaa; transition: opacity .15s; }
.preview-link:hover .zoom-mark, .preview-link:focus-visible .zoom-mark { opacity: 1; }
.hero-preview figcaption { width: fit-content; margin: 15px 0 0 auto; padding: 1px 6px; font-size: 0.625rem; color: #38443e; letter-spacing: .08em; background: #f7f5eddf; }
.hero-next { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); border: 1px solid #e1ece4; background: #28362e9e; color: white; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }

/* Content screens */
.section { padding: clamp(48px,5.6vw,86px) 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 18px; align-items: baseline; margin-bottom: 32px; }
.section-heading h2 { display: inline-flex; align-items: center; gap: 13px; position: relative; padding-left: 20px; font: italic 800 clamp(2rem,3.4vw,3.3125rem)/1.18 var(--heading); letter-spacing: -.045em; }
.section-heading h2::before { content: ""; position: absolute; left: 1px; top: .15em; bottom: .09em; width: 5px; transform: skewX(-22deg); background: var(--cyan); }
.section-heading > span { color: #59605b; font: 0.625rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .24em; }
.features-section { background: #f6f4ef; }
.feature-list { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #9da59b; }
.feature { position: relative; padding: 23px 24px 18px; border-right: 1px solid var(--line); }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature > .icon:first-child { font-size: 1.8125rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.1875rem; line-height: 1.4; margin-bottom: 8px; }
.feature p { font-size: 0.875rem; color: var(--muted); max-width: 29ch; }
.feature .more { position: absolute; top: 24px; right: 20px; color: #68716c; }
.feature::after { content: ""; display: block; width: 26px; height: 2px; background: #11aaa4; margin-top: 21px; transition: width .18s; }
.feature:hover::after, .feature:focus-visible::after { width: 58px; }
.video-section { background: linear-gradient(123deg,#eeeee7 0 28%,#f4f2ec 28% 77%,#e7e8e2 77%); }
.video-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 32px; }
.video-heading .section-heading { margin: 0; }
.video-heading .inline-action { margin: 20px 0 0 20px; }
.video-slot { position: relative; aspect-ratio: 16/9; background: #282c2d; border: 1px solid #59605f; box-shadow: 5px 5px 0 #d4d6ce; }
.video-slot::before, .video-slot::after { content: ""; position: absolute; width: 24px; height: 14px; pointer-events: none; }
.video-slot::before { top: 11px; left: 11px; border-top: 1px solid #787e7b; border-left: 1px solid #787e7b; }
.video-slot::after { bottom: 11px; right: 11px; border-bottom: 1px solid #787e7b; border-right: 1px solid #787e7b; }
.video-slot iframe { position: relative; z-index: 1; border: 0; height: 100%; width: 100%; display: block; }
.guide-section { position: relative; isolation: isolate; }
.guide-section::before { opacity: .55; }
.guide-layout { display: grid; grid-template-columns: minmax(145px,.24fr) 1fr; gap: clamp(25px,4vw,68px); }
.guide-index { display: flex; flex-direction: column; align-self: start; padding: 2px 0 0; border-top: 1px solid #8b928d; }
.guide-index a { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.guide-index a[aria-selected="true"] { background: var(--ink); color: white; box-shadow: inset 3px 0 var(--cyan); }
.guide-index a:hover:not([aria-selected="true"]) { background: #e4e6dd; }
.guide-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px,3vw,44px); align-items: center; scroll-margin-top: 16px; }
.guide-panel + .guide-panel { margin-top: 20px; }
.enhanced .guide-panel + .guide-panel { margin-top: 0; }
.guide-panel h3 { margin-bottom: 17px; font-size: clamp(1.25rem,2vw,1.75rem); font-weight: 680; line-height: 1.4; }
.guide-panel ol { padding-left: 1.65em; margin: 0; }
.guide-panel li, .guide-panel p { font-size: 0.9375rem; line-height: 1.85; color: #414a45; }
.guide-panel li { padding-left: 3px; margin-bottom: 5px; }
.guide-panel li::marker { color: #336964; font-family: var(--mono); }
.guide-panel p + p, .guide-panel .guide-note { margin-top: 14px; }
.guide-panel .guide-note { border-left: 2px solid #43a79a; padding-left: 12px; font-size: 0.8125rem; }
.guide-panel img { width: 100%; border: 1px solid #959c93; box-shadow: 4px 5px 0 #d9dcd2; }

/* Distribution */
.scenic { position: relative; isolation: isolate; }
.scenic .wrap { position: relative; }
.scene-art { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; pointer-events: none; }
.download-section { background: #f2f0e8; }
.download-art { width: 53%; background: url("./images/valley.webp") 100% 62% / auto 120% no-repeat; mask-image: linear-gradient(90deg,transparent 1%,#0007 30%,#000 60%); }
.download-summary { display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; margin: -7px 0 24px; font-size: 0.8125rem; color: #46524b; }
.download-summary strong { color: var(--ink); font: 700 0.9375rem var(--mono); }
.download-summary span { border-left: 1px solid #8d968d; padding-left: 14px; }
.secondary { min-height: 43px; margin-inline: 5px; font-size: 0.9375rem; }
.secondary::before { border: 1px solid #7d8680; background: #faf9f3; }
.secondary:hover:not(:disabled)::before { border-color: #176460; background: #ddf3ec; }
.secondary:disabled { color: #646c67; }
.secondary:disabled::before { border-style: dashed; background: #f2f2eba8; }
.mirror-area { position: relative; }
.mirror-area details > summary { cursor: pointer; list-style: none; }
.mirror-area details > summary::-webkit-details-marker { display: none; }
.mirror-list { position: absolute; z-index: 5; min-width: 100%; margin: 5px 0 0; list-style: none; padding: 3px 0; background: #fffefa; border: 1px solid #90978e; box-shadow: 0 6px 16px #28322c1c; }
.mirror-list a { display: block; padding: 7px 14px; }
.mirror-list a:hover { background: #d7f7ed; }
.checksum-link { color: #43574d; font-size: 0.8125rem; margin: 22px 0 0; }
.repo-section { background: #f8f4ec; min-height: 230px; }
.repo-section .section-heading { margin-bottom: 23px; }
.repo-section h2 { font-family: Inter, "Segoe UI", sans-serif; font-style: normal; }
.repo-section h2 .icon { font-size: .86em; }
.repo-art { width: 51%; background: url("./images/terminal.webp") 70% center / auto 100% no-repeat; mix-blend-mode: multiply; mask-image: linear-gradient(90deg,transparent,#000 22%); }
.history-section { background: #eeefe8; }
.archive { width: 100%; border-collapse: collapse; font-size: 0.875rem; text-align: left; }
.archive caption { text-align: left; }
.archive thead { background: #2c3230; color: #f2f4eb; }
.archive thead th { padding: 9px 16px; font-size: 0.75rem; font-weight: 550; }
.archive tbody th, .archive td { padding: 13px 16px; border-bottom: 1px solid #bdc5b9; }
.archive tbody th { font: 650 0.9375rem/1.5 var(--mono); }
.archive td { font-variant-numeric: tabular-nums; }
.archive th:last-child, .archive td:last-child { text-align: right; }
.archive-get { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #98a297; background: #f6f7f0; font-size: 0.8125rem; }
.archive-get:hover { background: #d8f6e9; }
.history-more { margin: 20px 0 0; }
.footer { background: #232826; color: #c9d0c7; }
.footer .wrap { min-height: 72px; display: flex; gap: 18px; align-items: center; font-size: 0.8125rem; }
.footer-brand { font-weight: 700; font-size: 1rem; color: white; }
.back-top { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; }
dialog { border: 1px solid #59615b; padding: 0; width: min(1000px,94vw,calc((90dvh - 48px)*1.62)); max-height: 94dvh; background: var(--ink); color: white; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: #151b17c9; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; padding-left: 16px; font-size: 0.875rem; }
.dialog-bar button { width: 44px; height: 44px; border: 0; background: none; color: white; }
dialog img { width: 100%; }

@media (min-width: 1700px) {
  .wrap, .topbar-inner { max-width: 1350px; width: calc(100% - 180px); }
}
@media (max-width: 1100px) {
  .wrap, .topbar-inner { width: calc(100% - 80px); }
  .rail { display: none; }
  .hero-grid { min-height: 568px; padding-top: 58px; padding-bottom: 122px; }
  .guide-panel { grid-template-columns: 1.15fr .85fr; gap: 20px; }
}
@media (max-width: 820px) {
  :root { --header: 58px; }
  .wrap, .topbar-inner { width: calc(100% - 44px); }
  .topbar-inner { flex-wrap: wrap; gap: 0; }
  .brand { min-height: var(--header); }
  .brand strong { font-size: 1rem; }
  .brand img { width: 28px; height: 28px; }
  .brand::after { height: 25px; margin-left: 4px; }
  .topnav { flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
  .topnav a { padding: 10px 0; }
  .topnav a::after { bottom: 4px; }
  .enhanced .topnav { display: none; }
  .enhanced .topnav.is-open { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px 12px; border-top: 1px solid #59605a; padding: 8px 0 13px; }
  .enhanced .topnav a { justify-self: start; }
  .hero-grid { min-height: 485px; gap: 18px; }
  .hero h1 { font-size: clamp(2.3125rem,5.4vw,3.125rem); }
  .hero-description { margin: 16px 0 20px; }
  .wide-only { display: none; }
  .hero-actions { gap: 12px; }
  .primary { min-width: 147px; font-size: 1.0625rem; min-height: 45px; padding-inline: 19px; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .feature { padding: 20px 18px; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature:nth-child(3) { padding-left: 0; }
  .guide-layout { grid-template-columns: 130px minmax(0,1fr); }
  .guide-panel { grid-template-columns: 1fr; }
  .guide-panel img { max-width: 360px; }
  .download-art { width: 44%; background-position: 93% 65%; mask-image: linear-gradient(90deg,transparent,#000a 60%,black); }
}
@media (min-width: 821px) { .mobile-toggle { display: none; } }
@media (max-width: 620px) {
  .section { padding: 39px 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 30px; padding-top: 42px; padding-bottom: 76px; }
  .hero::after { width: 21px; height: 32px; }
  .hero-copy { padding-left: 2px; }
  .product-type { margin-bottom: 13px; font-size: 0.625rem; }
  .hero h1 { font-size: clamp(2.6875rem,10.4vw,3.75rem); }
  .hero-description { max-width: 37ch; }
  .hero-land { height: 45%; }
  .hero-preview { width: min(93%,440px); margin: 0 auto; }
  .hero-preview figcaption { font-size: 0.5625rem; margin-top: 7px; }
  .section-heading { margin-bottom: 22px; gap: 12px; }
  .section-heading h2 { padding-left: 15px; }
  .section-heading > span { font-size: 0.5625rem; letter-spacing: .18em; }
  .feature { padding-right: 12px; }
  .feature .more { right: 12px; top: 20px; font-size: 0.75rem; }
  .feature p { font-size: 0.8125rem; }
  .feature h3 { font-size: 1.0625rem; }
  .video-grid, .guide-layout, .guide-panel { grid-template-columns: 1fr; }
  .video-grid { gap: 21px; }
  .guide-layout { gap: 22px; }
  .guide-index { flex-direction: row; flex-wrap: wrap; gap: 5px; padding-top: 10px; }
  .guide-index a { font-size: 0.8125rem; padding: 5px 8px; border-bottom: 1px solid #bbc3b9; }
  .guide-index .icon { display: none; }
  .guide-panel img { width: 100%; max-width: 420px; }
  .guide-panel p, .guide-panel li { font-size: 0.875rem; }
  .scenic { padding-bottom: 47px; }
  .download-art { width: 100%; opacity: .34; background-size: auto 115%; mask-image: linear-gradient(90deg,transparent 22%,#0005 66%,black); }
  .download-summary { max-width: 370px; gap: 6px 10px; margin: 0 0 21px; font-size: 0.75rem; }
  .download-summary span { padding-left: 10px; }
  .download-actions { gap: 13px; }
  .download-actions .primary, .download-actions .secondary { min-width: 0; padding-inline: 14px; gap: 7px; }
  .download-actions .secondary { font-size: 0.8125rem; }
  .repo-section { min-height: 188px; }
  .repo-art { width: 53%; background-size: auto 77%; background-position: 76% bottom; }
  .archive th.platform, .archive td.platform, .archive th.size, .archive td.size { display: none; }
  .archive thead th, .archive tbody th, .archive td { padding-inline: 7px; }
  .archive td { font-size: 0.75rem; }
  .archive tbody th { font-size: 0.8125rem; }
  .archive-get { padding: 6px 8px; gap: 4px; }
  .footer .wrap { gap: 8px; font-size: 0.75rem; }
  .footer .wrap > span { display: none; }
  .footer-brand { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Each chapter owns the space between the persistent navigation bars. */
:root { --dock: 45px; }
.enhanced { scroll-behavior: auto; overflow: hidden; }
.enhanced body {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--header) minmax(0,1fr) var(--dock);
  overflow: hidden;
}
.enhanced .topbar { grid-row: 1; position: relative; }
.enhanced .topbar-inner { height: calc(var(--header) - 1px); min-height: 0; }
.enhanced main { grid-row: 2; position: relative; min-height: 0; overflow: hidden; isolation: isolate; }
.enhanced main > section {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border-bottom: 0;
  transition: opacity .27s ease-in-out, visibility 0s linear .27s;
}
.enhanced main > section.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .3s ease-in-out, visibility 0s;
}
.enhanced main > section > .wrap { flex: 0 0 auto; margin-block: auto; }
.enhanced .hero-grid { min-height: 100%; padding-block: clamp(42px,6vh,95px) clamp(72px,12vh,165px); }
.enhanced .hero-land { height: 49%; background-position: center 70%; }
.enhanced .hero-next { display: none; }
.release-meta { width: fit-content; padding: 4px 7px; background: #f6f3ebce; }
.enhanced .hero-preview { width: 100%; max-width: min(100%,calc(115vh - 150px)); justify-self: end; }
.enhanced .section { padding-block: clamp(32px,7vh,104px); }
.enhanced .section-heading { margin-bottom: clamp(25px,4vh,57px); }
.enhanced .section-heading h2 { font-size: clamp(2.5625rem,4.5vw,5.1875rem); }
.feature-spread { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(30px,5vw,100px); align-items: center; }
.feature-spread .feature-list { grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #88968d; }
.feature-spread .feature:nth-child(even) { border-right: 0; }
.feature-spread .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
.feature-spread .feature:nth-child(odd) { padding-left: 0; }
.feature-spread .feature:nth-child(even) { padding-left: clamp(16px,2vw,31px); }
.feature-preview { position: relative; }
.feature-preview img { width: 100%; border: 1px solid #7e8880; box-shadow: 7px 8px 0 #d3dad1; }
.feature-preview figcaption { margin-top: 14px; text-align: right; font-size: 0.75rem; color: var(--muted); }
.features-section { background: linear-gradient(125deg,#f7f5ef 0 62%,#eeeee6 62% 82%,#e4e9de 82%); }
.video-section { background: linear-gradient(118deg,#202927 0 23%,#26302e 23% 70%,#202725 70%); color: #f5f4eb; }
.video-grid { grid-template-columns: .5fr 1.5fr; }
.video-heading .section-heading { margin-bottom: 0; }
.video-slot { justify-self: end; width: min(100%,calc((100vh - 220px) * 1.777)); background: #141919; border: 1px solid #58635d; box-shadow: 5px 6px 0 #15201b; }
.java-options { padding: 20px 24px; color: #eaf0e7; background: #26302d; border-top: 3px solid var(--cyan); }
.java-options strong { font-size: 1.0625rem; }
.java-options ul { margin: 12px 0 0; padding: 0; list-style: none; }
.guide-panel .java-options li { display: flex; align-items: center; gap: 9px; color: #eaf0e7; margin: 0; padding: 6px 0; font-size: 0.875rem; border-top: 1px solid #424c47; }
.java-options li::before { content: ""; width: 6px; height: 6px; border: 1px solid #7fc7b5; }
.download-section { background: #f4f2eb; }
.enhanced .download-art { width: 69%; background-size: cover; background-position: 96% 64%; mask-image: linear-gradient(90deg,transparent 0%,#0004 21%,#000c 45%,black 68%); }
.enhanced .download-summary { margin-bottom: 33px; }
.enhanced .repo-section { background: #fff5eb; min-height: 0; }
.enhanced .repo-art { width: 62%; mix-blend-mode: normal; background-position: 75% center; background-size: contain; mask-image: linear-gradient(90deg,transparent,#000 22%,#000 97%,transparent); }
.history-section { background-color: #f1f1e9; }
.enhanced .history-section::before { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: url("./images/valley.webp") center 84% / cover; mask-image: linear-gradient(transparent,#0009); pointer-events: none; }
.history-section .wrap { position: relative; }
.enhanced .footer { grid-row: 3; z-index: 10; border-top: 1px solid #49534b; }
.enhanced .footer .wrap { height: 100%; min-height: 0; }
.footer-brand { font-size: 0.8125rem; }
.footer .page-hint { color: #c3cdc3; font-size: 0.6875rem; }
.page-controls { margin-left: auto; display: flex; height: 100%; align-items: center; gap: 10px; }
.page-controls button { min-width: 36px; height: 34px; color: #ecf5ee; background: transparent; border: 1px solid #626f66; display: grid; place-items: center; }
.page-controls button:hover:not(:disabled) { background: #3e4b44; color: #72f0e2; }
.page-controls button:disabled { opacity: .3; }
.page-position { color: #aab5ad; font: 0.75rem var(--mono); }
.page-position b { color: #75ede2; }
.enhanced .footer .back-top, .touch-hint { display: none; }
.footer .page-hint { display: none; }
.enhanced .footer .page-hint { display: block; }
@media (min-width: 1600px) {
  .wrap, .topbar-inner { width: min(87%,1800px); max-width: none; }
  .hero h1 { font-size: clamp(4.875rem,5vw,7.125rem); }
  .hero-description { font-size: clamp(1.0625rem,1vw,1.3125rem); }
  .guide-panel { gap: 45px; }
  .feature h3 { font-size: 1.4375rem; }
  .feature p, .guide-panel p, .guide-panel li { font-size: 1.0625rem; }
}
@media (max-width: 950px) {
  .feature-spread { gap: 23px; }
  .enhanced .section-heading h2 { font-size: clamp(2.25rem,5.3vw,3.25rem); }
}
@media (max-width: 820px) {
  .enhanced .topnav.is-open { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 22px; background: #252b28; box-shadow: 0 8px 18px #19251d38; }
  .enhanced .download-art { width: 68%; }
  .enhanced .repo-art { width: 58%; }
}
@media (max-width: 620px) {
  :root { --dock: 44px; }
  .enhanced .hero-grid { gap: 20px; padding-block: 26px 45px; align-content: center; }
  .enhanced .hero-preview { width: min(93%,440px); justify-self: center; }
  .enhanced .hero-land { height: 40%; }
  .enhanced .section { padding-block: 28px; }
  .enhanced .section-heading { margin-bottom: 22px; }
  .feature-spread, .video-grid { grid-template-columns: 1fr; }
  .feature-spread { gap: 19px; }
  .feature-spread .feature { padding-block: 13px; }
  .feature > .icon:first-child { font-size: 1.4375rem; margin-bottom: 6px; }
  .feature::after { margin-top: 10px; }
  .feature-preview { width: min(78%,340px); margin: 0 auto; }
  .feature-preview figcaption { font-size: 0.625rem; margin-top: 8px; }
  .video-slot { width: 100%; }
  .enhanced .download-art { width: 100%; height: 46%; top: auto; opacity: 1; background-position: 80% 65%; mask-image: linear-gradient(transparent,#000 75%); }
  .enhanced .download-section, .enhanced .repo-section { padding-bottom: clamp(125px,26vh,260px); }
  .enhanced .repo-art { width: 90%; top: auto; bottom: 2%; height: 39%; background-position: right bottom; background-size: contain; }
  .enhanced .history-section::before { height: 18%; }
  .footer .wrap { gap: 4px; }
  .footer-brand { font-size: 0.6875rem; }
  .page-controls { gap: 6px; }
  .enhanced .footer .page-hint { display: none; }
}
@media (pointer: coarse) { .desktop-hint { display: none; } .touch-hint { display: inline; } }
@media (max-height: 640px) and (min-width: 621px) {
  .enhanced .section { padding-block: 24px; }
  .enhanced .hero-grid { padding-block: 24px 36px; }
  .enhanced .section-heading { margin-bottom: 20px; }
  .enhanced .hero h1 { font-size: clamp(2.5rem,4.4vw,4.25rem); }
  .enhanced .hero-description { margin: 12px 0 16px; }
  .feature { padding-block: 11px; }
  .feature > .icon:first-child { font-size: 1.375rem; margin-bottom: 7px; }
  .feature::after { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .enhanced main > section, .enhanced main > section.is-active { transition: none; }
}
@media (min-width: 821px) {
  .enhanced .hero h1 { font-size: clamp(2.7rem, min(5.45vw,11vh),6.7rem); }
}
@media (max-width: 620px) {
  .hero-description, .feature p, .guide-panel p, .guide-panel li,
  .guide-index a, .topnav a { font-size: clamp(14px,calc(.78rem + .8vw),1.1rem); }
  .enhanced .footer .footer-brand { display: none; }
  .enhanced .footer .page-hint { display: inline; }
}
html:not(.enhanced) main > section { min-height: calc(100svh - var(--header)); }

/* Measure against the chapter itself, after the fixed header and pager. */
.enhanced :is(#features, #video) {
  container: chapter / size;
  padding-block: 0;
}
.enhanced #features > .wrap {
  display: grid;
  block-size: min(100cqh, calc(36cqw + 8rem), 50rem);
  grid-template-rows: max-content minmax(0, 1fr);
  gap: clamp(8px, 2.5cqh, 30px);
  padding-block: clamp(6px, 3cqh, 40px);
}
.enhanced :is(#features, #video) .section-heading { margin: 0; }
.enhanced #features .feature-spread {
  min-block-size: 0;
  grid-template-rows: minmax(0, 1fr);
}
.enhanced #features .feature-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  block-size: 100%;
  min-block-size: 0;
  min-inline-size: 0;
}
.enhanced #features .feature-preview img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: 100%;
  max-block-size: calc(100% - 1.7rem);
  object-fit: contain;
}
.enhanced #features .feature-preview figcaption { margin-top: .35rem; }
#video-title {
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
  letter-spacing: -.035em;
  line-height: 1.04;
  padding-left: .38em;
}
.enhanced #video .video-grid { grid-template-columns: minmax(max-content, .54fr) minmax(0, 1.46fr); }
.enhanced #video .video-slot {
  inline-size: min(100%, calc(88cqh * 16 / 9));
  aspect-ratio: 16 / 9;
}
@media (max-width: 620px) {
  .enhanced #features > .wrap { block-size: min(100cqh, 48rem); }
  .enhanced #features .feature-spread { grid-template-rows: max-content minmax(0, 1fr); gap: clamp(6px, 2cqh, 18px); }
  .enhanced #video .video-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(10px, 4cqh, 25px); }
  .enhanced #video .video-slot { inline-size: min(100%, calc((89cqh - 5rem) * 16 / 9)); justify-self: center; }
}
@container chapter (max-height: 520px) {
  #features .feature-spread .feature {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: .45rem;
    padding-block: clamp(3px, 1.4cqh, 9px);
  }
  #features .feature > .icon:first-child { margin: 0; font-size: 1.15rem; }
  #features .feature h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
  #features .feature p { grid-column: 1 / -1; margin-top: .2rem; line-height: 1.42; max-width: none; }
  #features .feature::after, #features .feature .more { display: none; }
  .enhanced #features .section-heading h2 { font-size: clamp(1.7rem, 9cqh, 3rem); }
}
@container chapter (max-height: 345px) and (min-aspect-ratio: 3/2) {
  .enhanced #features .feature-spread { grid-template-columns: 1.18fr .82fr; grid-template-rows: minmax(0, 1fr); }
  .enhanced #features .feature-preview { width: 100%; }
  #features .feature-spread .feature { padding-block: 3px; }
  #features .feature p { margin-top: 1px; line-height: 1.33; }
}
