/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #183126; background: #f7faf7; scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container, .nav-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: 0; left: 16px; transform: translateY(-150%); padding: 8px 16px; background: #137a57; color: white; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #11a675; outline-offset: 4px; }
.site-header { background: #fbfdfb; border-bottom: 1px solid #dbe9df; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 650; }
.nav-links a:hover, .text-link:hover { color: #137a57; }
.nav-links .github-link { padding: 6px 15px; border: 1px solid #c4dfcf; border-radius: 100px; background: #eef8f1; color: #126344; white-space: nowrap; }
.nav-links .github-link:hover { background: #e1f1e7; color: #0b5b40; }
.nav-links .language-switch { padding: 6px 15px; border: 1px solid #bfd6c7; border-radius: 100px; background: white; }
.hero { overflow: hidden; background: radial-gradient(circle at 77% 44%, #dff3e4, transparent 40%), linear-gradient(145deg, #fbfdfa, #eff7f0); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 44px; min-height: 680px; padding-block: 70px; }
.hero-copy { min-width: 0; }
.eyebrow, .section-kicker { color: #137a57; font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #20ae72; box-shadow: 0 0 0 5px #daf1e2; }
.hero h1 { font-size: clamp(2.55rem, 3.8vw, 4.1rem); line-height: 1.06; letter-spacing: -.065em; margin: 24px 0; }
.hero h1:lang(en-US) { font-size: clamp(2.1rem, 3.1vw, 3.3rem); }
.hero-line { display: block; white-space: nowrap; }
.hero h1 em { color: #137a57; font-style: normal; }
.hero-text { max-width: 550px; color: #53665b; font-size: 1.11rem; line-height: 1.8; }
.hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.hero-actions .button { width: 100%; min-width: 0; min-height: 68px; padding: 12px 14px; line-height: 1.4; text-align: center; white-space: normal; overflow-wrap: normal; }
.download-notes { margin-top: 14px; color: #53665b; font-size: .82rem; line-height: 1.7; }
.download-notes p { margin: 6px 0; }
.download-links { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.download-links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 23px; border-radius: 12px; text-decoration: none; font-size: .95rem; font-weight: 750; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: #137a57; box-shadow: 0 10px 20px #137a5730; }
.button-primary:hover { background: #0b5b40; }
.button-secondary { background: white; border: 1px solid #c9dbcf; }
.hero-meta, .visual-caption, .preview-note { color: #53665b; font-size: .78rem; }
.hero-meta { margin: 17px 0 0; }
.release-license-note { max-width: 520px; margin: 9px 0 0; color: #53665b; font-size: .78rem; line-height: 1.55; }
.hero-visual { position: relative; width: min(100%, 840px); justify-self: end; }
.window-halo { position: absolute; inset: 5% -10% 0 12%; border-radius: 50%; background: #86dba454; filter: blur(55px); }
.screenshot-link { display: block; width: fit-content; max-width: 100%; border-radius: 10px; }
[data-lightbox] { cursor: zoom-in; }
.image-lightbox { width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 14px; border: 1px solid #d0e0d5; border-radius: 18px; background: #f7faf7; color: #183126; box-shadow: 0 24px 90px #071d1870; }
.image-lightbox[open] { display: grid; gap: 12px; }
.image-lightbox::backdrop { background: #071d18d9; backdrop-filter: blur(5px); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .85rem; font-weight: 700; }
.lightbox-toolbar button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 14px; border: 1px solid #c4dfcf; border-radius: 10px; background: white; color: #126344; font: inherit; cursor: pointer; }
.lightbox-toolbar button:hover { background: #e1f1e7; }
.lightbox-toolbar button span { font-size: 1.5rem; line-height: 1; }
.image-lightbox figure { margin: 0; min-width: 0; }
.image-lightbox img { display: block; width: auto; height: auto; max-width: min(1440px, calc(100vw - 54px)); max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); margin: auto; object-fit: contain; border-radius: 7px; background: white; }
.image-lightbox figcaption { max-width: 80ch; padding-top: 10px; margin: auto; color: #53665b; font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.hero-visual img { position: relative; display: block; width: 100%; border-radius: 16px; border: 1px solid #bfd7c6; box-shadow: 0 32px 70px #164d3038; }
.visual-caption { position: relative; display: block; margin-top: 15px; text-align: right; }
.section { padding-block: 105px; }
.section-intro { max-width: 720px; margin-bottom: 39px; }
.section h2 { font-size: clamp(2.2rem, 3.7vw, 3.7rem); line-height: 1.16; letter-spacing: -.05em; margin: 12px 0 18px; }
.section-intro > p:last-child, .final-cta p:not(.section-kicker) { color: #56695d; font-size: 1.03rem; }
.screenshot-section, .platform-section { background: white; }
.screenshot-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.screenshot-card { margin: 0; padding: 15px; max-width: 872px; border: 1px solid #dce9df; border-radius: 19px; background: #f6f9f6; box-shadow: 0 10px 30px #102c1c0b; }
.screenshot-card.settings-card { max-width: 682px; }
.editor-card { max-width: none; padding: clamp(8px, 1.5vw, 20px); }
.editor-card .screenshot-link { width: 100%; }
.editor-section { background: #eef5f1; }
.guide-article img { display: block; max-width: 100%; height: auto; border: 1px solid #dce9df; border-radius: 10px; }
.editor-highlights { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 24px 0 0; list-style: none; color: #365747; }
.editor-highlights li::before { content: '✓'; margin-right: 9px; color: #107d5b; font-weight: 700; }
.screenshot-card img { display: block; width: 100%; border: 1px solid #d7e2da; border-radius: 10px; }
.screenshot-card figcaption a { color: #0a7652; text-underline-offset: 3px; }
.screenshot-card figcaption { padding: 15px 5px 2px; color: #617669; font-size: .81rem; font-weight: 700; }
.preview-note { margin: 18px 0 0; }
.features-section { background: #f2f8f3; }
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; }
.feature-card { min-height: 215px; padding: 28px; border: 1px solid #dce9df; border-radius: 18px; background: white; }
.feature-number { color: #137a57; font-size: .76rem; font-weight: 850; letter-spacing: .13em; }
.feature-card h3 { margin: 27px 0 8px; font-size: 1.13rem; }
.feature-card p { margin: 0; color: #56695d; font-size: .91rem; }
.process-section { background: #143829; color: #f6fff8; }
.process-section .section-kicker { color: #8bdbad; }
.process-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 10%; }
.process-text { color: #cae2d3; line-height: 1.85; }
.text-link { display: inline-block; margin-top: 12px; color: #b9efd0; text-decoration: none; font-weight: 750; }
.process-steps { list-style: none; padding: 0; margin: 0; border: 1px solid #54866c; border-radius: 18px; overflow: hidden; }
.process-steps li { display: flex; align-items: center; gap: 24px; padding: 18px 25px; border-bottom: 1px solid #45755b; }
.process-steps li:last-child { border: 0; }
.process-steps span { color: #9bddb3; font-size: .78rem; font-weight: 800; }
.platform-card { padding: 30px; border: 1px solid #dce9df; border-radius: 18px; background: #f9fcf9; }
.platform-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #e3f4e8; color: #137a57; font-size: 1.6rem; }
.platform-card h3 { margin: 18px 0 4px; }
.platform-card p { margin: 0; color: #56695d; }
.final-cta { background: #eaf5eb; }
.final-cta-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.final-cta-inner > div { max-width: 680px; }
.final-cta-inner .button { flex: none; }
.site-footer { padding: 27px 0; background: #123627; color: #cce0d1; }
.site-footer .container { display: flex; gap: 25px; align-items: center; }
.site-footer span { margin-right: auto; }
.site-footer a { text-decoration: none; }
.language-entry { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: radial-gradient(circle, #e6f6e9, transparent 60%); }
.language-entry h1 { margin: 20px 0 0; font-size: 3rem; letter-spacing: -.06em; }
.language-entry a { display: inline-block; margin: 8px; padding: 12px 20px; border-radius: 12px; background: #137a57; color: white; font-weight: 750; text-decoration: none; }
@media (max-width: 900px) { .hero-grid, .screenshot-grid { grid-template-columns: minmax(0, 1fr); } .hero-grid { align-items: start; gap: 34px; min-height: 0; padding-block: 65px; } .screenshot-grid { gap: 30px; } .hero-visual { justify-self: start; } .visual-caption { text-align: left; } .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .container, .nav-wrap { width: calc(100% - 32px); } .nav-wrap { min-height: 66px; } .nav-links { gap: 10px; } .nav-links a { font-size: .78rem; } .nav-links .home-link { display: none; } .nav-links .github-link, .nav-links .language-switch { padding: 6px 10px; } .hero-grid { gap: 23px; padding-block: 54px 70px; } .eyebrow { font-size: .7rem; letter-spacing: .06em; } .hero h1 { font-size: clamp(1.9rem, 11vw, 4.3rem); } .hero-text { font-size: 1rem; } .section { padding-block: 74px; } .feature-grid, .platform-grid, .process-grid { grid-template-columns: 1fr; } .feature-card { min-height: 0; } .process-grid { gap: 35px; } .final-cta-inner { display: block; } .final-cta-inner .button { margin-top: 15px; } .site-footer .container { flex-wrap: wrap; } }
@media (max-width: 650px) { .hero h1:lang(en-US) { font-size: clamp(1.35rem, 9vw, 4.3rem); } }
@media (max-width: 650px) { .hero-actions { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 400px) { .nav-links .guide-link { display: none; } }
@media (max-width: 350px) { .nav-wrap { gap: 8px; } .brand { font-size: 1rem; } .nav-links { gap: 6px; } .nav-links .github-link, .nav-links .language-switch { padding: 5px 7px; } .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.guide-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 65px; align-items: start; padding-block: 64px 110px; }
.guide-sidebar { position: sticky; top: 25px; max-height: calc(100vh - 50px); overflow: auto; }
.guide-toc { border: 1px solid #dce9df; border-radius: 15px; background: white; padding: 21px 18px; }
.guide-toc strong { display: block; color: #137a57; margin-bottom: 12px; font-size: .82rem; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; }
.guide-toc li { margin: 0; }
.guide-toc .toc-level-3 { padding-left: 13px; }
.guide-toc a { display: block; padding: 5px 0; color: #5a6c60; font-size: .8rem; line-height: 1.4; text-decoration: none; }
.guide-toc a:hover { color: #137a57; text-decoration: underline; }
.guide-article { min-width: 0; max-width: 820px; color: #263c30; }
.guide-article h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: 1.16; margin: 0 0 20px; }
.guide-article h2 { border-top: 1px solid #dce9df; padding-top: 40px; margin: 55px 0 18px; font-size: 1.8rem; letter-spacing: -.035em; scroll-margin-top: 25px; }
.guide-article h3 { margin: 30px 0 10px; font-size: 1.23rem; scroll-margin-top: 25px; }
.guide-article p, .guide-article li { line-height: 1.85; }
.guide-article a { color: #0a7652; text-underline-offset: 3px; }
.guide-article table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.guide-article th, .guide-article td { padding: 10px 13px; border: 1px solid #d7e6dc; text-align: left; }
.guide-article th { background: #eaf5ed; }
.guide-article code { padding: 2px 5px; border-radius: 4px; background: #eaf3ed; font-size: .9em; }
.guide-article pre { max-width: 100%; overflow-x: auto; padding: 17px; border-radius: 10px; background: #16392a; color: #effaf2; }
.guide-article pre code { padding: 0; background: none; color: inherit; }
.guide-article blockquote { margin: 20px 0; padding: 8px 20px; border-left: 4px solid #279c6d; background: #edf7ef; }
@media (max-width: 900px) { .guide-shell { grid-template-columns: 1fr; gap: 25px; padding-block: 35px 75px; } .guide-sidebar { position: static; max-height: none; } .guide-toc ol { columns: 2; } }
@media (max-width: 650px) { .guide-toc ol { columns: 1; max-height: 215px; overflow-y: auto; border-top: 1px solid #dce9df; padding-top: 8px; } .guide-article h2 { margin-top: 40px; } }
/* Progressive accessibility: same default palette/layout, readable under zoom. */
:focus-visible { outline-color: #0a6748; }
.site-footer :focus-visible,.process-section :focus-visible { outline-color: #b9efd0; }
.nav-wrap,.nav-links { flex-wrap: wrap; }
.nav-wrap { padding-block: 10px; }
.nav-links a { min-height: 32px; display: inline-flex; align-items: center; }
.container,.nav-wrap,.guide-article,.hero-copy { overflow-wrap: anywhere; }
.hero-line { max-width: 100%; white-space: normal; }
.guide-article a[data-lightbox] { display: inline-block; max-width: 100%; }
.guide-toc a:focus-visible { outline-offset: -2px; }
.language-switch:lang(zh-TW) { word-break: keep-all; }
@media (max-width: 650px) { .nav-wrap { row-gap: 8px; }.nav-links { gap: 8px; } }
@media (forced-colors: active) { :focus-visible { outline: 3px solid Highlight; }.button,.github-link,.language-switch { border: 1px solid ButtonText; }.window-halo { display: none; } }
