/* SPDX-License-Identifier: Apache-2.0
 * 中文：readll 原创编辑式官网；不控制设备和刷机组件内部样式。
 * English: Original editorial readll website, separate from device and installer internals.
 */
:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --ink: #252920;
  --muted: #62675c;
  --rule: #d2d4c5;
  --accent: #a23d24;
  --leaf: #e5e9d9;
  --mono: "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: transparent; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
.page-width { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 16px; z-index: 30; background: var(--ink); color: white; padding: 10px 18px; opacity: 0; pointer-events: none; }
.skip:focus { opacity: 1; pointer-events: auto; }
.masthead { display: flex; gap: 32px; align-items: center; min-height: 88px; padding: 0 48px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: baseline; font-size: 38px; font-weight: 800; letter-spacing: -2.8px; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 26px; margin-left: 8px; letter-spacing: 0; }
.masthead-note { font: 10px/1.4 var(--mono); letter-spacing: .7px; }
.masthead nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 13px; }
.masthead .nav-install { border-left: 1px solid var(--rule); padding-left: 30px; color: var(--accent); font-weight: 650; }
.opening { display: grid; grid-template-columns: 1.04fr 1fr; gap: 44px; padding-block: 76px 65px; align-items: center; }
.kicker { font: 10px/1.6 var(--mono); letter-spacing: 1.6px; margin: 0 0 24px; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.35; letter-spacing: -2.5px; margin: 0 0 25px; font-weight: 730; }
.accent { color: var(--accent); }
.opening-description { font-size: 16px; color: var(--muted); line-height: 2; margin: 0 0 30px; }
.opening-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.button:hover { text-decoration: none; background: var(--leaf); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: #414938; }
.button.secondary { background: transparent; }
.inline-link { display: inline-flex; gap: 20px; align-items: center; font-size: 13px; font-weight: 600; }
.compatibility { font-size: 10px; color: var(--muted); margin-top: 26px; }
.reading-desk { min-height: 495px; position: relative; background: var(--leaf); padding: 20px 24px 35px; border: 1px solid #d3d9c3; }
.desk-label { display: flex; justify-content: space-between; font: 9px/1.5 var(--mono); color: #525a45; letter-spacing: 1.3px; }
.book-proof { margin: 26px 0 0 26px; width: 190px; padding: 9px; background: #faf9f3; border: 1px solid #c6cabd; transform: rotate(-4deg); box-shadow: 5px 12px 18px #25292013; }
.book-proof img { border: 1px solid var(--rule); width: 100%; }
.book-proof figcaption { display: flex; justify-content: space-between; gap: 5px; font: 8px/1.6 var(--mono); padding: 10px 2px 2px; }
.feed-proof { position: absolute; width: min(315px, 74%); right: 22px; bottom: 65px; padding: 20px; border: 1px solid #c8cbbf; background: #fcfbf5; box-shadow: 5px 9px 18px #2529200d; transform: rotate(3deg); }
.proof-label, .feed-foot { display: flex; justify-content: space-between; gap: 10px; font: 8px/1.5 var(--mono); color: var(--muted); margin: 0; }
.proof-label span { letter-spacing: 0; }
.feed-heading { font-size: 22px; font-weight: 650; letter-spacing: -1px; margin: 18px 0; }
.feed-example { display: flex; gap: 10px; align-items: center; padding: 15px 0; border-top: 1px solid var(--rule); font-size: 12px; }
.source-chip { flex: 0 0 27px; height: 27px; border: 1px solid #bbc2b1; text-align: center; line-height: 25px; color: #525a45; font-size: 11px; }
.feed-example small { display: block; margin-top: 3px; font-size: 9px; color: var(--muted); }
.feed-example > span:last-child { margin-left: auto; }
.chosen { border-left: 2px solid var(--accent); margin-left: -8px; padding-left: 6px; color: var(--accent); }
.feed-foot { border-top: 1px solid var(--rule); padding-top: 14px; }
.desk-caption { position: absolute; bottom: 18px; left: 24px; font-size: 10px; color: #525a45; }
.manifesto { border-block: 1px solid var(--rule); padding-block: 23px; display: flex; justify-content: space-between; gap: 25px; align-items: baseline; }
.manifesto p { margin: 0; font: 25px/1.4 Georgia, "Times New Roman", serif; }
.manifesto strong { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 23px; letter-spacing: -1px; margin-right: 8px; }
.manifesto em { color: var(--accent); }
.manifesto > span { font-size: 12px; color: var(--muted); }
.reading-section { padding-block: 75px; }
.section-heading { margin-bottom: 35px; }
.section-heading .kicker { margin-bottom: 15px; }
h2 { font-size: 36px; line-height: 1.4; letter-spacing: -1.4px; font-weight: 650; margin: 0 0 16px; }
.section-heading > p:last-child { color: var(--muted); margin: 0; font-size: 14px; }
.reading-paths { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.reading-path { padding: 32px; }
.reading-path + .reading-path { border-left: 1px solid var(--rule); }
.rss-path { background: #eceee3; }
.path-top { display: flex; align-items: center; gap: 14px; font: 10px/1.5 var(--mono); letter-spacing: 1.1px; margin-bottom: 26px; }
.path-index { font: italic 32px/1 Georgia, serif; color: var(--accent); }
.path-top img { margin-left: auto; }
h3 { font-size: 24px; line-height: 1.5; letter-spacing: -.5px; margin: 0 0 15px; }
.reading-path > p { font-size: 14px; color: var(--muted); min-height: 76px; margin: 0 0 25px; }
.reading-path .inline-link { margin-top: 22px; }
.reading-path .path-note { font-size: 11px; min-height: 0; margin: 22px 0 0; }
.preview-section { border-block: 1px solid var(--rule); background: #e9e9e0; padding-block: 65px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.preview-copy > p:not(.kicker) { color: var(--muted); font-size: 14px; }
.preview-choices { display: grid; margin-top: 28px; }
.preview-choices button { border: 0; border-top: 1px solid #c4c8b9; padding: 17px 8px; display: flex; align-items: center; text-align: left; gap: 24px; font: 11px/1.5 var(--mono); }
.preview-choices button:last-child { border-bottom: 1px solid #c4c8b9; }
.preview-choices button > span:first-child { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.preview-choices button > span:last-child { margin-left: auto; }
.preview-choices button[aria-selected="true"] { background: var(--paper); color: var(--accent); }
.preview-copy .preview-disclaimer { font-size: 10px !important; margin-top: 24px; }
.device-preview { margin: 0; text-align: center; }
#preview-zoom { display: block; position: relative; padding: 11px; width: 246px; max-width: 100%; margin: auto; border: 1px solid #b9bdaf; background: #f9f8f2; border-radius: 6px; box-shadow: 7px 10px 0 #d2d5c7; }
#preview-image { border: 1px solid var(--rule); aspect-ratio: 684/1216; object-fit: contain; width: 100%; }
.zoom-hint { position: absolute; bottom: 22px; right: 20px; background: var(--paper); border: 1px solid var(--rule); font-size: 9px; padding: 4px 8px; }
.device-preview figcaption { font-size: 11px; color: var(--muted); margin-top: 23px; }
.install-section { border-top: 2px solid var(--ink); padding-block: 50px 65px; }
.install-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.install-heading h2 { margin-bottom: 0; }
.install-heading > p { font-size: 12px !important; }
.release-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-block: 1px solid var(--rule); padding-block: 20px; }
.select-wrap { flex: 1; max-width: 430px; }
.select-wrap label, .release-meta dt { display: block; margin-bottom: 7px; font-size: 10px; color: var(--muted); }
select { border: 1px solid #bfc3b4; background: var(--paper); padding: 10px 12px; width: 100%; min-height: 44px; border-radius: 2px; font-size: 13px; }
.release-meta { display: flex; gap: 45px; margin: 0; }
.release-meta dd { margin: 0; font: 12px/1.8 var(--mono); }
.delivery-note { font-size: 11px; color: var(--muted); margin: 14px 0 30px; }
.install-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.install-method + .install-method { padding-left: 40px; border-left: 1px solid var(--rule); }
.install-method .kicker { margin-bottom: 12px; color: var(--accent); }
.install-method > p:not(.kicker) { color: var(--muted); font-size: 13px; }
.install-action { min-height: 100px; display: flex; align-items: center; padding-block: 15px; }
#flash-help { font-size: 12px; }
#flash-help p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.install-method .installation-caution { font-size: 11px !important; min-height: 65px; }
code { font: .95em var(--mono); }
.build-notes { border-top: 1px solid var(--rule); margin-top: 35px; padding-top: 22px; display: grid; grid-template-columns: 180px 1fr; gap: 25px; }
.build-notes h3 { font-size: 13px; margin: 0; }
.build-notes ul { font-size: 12px; color: var(--muted); margin: 0; padding-left: 18px; }
.integrity-links { display: flex; gap: 25px; font-size: 11px; margin: 25px 0 0; color: var(--accent); }
.colophon { border-top: 2px solid var(--ink); padding-block: 35px 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.closing-line { display: flex; align-items: start; gap: 40px; }
.closing-line p { font: italic 20px/1.3 Georgia, serif; margin: 0; }
.closing-line p span { font: 10px/2 var(--mono); color: var(--muted); }
.footer-links { display: flex; gap: 25px; font-size: 12px; }
.upstream-note a, .license-notes a { text-decoration: underline; text-underline-offset: 3px; }
.license-notes { width: 100%; border-top: 1px solid var(--rule); padding-top: 18px; font-size: 12px; color: var(--muted); }
.license-notes summary { color: var(--ink); width: fit-content; }
.license-notes ul { padding-left: 20px; }
.license-notes li { margin-block: 7px; }
.provenance { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--rule); padding-top: 18px; width: 100%; margin: 0; color: var(--muted); font-size: 10px; }
#preview-dialog { width: min(620px, 92vw); max-height: 94dvh; padding: 20px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
#preview-dialog::backdrop { background: #252920aa; }
.dialog-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 16px; margin: 0; letter-spacing: 0; }
.dialog-heading button { padding: 7px 12px; border: 1px solid var(--rule); font-size: 12px; }
#preview-full { max-height: 78dvh; width: auto; margin: auto; }
@media (min-width: 1500px) {
  .opening { padding-block: 95px 85px; }
  .reading-desk { min-height: 530px; }
  .book-proof { width: 210px; }
}
@media (max-width: 1050px) {
  .page-width { width: calc(100% - 64px); }
  .masthead { padding-inline: 32px; }
  .masthead-note { display: none; }
  .opening { gap: 25px; }
  .opening-actions { gap: 18px; }
  .opening-actions .button { font-size: 12px; gap: 18px; }
  .book-proof { margin-left: 4px; width: 175px; }
  .reading-desk { min-height: 480px; }
  .feed-proof { right: 12px; bottom: 55px; }
  .reading-path { padding: 25px; }
  .release-meta { gap: 25px; }
}
@media (max-width: 720px) {
  .page-width { width: calc(100% - 40px); }
  .masthead { min-height: 76px; padding: 15px 20px; gap: 15px; flex-wrap: wrap; }
  .brand { font-size: 32px; }
  .masthead nav { gap: 18px; font-size: 12px; }
  .masthead .nav-install { padding-left: 16px; }
  .masthead nav > a:first-child { display: none; }
  .opening { grid-template-columns: 1fr; gap: 35px; padding-block: 45px 35px; }
  h1 { font-size: clamp(36px, 8vw, 55px); letter-spacing: -1.5px; }
  .opening-description { font-size: 15px; }
  .compatibility { margin-top: 20px; }
  .reading-desk { min-height: 470px; width: 100%; max-width: 500px; justify-self: center; }
  .book-proof { width: 180px; margin-left: 14px; }
  .manifesto { display: block; padding-block: 20px; }
  .manifesto > span { display: block; margin-top: 10px; }
  .reading-section { padding-block: 45px; }
  h2 { font-size: 29px; letter-spacing: -1px; }
  .reading-paths { grid-template-columns: 1fr; }
  .reading-path + .reading-path { border-left: 0; border-top: 1px solid var(--rule); }
  .reading-path > p { min-height: 0; }
  .preview-section { padding-block: 40px; }
  .preview-grid { grid-template-columns: 1fr; gap: 35px; }
  .install-section { padding-block: 35px 45px; }
  .install-heading { display: block; }
  .install-heading > p { margin-top: 18px !important; }
  .release-strip { display: block; }
  .select-wrap { max-width: none; }
  .release-meta { flex-wrap: wrap; margin-top: 18px; }
  .install-methods { grid-template-columns: 1fr; gap: 30px; }
  .install-method + .install-method { border-left: 0; border-top: 1px solid var(--rule); padding: 30px 0 0; }
  .install-method .installation-caution { min-height: 0; }
  .install-action { min-height: 85px; }
  .build-notes { grid-template-columns: 1fr; gap: 10px; }
  .closing-line { gap: 30px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .provenance { display: block; padding-bottom: 45px; }
  .provenance span { display: block; margin-top: 10px; }
}
@media (max-width: 370px) {
  .masthead { column-gap: 10px; }
  .masthead nav { gap: 12px; }
  .masthead nav > a:nth-child(2) { display: none; }
  .reading-desk { padding-inline: 16px; }
  .book-proof { margin-left: 0; }
  .feed-proof { width: 86%; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
