:root {
    color-scheme: light;
    --bg: #f7f5ef;
    --ink: #252820;
    --muted: #686b60;
    --accent: #536342;
    --line: #dcded2;
    --serif: Georgia, "Times New Roman", serif;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.7; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
button:focus-visible, textarea:focus-visible, .rendered-example:focus-visible, .viewer-content:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: #dbe3cc; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 100px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(48px, 5.6vw, 82px); line-height: 1.08; }
h1 em { font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(34px, 3.5vw, 49px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 550; }
.muted, .caption { color: var(--muted); }
.caption { font-size: 12px; line-height: 1.7; margin-top: 22px; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--ink); color: white; padding: 16px; z-index: 5; }
.skip-link:focus { top: 12px; }

/* Navigation and opening illustration */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-family: var(--serif); letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 32px; font-size: 13px; }
.site-header > nav:first-of-type { margin-left: auto; }
.site-header .language-switch { gap: 12px; padding-left: 20px; border-left: 1px solid var(--line); font-size: 11px; }
.language-switch a { padding-block: 8px; }
.language-switch a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.site-header nav a:hover, .text-link:hover, .footer-top-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: .95fr 1.1fr; align-items: center; gap: 48px; padding-top: 100px; padding-bottom: 88px; }
.hero .eyebrow { letter-spacing: .08em; }
.tiny-circle { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 27px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; gap: 30px; background: var(--accent); color: #fff; padding: 17px 22px; border-radius: 5px; font-size: 14px; transition: background .2s; }
.button:hover { background: #3f4d32; }
.text-link { font-size: 13px; }
.hero-note { margin-top: 19px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.hero-figure { min-width: 0; }
.hero-capture img { display: block; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 55px -25px #404b3c40; }
.hero-capture a { display: block; }
.hero-figure figcaption { font-size: 10px; color: var(--muted); text-align: right; margin-top: 16px; }
.editor-illustration { background: #fffcf6; border: 1px solid #cdd0c3; border-radius: 9px; overflow: hidden; box-shadow: 0 24px 55px -25px #404b3c40; transform: rotate(-1deg); }
.window-bar { display: flex; align-items: center; justify-content: space-between; background: #efeee6; border-bottom: 1px solid #dadcd0; padding: 15px 14px; font-size: 10px; color: #66685e; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; background: #c7cabe; border-radius: 50%; }
.editor-body { display: grid; grid-template-columns: 145px 1fr; min-height: 365px; }
.editor-sidebar { display: flex; flex-direction: column; gap: 6px; padding: 26px 8px; background: #eeeee5; border-right: 1px solid #dadcd0; font-size: 9px; color: #5d6154; }
.sidebar-label { font-size: 8px; letter-spacing: .1em; margin: 0 8px 18px; }
.sidebar-folder { margin: 6px; }
.sidebar-item { padding: 8px 6px 8px 17px; border-radius: 3px; }
.selected { background: #d9dfce; color: #37412d; }
.editor-page { padding: 37px 28px 30px; font-family: var(--serif); color: #484b40; font-size: 11px; line-height: 1.8; }
.document-kicker { font-family: system-ui; font-size: 7px; letter-spacing: .15em; color: #868b79; }
.document-title { font-size: 25px; line-height: 1.3; margin: 15px 0 18px; letter-spacing: -.025em; color: #3e4b33; }
.editor-page > p + p { margin-top: 14px; }
.syntax { color: #8b947e; }
.document-quote { font-style: italic; border-left: 2px solid #bec6b0; padding-left: 12px; }
.document-list { font-size: 10px; }
.window-status { display: flex; justify-content: space-between; padding: 9px 13px; border-top: 1px solid #dadcd0; font-size: 8px; color: #7b806f; }

/* Features and Markdown explanation */
.project-section { border-top: 1px solid var(--line); }
.project-package { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.package-label { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 20px 28px; background: #eaece3; font-size: 15px; }
.package-mark { color: var(--accent); font-size: 24px; }
.package-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.project-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-parts article { padding: 32px 28px; }
.project-parts article + article { border-left: 1px solid var(--line); }
.project-part-illustration { display: block; width: 160px; height: 104px; max-width: 100%; object-fit: contain; margin-bottom: 24px; }
.project-parts .eyebrow { display: block; margin-bottom: 18px; }
.project-parts h3 { margin-bottom: 12px; }
.project-parts p, .format-note p { font-size: 14px; color: var(--muted); }
.format-note { display: flex; align-items: start; gap: 22px; margin-top: 28px; max-width: 860px; }
.format-tag { flex: 0 0 auto; padding: 10px 12px; background: #eaece3; border-radius: 4px; font: 16px ui-monospace, monospace; color: var(--accent); }
.format-note strong { display: block; font-weight: 550; color: var(--ink); margin-bottom: 3px; }
.ownership-section { display: grid; grid-template-columns: minmax(0, 600px) 260px; justify-content: center; align-items: center; gap: 40px; padding-block: 80px; border-bottom: 1px solid var(--line); }
.ownership-copy { min-width: 0; }
.ownership-illustration { display: block; width: 260px; height: auto; justify-self: center; }
.ownership-section h2 { font-size: clamp(38px, 4vw, 58px); }
.ownership-section h2 em { color: var(--accent); }
.ownership-copy > p:last-child { font-size: 16px; color: var(--muted); margin-top: 25px; }
.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 52px; }
.feature-symbol { display: flex; align-items: center; gap: 17px; margin-bottom: 23px; }
.feature-symbol img { display: block; width: 64px; height: 64px; }
.number { display: block; color: #707762; font-size: 11px; }
.feature h3 { margin-bottom: 14px; }
.feature p { font-size: 14px; color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: end; margin-bottom: 45px; }
.split-heading > p { max-width: 400px; font-size: 15px; color: var(--muted); }
.markdown-section { background: #eaece3; }
.section-intro { max-width: 880px; font-size: 16px; color: var(--muted); margin-top: 26px; margin-bottom: 35px; }
.markdown-comparison { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d0d4c6; border-radius: 7px; overflow: hidden; }
.markdown-source, .markdown-result { padding: 25px 38px 38px; min-width: 0; }
.markdown-source { background: #e0e4d7; }
.markdown-result { background: #fbfaf5; }
.panel-label { display: flex; justify-content: space-between; border-bottom: 1px solid #cdd2c1; padding-bottom: 18px; font-size: 10px; letter-spacing: .09em; color: #666e5b; }
.markdown-source pre { font-size: 14px; line-height: 1.9; margin: 28px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #46523c; }
.markdown-source code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.demo-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-controls button { font: inherit; font-size: 12px; color: var(--accent); border: 1px solid #adb69e; border-radius: 4px; padding: 10px 13px; min-height: 42px; background: transparent; cursor: pointer; }
.demo-controls button:hover { background: #d7dfcb; }
.demo-controls button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.demo-controls .demo-reset { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.demo-hint { font-size: 13px; color: #566148; margin-bottom: 20px; }
.demo-source { display: block; width: 100%; min-height: 320px; margin-top: 24px; border: 0; border-radius: 2px; padding: 4px; background: transparent; color: #46523c; font: 14px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; tab-size: 4; }
.demo-privacy { font-size: 12px; color: var(--muted); margin-top: 18px; }
.rendered-example { min-height: 320px; max-height: 560px; overflow: auto; overflow-wrap: anywhere; }
.rendered-example :is(h1,h2,h3,h4,h5,h6) { font-family: var(--serif); color: var(--ink); letter-spacing: -.025em; line-height: 1.3; margin: 24px 0 16px; }
.rendered-example h1 { font-size: 28px; }
.rendered-example h2 { font-size: 24px; }
.rendered-example :is(h3,h4,h5,h6) { font-size: 20px; }
.rendered-example > :first-child { margin-top: 0; }
.rendered-example p { margin-bottom: 16px; }
.rendered-example ol { padding-left: 22px; line-height: 1.7; }
.rendered-example a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rendered-example code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: #eaece3; padding: 2px 4px; border-radius: 3px; }
.rendered-example pre { white-space: pre-wrap; padding: 18px; background: #eaece3; border-radius: 4px; }
.rendered-example pre code { padding: 0; }
.rendered-example hr { border: 0; border-top: 1px solid var(--line); margin-block: 20px; }
.rendered-example { font-family: var(--serif); margin-top: 29px; font-size: 16px; }
.rendered-example ul { padding-left: 22px; line-height: 1.7; margin-block: 18px; }
.rendered-example blockquote { margin: 0; border-left: 2px solid #a2af90; padding-left: 18px; font-style: italic; color: #566148; }

/* Illustrative theme and export samples; replaced by real captures in step 5. */
.theme-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.theme-sample { height: 146px; padding: 22px; border: 1px solid #25282015; border-radius: 5px; background: var(--sample-bg); color: var(--sample-ink); box-shadow: 0 4px 14px #25282005; }
.theme-sample span { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 16px; }
.theme-sample i { display: block; height: 3px; border-radius: 2px; background: currentColor; opacity: .25; margin-bottom: 7px; width: 87%; }
.theme-sample i:nth-of-type(2) { width: 94%; }
.theme-sample i:nth-of-type(3) { width: 62%; }
.theme-sample b { display: block; font-size: 9px; font-weight: 500; margin-top: 13px; }
.theme-name { display: block; font-size: 12px; margin-top: 11px; }
.theme-featured { max-width: 800px; margin: 0 auto 28px; }
.theme-gallery .theme-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.theme-featured > a { display: block; }
.theme-featured img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 7px; }
.theme-featured figcaption { line-height: 1.65; font-size: 13px; color: var(--muted); margin-top: 14px; }
.theme-choice { display: block; border: 1px solid var(--line); border-radius: 5px; padding: 7px 7px 13px; transition: border-color .15s; }
.theme-choice img { display: block; width: 100%; border-radius: 3px; }
.theme-choice .theme-name { padding-inline: 2px; overflow-wrap: anywhere; }
.theme-choice:hover { border-color: var(--accent); }
.theme-choice[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdf-preview { display: block; max-width: 220px; margin: 0 auto 25px; }
.pdf-preview img { display: block; width: 100%; border: 1px solid #deded4; box-shadow: 0 6px 16px #37352d12; }
.pdf-download { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.asset-viewer { width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 40px); border: 1px solid var(--line); border-radius: 8px; padding: 24px; color: var(--ink); background: var(--bg); }
.asset-viewer::backdrop { background: #182018c9; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.viewer-header h2 { font: 18px/1.5 system-ui, sans-serif; letter-spacing: 0; }
.viewer-header button { font: 12px system-ui, sans-serif; padding: 12px; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; color: var(--ink); }
.viewer-content { overflow: auto; max-height: 65svh; }
.viewer-content img { display: block; width: 100%; height: auto; max-height: 65svh; object-fit: contain; }
.asset-viewer.is-pdf { width: min(820px, calc(100% - 32px)); }
.asset-viewer.is-pdf .viewer-content img { max-height: none; }
.reading-size-note { margin-top: 35px; padding: 30px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 60px; }
.reading-size-note h3 { margin-bottom: 10px; }
.reading-size-note p { max-width: 560px; font-size: 14px; color: var(--muted); }
.reading-size-figure { width: 100%; max-width: 420px; justify-self: end; }
.reading-size-illustrations { display: flex; align-items: center; gap: 16px; color: var(--accent); }
.reading-gesture-illustration { display: block; flex: 0 0 88px; }
.reading-trackpad { fill: #eeeee5; stroke: var(--line); }
.reading-pinch-arrows { opacity: .65; }
.reading-slider-illustration { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #eeeee5; color: var(--accent); font-family: var(--serif); }
.reading-small { font-size: 16px; }
.reading-large { font-size: 30px; }
.reading-track { display: block; position: relative; flex: 1; height: 3px; background: #c8cdbf; border-radius: 3px; }
.reading-fill { display: block; width: 58%; height: 100%; background: var(--accent); border-radius: inherit; }
.reading-thumb { position: absolute; top: 50%; left: 58%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.reading-size-figure figcaption { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.default { --sample-bg: #fffef9; --sample-ink: #35392e; }
.nostalgia { --sample-bg: #eee4cd; --sample-ink: #554431; }
.solar-light { --sample-bg: #fdf6e3; --sample-ink: #586e75; }
.solar-dark { --sample-bg: #002b36; --sample-ink: #93a1a1; }
.dracula { --sample-bg: #282a36; --sample-ink: #bd93f9; }
.alucard { --sample-bg: #fffbeb; --sample-ink: #644ac9; }
.green { --sample-bg: #152019; --sample-ink: #90d08c; }
.amber { --sample-bg: #241f14; --sample-ink: #e2b666; }
.export-section { background: #eeede6; }
.export-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.paper { position: relative; aspect-ratio: 1 / 1.414; background: #fffdf9; max-width: 220px; margin: 0 auto 25px; padding: 26px 24px; box-shadow: 0 6px 16px #37352d12; display: flex; flex-direction: column; color: #4d4b43; }
.paper-heading { font-family: var(--serif); font-size: 13px; line-height: 1.3; margin-bottom: 6px; }
.paper-author { font-family: var(--serif); font-size: 7px; margin-bottom: 22px; color: #78766e; }
.paper-lines { display: grid; gap: 6px; }
.paper-lines i { height: 2px; background: #d5d4cd; width: 100%; }
.paper-lines i:last-child { width: 65%; }
.paper-subheading { font-family: var(--serif); font-size: 9px; margin: 18px 0 10px; }
.paper-page { position: absolute; bottom: 14px; left: 0; right: 0; font-size: 6px; text-align: center; }
.manuscript .paper-heading, .manuscript .paper-author { text-align: center; }
.manuscript .paper-lines { gap: 10px; }
.manuscript .paper-lines i:first-child { width: 90%; justify-self: end; }
.academic .paper-heading { font-weight: bold; }
.engineering .paper-heading { font-family: system-ui; font-size: 12px; border-bottom: 1px solid #707a8a; padding-bottom: 9px; }
.engineering .paper-subheading { font-family: system-ui; font-weight: 600; }
.export-item h3 { font-size: 16px; margin-bottom: 8px; }
.export-item p { font-size: 13px; color: var(--muted); }

/* Accessible native disclosures and support */
.focus-section { background: #eaece3; }
.focus-device { display: block; max-width: 1080px; margin-inline: auto; }
.focus-device img { display: block; width: 100%; height: auto; }
.focus-figure figcaption { margin-top: 15px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.focus-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 38px; }
.focus-benefits h3 { margin-bottom: 12px; }
.focus-benefits p { font-size: 14px; color: var(--muted); }
.faq-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 75px; }
.faq-section .muted { font-size: 14px; margin-top: 23px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 22px; font-weight: 300; color: var(--accent); transition: transform .2s; }
details[open] .faq-plus { transform: rotate(45deg); }
details > p { font-size: 14px; color: var(--muted); padding: 0 32px 24px 0; max-width: 600px; }
.support-section { background: #dde3d1; border-radius: 8px; padding: 50px; display: flex; justify-content: space-between; gap: 45px; align-items: center; }
.support-section h2 { font-size: 40px; }
.support-section p:not(.eyebrow) { font-size: 14px; margin-top: 18px; color: #535c47; }
.support-section .eyebrow { margin-bottom: 15px; }
.support-next { min-width: 180px; border-left: 1px solid #bec7b0; padding-left: 28px; }
.support-symbol { font-size: 36px; color: var(--accent); }
.support-next .caption { display: block; margin-top: 6px; }
.site-footer { padding-block: 45px 30px; }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { font-size: 22px; }
.site-footer p, .footer-top-link { font-size: 11px; color: var(--muted); }
.footer-credit { display: flex; justify-content: center; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.maker-brand { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; border-radius: 2px; }
.maker-brand img { display: block; width: 260px; }
.maker-brand:hover { opacity: .7; }

@media (min-width: 1500px) {
    .hero { padding-block: 130px; }
    .editor-body { min-height: 405px; }
    .editor-page { font-size: 13px; }
    .document-title { font-size: 29px; }
}
@media (max-width: 1100px) {
    .wrap { width: calc(100% - 64px); }
    .hero { gap: 30px; }
    .editor-body { grid-template-columns: 110px 1fr; }
    .editor-page { padding: 28px 20px; }
    .document-title { font-size: 22px; }
    .feature-grid { gap: 23px; }
    .split-heading { gap: 40px; }
    .export-grid { gap: 22px; }
    .paper { padding: 22px 18px; }
    .support-section { padding: 38px; }
}
@media (max-width: 850px) {
    .theme-gallery .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .site-header { flex-wrap: wrap; }
    .site-header > nav:first-of-type { order: 3; width: 100%; margin-left: 0; }
    .site-header .language-switch { margin-left: auto; }
    .reading-size-note { grid-template-columns: 1fr; gap: 25px; }
    .reading-size-figure { justify-self: start; }
    .focus-benefits { grid-template-columns: 1fr; gap: 25px; }
    .ownership-section { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .ownership-illustration { width: 200px; }
    .project-parts { grid-template-columns: 1fr; }
    .project-parts article + article { border-left: 0; border-top: 1px solid var(--line); }
    .hero { grid-template-columns: 1fr; padding-top: 65px; gap: 50px; }
    .hero-copy { max-width: 620px; }
    .hero h1 { font-size: clamp(48px, 9vw, 74px); }
    .hero-figure { width: 100%; max-width: 640px; margin-inline: auto; }
    .editor-body { grid-template-columns: 160px 1fr; min-height: 380px; }
    .editor-page { padding: 32px; font-size: 13px; }
    .document-title { font-size: 30px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; }
    .split-heading { grid-template-columns: 1fr; gap: 22px; }
    .split-heading > p { max-width: 580px; }
    .section { padding-block: 72px; }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .export-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .paper { width: 100%; max-width: 230px; }
    .faq-section { grid-template-columns: 1fr; gap: 35px; }
    .support-section { flex-direction: column; align-items: flex-start; gap: 25px; }
    .support-next { border-left: 0; border-top: 1px solid #bec7b0; padding: 20px 0 0; width: 100%; }
    .support-symbol { font-size: 28px; }
    .site-header nav { gap: 20px; }
    .site-footer p { display: none; }
}
@media (max-width: 560px) {
    .theme-gallery .theme-grid { gap: 12px 8px; }
    .asset-viewer { padding: 16px; }
    .viewer-header { gap: 12px; }
    .demo-source { font-size: 16px; }
    .site-header .language-switch { width: auto; gap: 12px; padding-left: 12px; }
    .package-label { padding: 18px 20px; }
    .package-note { width: 100%; margin-left: 0; }
    .project-parts article { padding: 24px 20px; }
    .format-note { gap: 14px; }
    .ownership-section { padding-block: 55px; }
    .wrap { width: calc(100% - 40px); }
    .site-header { flex-wrap: wrap; gap: 18px; padding-block: 19px; }
    .site-header nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 11px; }
    .brand { font-size: 24px; }
    .hero { padding-top: 44px; padding-bottom: 58px; }
    .hero .eyebrow { font-size: 9px; }
    .lead { font-size: 17px; }
    .actions { gap: 20px; }
    .hero-note { font-size: 10px; }
    .editor-body { grid-template-columns: 1fr; min-height: 0; }
    .editor-sidebar { display: none; }
    .editor-page { font-size: 12px; padding: 26px; }
    .document-title { font-size: 27px; }
    .window-status span:last-child { display: none; }
    .editor-illustration { transform: none; }
    .hero-figure figcaption { text-align: left; line-height: 1.5; }
    .feature-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 34px; }
    .feature-symbol { margin-bottom: 15px; }
    .feature h3 { margin-bottom: 9px; }
    .section { padding-block: 55px; }
    .eyebrow { font-size: 9px; margin-bottom: 18px; }
    h2 { font-size: 35px; }
    .markdown-comparison { grid-template-columns: 1fr; }
    .markdown-source, .markdown-result { padding: 23px; }
    .markdown-source pre { font-size: 12px; }
    .rendered-example { font-size: 15px; }
    .theme-grid { gap: 22px 16px; }
    .theme-sample { padding: 18px; height: 139px; }
    .theme-sample span { font-size: 17px; }
    .theme-name { font-size: 11px; }
    .export-grid { gap: 27px 18px; }
    .paper { padding: 18px 13px; }
    .paper-heading { font-size: 10px; }
    .paper-author { margin-bottom: 13px; font-size: 6px; }
    .paper-lines { gap: 5px; }
    .paper-subheading { margin: 12px 0 8px; font-size: 8px; }
    .manuscript .paper-lines { gap: 7px; }
    .engineering .paper-heading { font-size: 9px; }
    .export-item h3 { font-size: 14px; }
    .export-item p { font-size: 12px; }
    .support-section { padding: 28px; }
    .support-section h2 { font-size: 34px; }
    .desktop-break { display: none; }
    .site-footer { padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Contact remains usable without JavaScript; JS reveals bug fields on demand. */
.support-section { align-items: flex-start; }
.support-section > div:first-child { flex: 0 1 36%; }
.contact-panel { flex: 1 1 55%; min-width: 0; width: 100%; }
.contact-form { display: grid; gap: 18px; }
.contact-field { display: grid; gap: 7px; min-width: 0; }
.contact-field label, .contact-bug legend { font-size: 13px; font-weight: 600; }
.contact-field input, .contact-field select, .contact-field textarea { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #aeb89f; border-radius: 5px; padding: 11px 12px; background: #fbfcf7; color: #30382a; font: inherit; font-size: 14px; }
.contact-field textarea { resize: vertical; }
.contact-field [aria-invalid="true"] { border-color: #91452f; }
.support-section .contact-instructions, .support-section .contact-privacy, .support-section .contact-hint { margin: 0; font-size: 12px; line-height: 1.65; }
.contact-hint { color: #535c47; font-size: 12px; }
.contact-error { color: #783420; font-size: 12px; }
.contact-bug { margin: 0; padding: 18px; border: 1px solid #b6bfa7; border-radius: 5px; min-width: 0; display: grid; gap: 18px; }
.contact-bug[hidden] { display: none; }
.contact-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-submit { justify-self: start; }
.contact-submit:disabled { opacity: .55; cursor: default; }
.contact-notice { background: #fff5ed; border: 1px solid #b16d4d; border-radius: 5px; padding: 16px; margin-bottom: 20px; overflow-wrap: anywhere; }
.contact-notice.contact-success { background: #f6faef; border-color: #81946b; }
.support-section .contact-notice p { margin: 0; }
.contact-notice ul { padding-left: 18px; font-size: 13px; }
.support-section .contact-availability { margin: 0 0 18px; }
@media (max-width: 850px) { .support-section > div:first-child { flex-basis: auto; } }
@media (max-width: 480px) { .contact-versions { grid-template-columns: 1fr; } .contact-bug { padding: 12px; } }

.contact-field input:focus-visible, .contact-field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.contact-submit { border: 0; font-family: inherit; cursor: pointer; }
@media (max-width: 850px) { .contact-field input, .contact-field select, .contact-field textarea { font-size: 16px; } }

/* Six languages fit in a keyboard-accessible menu, including without JavaScript. */
.site-header .language-menu { position: relative; margin-left: 0; flex-shrink: 0; }
.language-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 10px 0 10px 16px; border-left: 1px solid var(--line); }
.language-menu summary::-webkit-details-marker { display: none; }
.site-header .language-switch { position: absolute; z-index: 10; right: 0; top: calc(100% + 10px); display: grid; gap: 0; width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); box-shadow: 0 12px 30px #25282018; font-size: 13px; }
.language-switch a { padding: 10px 12px; border-radius: 3px; }
.language-switch a:hover { background: #e8ebdf; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
html:lang(ja) { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
html:lang(zh-Hans) { --serif: "Songti SC", "Noto Serif SC", "SimSun", serif; }
:lang(ja) h1, :lang(zh-Hans) h1 { line-height: 1.35; }
:lang(ja) h2, :lang(zh-Hans) h2 { line-height: 1.45; }
:lang(ja) h1, :lang(ja) h2, :lang(zh-Hans) h1, :lang(zh-Hans) h2 { letter-spacing: -.025em; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 850px) { .site-header .language-menu { margin-left: auto; } }
@media (max-width: 480px) { .language-menu summary { padding-left: 10px; } }

.language-menu { border-bottom: 0; }

html:lang(ja) .hero h1, html:lang(zh-Hans) .hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.5; }
html:lang(ja) .hero h1 em, html:lang(zh-Hans) .hero h1 em { font-style: normal; }

/* Official Apple artwork: preserve proportions and one-quarter-height clear space. */
.app-store-badge { display: inline-flex; flex-shrink: 0; margin: 12px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.app-store-badge img { display: block; width: auto; height: 48px; pointer-events: none; -webkit-user-drag: none; }
