:root {
    --paper: #FBF8F0;
    --paper-deep: #F0EADF;
    --ink: #35322C;
    --muted: #6F685D;
    --accent: #A93E29;
    --accent-bright: #B3402A;
    --moss: #68705B;
    --night: #191B20;
    --hairline: #D8D0C2;
    --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --shell: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: 4px;
}

button:disabled {
    cursor: default;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(var(--shell), calc(100% - 80px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--night);
    color: var(--paper);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}

.header-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.04em;
    line-height: 1;
}

.brand-mark {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav,
.nav-links {
    display: flex;
    align-items: center;
}

.main-nav {
    gap: 38px;
}

.nav-links {
    gap: 30px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a,
.text-link,
.footer-links a {
    text-underline-offset: 5px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 20px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: 64px;
    min-height: 800px;
    padding-block: 62px 72px;
}

.hero-copy {
    padding-bottom: 18px;
}

.kicker,
.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.kicker span {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 28px;
    font-size: clamp(52px, 5.2vw, 76px);
    line-height: 1.22;
    letter-spacing: -.045em;
}

.hero-intro {
    max-width: 510px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
}

.button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-primary {
    background: var(--accent);
    color: #FFFDF8;
}

.text-link {
    padding-block: 10px;
    border-bottom: 1px solid var(--hairline);
    font-size: 14px;
    font-weight: 600;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

.hero-facts li {
    display: flex;
    align-items: center;
}

.hero-facts li:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    margin-inline: 14px;
    border-radius: 50%;
    background: var(--moss);
}

.hero-product {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.product-note {
    position: absolute;
    top: 110px;
    left: -34px;
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
    line-height: 2;
    writing-mode: vertical-rl;
    letter-spacing: .16em;
}

.reader-demo {
    width: min(100%, 380px);
}

.phone {
    --reader-bg: #FBF8F0;
    --reader-ink: #35322C;
    --reader-muted: #756D60;
    --reader-accent: #B3402A;
    --reader-line: rgba(179, 64, 42, .24);
    --reader-font-size: 18px;
    width: min(320px, 100%);
    aspect-ratio: 320 / 650;
    margin-inline: auto;
    padding: 7px;
    border-radius: 45px;
    background: #292925;
    box-shadow: 0 30px 60px rgba(53, 45, 33, .16), 0 4px 12px rgba(53, 45, 33, .12);
}

.phone[data-theme="sepia"] {
    --reader-bg: #F3E9D2;
    --reader-ink: #4C4231;
    --reader-muted: #75664D;
}

.phone[data-theme="green"] {
    --reader-bg: #E4EEDD;
    --reader-ink: #2E3A2C;
    --reader-muted: #5C6B55;
}

.phone[data-theme="dark"] {
    --reader-bg: #191B20;
    --reader-ink: #B9BEC9;
    --reader-muted: #9AA2AF;
    --reader-accent: #D8795F;
    --reader-line: rgba(208, 102, 74, .32);
}

.phone[data-font-size="15"] {
    --reader-font-size: 15px;
}

.phone[data-font-size="16"] {
    --reader-font-size: 16px;
}

.phone[data-font-size="17"] {
    --reader-font-size: 17px;
}

.phone[data-font-size="18"] {
    --reader-font-size: 18px;
}

.phone[data-font-size="19"] {
    --reader-font-size: 19px;
}

.phone[data-font-size="20"] {
    --reader-font-size: 20px;
}

.phone[data-font-size="21"] {
    --reader-font-size: 21px;
}

.phone[data-font-size="22"] {
    --reader-font-size: 22px;
}

.phone[data-font-size="23"] {
    --reader-font-size: 23px;
}

.phone-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 38px;
    background: var(--reader-bg);
    color: var(--reader-ink);
    transition: background-color .22s ease, color .22s ease;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 34px;
    padding: 8px 18px 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-icons svg {
    width: 14px;
    height: 10px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-icons svg:not(:first-child) {
    fill: none;
}

.status-icons .battery {
    width: 21px;
}

.status-icons .battery .battery-fill {
    fill: currentColor;
    stroke: none;
}

.reader-toolbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    flex: 0 0 44px;
    padding-inline: 6px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reader-book-title {
    overflow: hidden;
    font-family: var(--serif);
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-progress {
    flex: 0 0 2px;
    margin-inline: 6px;
    background: var(--reader-line);
}

.reading-progress span {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--reader-accent);
    transition: width .2s ease;
}

.reading-progress span[data-progress="2"] {
    width: 50%;
}

.reading-progress span[data-progress="3"] {
    width: 75%;
}

.reading-progress span[data-progress="4"] {
    width: 100%;
}

.reader-page {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 22px 12px;
    overflow-y: auto;
    scrollbar-width: none;
}

.reader-page::-webkit-scrollbar {
    display: none;
}

.chapter-header {
    margin-bottom: 26px;
    text-align: center;
}

.chapter-header h2 {
    margin-bottom: 7px;
    color: var(--reader-ink);
    font-size: 18px;
    line-height: 1.5;
}

.chapter-header p {
    margin: 0;
    color: var(--reader-muted);
    font-size: 9px;
    letter-spacing: .03em;
}

.chapter-text {
    color: var(--reader-ink);
    font-family: var(--serif);
    font-size: var(--reader-font-size);
    line-height: 1.95;
    text-align: left;
}

.chapter-text p {
    margin-bottom: .55em;
    text-indent: 2em;
}

.chapter-text p:last-child {
    margin-bottom: 0;
}

.reader-footer {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    flex: 0 0 46px;
    border-top: 1px solid var(--reader-line);
    color: var(--reader-accent);
    font-size: 11px;
}

.reader-footer button {
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
}

.reader-footer button:disabled {
    color: var(--reader-muted);
    opacity: .55;
}

.reader-footer span {
    color: var(--reader-muted);
    font-size: 9px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.toc-panel {
    position: absolute;
    inset: 36% 0 0;
    z-index: 3;
    padding: 20px 12px 12px;
    border-top: 1px solid var(--reader-line);
    border-radius: 24px 24px 0 0;
    background: var(--reader-bg);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, .15);
}

.toc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
}

.toc-heading strong {
    font-weight: 600;
}

.toc-heading button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--reader-accent);
    font-size: 12px;
    cursor: pointer;
}

.toc-list {
    display: grid;
    gap: 2px;
    margin-top: 6px;
}

.toc-list button {
    display: grid;
    grid-template-columns: 26px 1fr 18px;
    align-items: center;
    min-height: 46px;
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--reader-ink);
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.toc-list button span {
    color: var(--reader-muted);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.toc-list button svg {
    visibility: hidden;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--reader-accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toc-list button[aria-current="true"] {
    background: color-mix(in srgb, var(--reader-accent) 10%, transparent);
    color: var(--reader-accent);
    font-weight: 600;
}

.toc-list button[aria-current="true"] svg {
    visibility: visible;
}

.reader-controls {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
}

.theme-control {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.theme-control legend,
.font-control label {
    margin-bottom: 8px;
    padding: 0;
    color: var(--muted);
    font-size: 11px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.theme-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

.theme-swatch > span:first-child {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(53, 50, 44, .2);
    border-radius: 50%;
    background: var(--swatch);
}

.swatch-paper {
    --swatch: #FBF8F0;
}

.swatch-sepia {
    --swatch: #F3E9D2;
}

.swatch-green {
    --swatch: #E4EEDD;
}

.swatch-dark {
    --swatch: #191B20;
}

.theme-swatch[aria-pressed="true"] {
    border-color: var(--accent-bright);
    color: var(--accent);
    font-weight: 600;
}

.font-control {
    margin-top: 12px;
}

.font-control label {
    display: block;
}

.font-input-row {
    display: grid;
    grid-template-columns: 14px 1fr 18px 44px;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    color: var(--muted);
    font-size: 10px;
}

.font-large {
    font-size: 14px;
}

.font-input-row input {
    width: 100%;
    min-height: 32px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.font-input-row output {
    font-size: 11px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.capability-line {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: 25px;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-family: var(--serif);
    font-size: 15px;
    text-align: center;
}

.capability-line span:not(:last-child) {
    border-right: 1px solid var(--hairline);
}

.library-section {
    padding-block: 120px 132px;
}

.section-heading {
    max-width: 620px;
}

.section-label {
    margin-bottom: 18px;
}

.section-heading h2,
.privacy-copy h2,
.closing-section h2 {
    margin-bottom: 26px;
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1.28;
    letter-spacing: -.035em;
}

.section-heading > p:last-child {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.9;
}

.library-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    gap: 90px;
    margin-top: 78px;
}

.shelf {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 320px;
    padding: 40px 32px 0;
    border-bottom: 2px solid #B9AE9D;
}

.book {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 142px;
    aspect-ratio: .72;
    padding: 18px 15px 20px 22px;
    overflow: hidden;
    border-radius: 4px 9px 9px 4px;
    box-shadow: 8px 12px 22px rgba(53, 45, 33, .17);
    color: #FFF9EE;
    transform-origin: bottom center;
}

.book::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 8px;
    width: 1px;
    background: rgba(255, 255, 255, .22);
    box-shadow: 3px 0 7px rgba(0, 0, 0, .2);
}

.book-green {
    background: linear-gradient(145deg, #66765E, #344C43);
    transform: rotate(-4deg) translate(8px, -5px);
}

.book-blue {
    z-index: 2;
    background: linear-gradient(145deg, #617783, #2F4856);
    transform: translateY(-24px);
}

.book-red {
    background: linear-gradient(145deg, #A25845, #67382F);
    transform: rotate(4deg) translate(-8px, -2px);
}

.book-character {
    font-family: var(--serif);
    font-size: 50px;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .18);
}

.book div {
    display: grid;
    gap: 4px;
}

.book strong {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
}

.book small {
    color: rgba(255, 249, 238, .72);
    font-size: 10px;
}

.shelf-shadow {
    position: absolute;
    right: 8%;
    bottom: -14px;
    left: 8%;
    height: 14px;
    background: rgba(53, 45, 33, .08);
    filter: blur(12px);
}

.import-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.import-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding-block: 24px;
    border-top: 1px solid var(--hairline);
}

.import-steps li:last-child {
    border-bottom: 1px solid var(--hairline);
}

.step-number {
    padding-top: 2px;
    color: var(--accent);
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.4;
    text-align: center;
}

.import-steps h3 {
    margin-bottom: 6px;
    font-size: 21px;
}

.import-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.details-section {
    padding-block: 112px 120px;
    background: var(--night);
    color: #F4F0E7;
}

.details-heading {
    margin-bottom: 66px;
}

.details-heading .section-label {
    color: #D9856D;
}

.feature-list {
    border-bottom: 1px solid #3C3E43;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 70px;
    padding-block: 36px;
    border-top: 1px solid #3C3E43;
}

.feature-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-title svg {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #D9856D;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title h3 {
    margin: 0;
    font-size: 25px;
}

.feature-row > p {
    max-width: 560px;
    margin: 0;
    color: #BDBCC0;
    font-size: 15px;
    line-height: 1.9;
}

.privacy-section {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(310px, .8fr);
    align-items: center;
    gap: 54px;
    padding-block: 130px;
}

.privacy-symbol {
    align-self: start;
    padding-top: 52px;
}

.privacy-symbol svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: var(--moss);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-copy > p:not(.section-label) {
    max-width: 530px;
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.95;
}

.privacy-copy .privacy-note {
    padding-left: 14px;
    border-left: 2px solid var(--moss);
    font-size: 12px;
}

.local-file {
    padding: 18px 0 18px 44px;
    border-left: 1px solid var(--hairline);
}

.local-file-label {
    display: block;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12px;
}

.file-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--serif);
    font-size: 16px;
}

.file-path i {
    width: 15px;
    height: 1px;
    background: var(--hairline);
}

.file-path strong {
    color: var(--accent);
    font-weight: 600;
}

.local-file p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    color: var(--moss);
    font-size: 12px;
}

.local-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--moss);
}

.closing-section {
    padding-block: 100px 112px;
    border-top: 1px solid var(--hairline);
    text-align: center;
}

.closing-book {
    width: 74px;
    height: 54px;
    margin: 0 auto 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.closing-section h2 {
    margin-bottom: 32px;
}

.closing-section .button {
    min-width: 156px;
}

.site-footer {
    border-top: 1px solid var(--hairline);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    min-height: 118px;
}

.footer-brand {
    font-size: 25px;
}

.footer-brand .brand-mark {
    width: 27px;
    height: 27px;
}

.footer-inner > p {
    margin: 0;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
}

@media (hover: hover) {
    .nav-links a:hover,
    .text-link:hover,
    .footer-links a:hover {
        color: var(--accent);
        text-decoration: underline;
    }

    .header-action:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

    .button-primary:hover {
        background: #913420;
    }

    .theme-swatch:hover {
        background: var(--paper-deep);
    }

    .toc-list button:hover {
        background: color-mix(in srgb, var(--reader-accent) 8%, transparent);
    }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr);
        gap: 36px;
    }

    .product-note {
        display: none;
    }

    .library-layout {
        gap: 54px;
    }

    .privacy-section {
        grid-template-columns: 64px 1fr 310px;
        gap: 34px;
    }

    .local-file {
        padding-left: 28px;
    }
}

@media (max-width: 860px) {
    .shell {
        width: min(100% - 48px, 680px);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-block: 68px 76px;
    }

    .hero-copy {
        max-width: 620px;
        padding-bottom: 0;
    }

    .hero h1 {
        font-size: clamp(48px, 8.5vw, 66px);
    }

    .hero-product {
        padding-top: 0;
    }

    .library-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .shelf {
        min-height: 310px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .privacy-section {
        grid-template-columns: 64px 1fr;
        gap: 30px;
    }

    .local-file {
        grid-column: 2;
        padding: 26px 0 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner > p {
        display: none;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 28px;
    }

    .shell {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 72px;
        gap: 16px;
    }

    .brand {
        font-size: 27px;
    }

    .brand-mark {
        width: 29px;
        height: 29px;
    }

    .nav-links {
        display: none;
    }

    .header-action {
        min-height: 44px;
        padding-inline: 16px;
        font-size: 12px;
    }

    .hero {
        gap: 50px;
        min-height: 0;
        padding-block: 48px 58px;
    }

    .kicker {
        margin-bottom: 22px;
        font-size: 11px;
        letter-spacing: .04em;
    }

    .hero h1 {
        margin-bottom: 22px;
        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.28;
    }

    .hero-intro {
        margin-bottom: 28px;
        font-size: 15px;
        line-height: 1.9;
    }

    .hero-actions {
        gap: 20px;
    }

    .button {
        min-height: 50px;
        padding-inline: 21px;
    }

    .text-link {
        font-size: 13px;
    }

    .hero-facts {
        margin-top: 34px;
    }

    .reader-demo {
        width: 100%;
    }

    .phone {
        width: min(320px, calc(100vw - 62px));
    }

    .reader-controls {
        width: min(100%, 350px);
        margin-inline: auto;
    }

    .theme-options {
        gap: 4px;
    }

    .theme-swatch {
        padding-inline: 4px;
    }

    .capability-line {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
        padding-block: 22px;
        font-size: 14px;
    }

    .capability-line span:nth-child(2) {
        border-right: 0;
    }

    .library-section {
        padding-block: 80px 88px;
    }

    .section-heading h2,
    .privacy-copy h2,
    .closing-section h2 {
        font-size: clamp(36px, 10vw, 44px);
    }

    .section-heading > p:last-child,
    .privacy-copy > p:not(.section-label) {
        font-size: 14px;
    }

    .library-layout {
        margin-top: 48px;
        gap: 48px;
    }

    .shelf {
        min-height: 238px;
        padding: 30px 12px 0;
    }

    .book {
        width: min(106px, 29vw);
        padding: 14px 10px 15px 17px;
    }

    .book-character {
        font-size: 38px;
    }

    .book strong {
        font-size: 12px;
    }

    .book small {
        font-size: 9px;
    }

    .import-steps li {
        grid-template-columns: 32px 1fr;
        gap: 14px;
        padding-block: 22px;
    }

    .details-section {
        padding-block: 78px 82px;
    }

    .details-heading {
        margin-bottom: 42px;
    }

    .feature-row {
        gap: 14px;
        padding-block: 28px;
    }

    .feature-title {
        gap: 14px;
    }

    .feature-title h3 {
        font-size: 22px;
    }

    .feature-title svg {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .feature-row > p {
        font-size: 14px;
    }

    .privacy-section {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-block: 82px;
    }

    .privacy-symbol {
        padding-top: 0;
    }

    .privacy-symbol svg {
        width: 48px;
        height: 48px;
    }

    .local-file {
        grid-column: 1;
        margin-top: 8px;
    }

    .closing-section {
        padding-block: 74px 82px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-block: 30px;
    }

    .footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 350px) {
    .hero h1 {
        font-size: 34px;
    }

    .theme-swatch {
        gap: 4px;
        font-size: 10px;
    }

    .theme-swatch > span:first-child {
        width: 15px;
        height: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(251, 248, 240, .88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
}

.main-nav {
    gap: 24px;
}

.language-control {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.language-control > svg {
    position: absolute;
    inset-inline-start: 13px;
    z-index: 1;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.language-control::after {
    content: "";
    position: absolute;
    inset-inline-end: 14px;
    width: 6px;
    height: 6px;
    border-inline-end: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: translateY(-2px) rotate(45deg);
    pointer-events: none;
}

.language-control select {
    width: 142px;
    min-height: 44px;
    padding: 8px 30px 8px 38px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

[dir="rtl"] .language-control select {
    padding: 8px 38px 8px 30px;
}

select:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: 4px;
}

.kicker-text {
    width: auto !important;
    height: auto !important;
    background: none !important;
}

h1,
h2,
h3,
p,
a,
button {
    overflow-wrap: break-word;
}

h1,
h2 {
    text-wrap: balance;
}

.hero-intro,
.section-heading > p:last-child,
.feature-row > p,
.privacy-copy > p:not(.section-label) {
    text-wrap: pretty;
}

.button,
.header-action,
.theme-swatch,
.icon-button {
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.button:active,
.header-action:active,
.theme-swatch:active,
.icon-button:active {
    transform: translateY(1px);
}

.phone {
    box-shadow: 0 32px 70px rgba(53, 45, 33, .18), 0 4px 12px rgba(53, 45, 33, .1);
}

.chapter-text {
    text-align: start;
}

.chapter-text p {
    text-indent: 0;
}

:lang(zh-Hans) .chapter-text p,
:lang(zh-Hant) .chapter-text p {
    text-indent: 2em;
}

:lang(ja) {
    --serif: "Hiragino Mincho ProN", "Yu Mincho", var(--serif);
}

:lang(ja) .chapter-text p {
    text-indent: 1em;
}

:lang(ko) {
    --serif: "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
}

:lang(ar) {
    --serif: "Geeza Pro", "Noto Naskh Arabic", serif;
}

:lang(en) .product-note,
:lang(fr) .product-note,
:lang(de) .product-note,
:lang(ar) .product-note {
    display: none;
}

.toc-list button {
    text-align: start;
}

.toc-chapter-title {
    min-width: 0;
}

.capability-line span:not(:last-child) {
    border-right: 0;
    border-inline-end: 1px solid var(--hairline);
}

.book strong {
    line-height: 1.4;
}

.privacy-copy .privacy-note {
    padding-left: 0;
    padding-inline-start: 14px;
    border-left: 0;
    border-inline-start: 2px solid var(--moss);
}

.local-file {
    padding-left: 0;
    padding-inline-start: 44px;
    border-left: 0;
    border-inline-start: 1px solid var(--hairline);
}

.font-input-row {
    grid-template-columns: minmax(18px, auto) minmax(70px, 1fr) minmax(18px, auto) 48px;
}

[dir="rtl"] .button svg,
[dir="rtl"] #back-to-library svg {
    transform: scaleX(-1);
}

[dir="rtl"] .font-input-row input {
    direction: ltr;
}

@media (hover: hover) {
    .language-control select:hover {
        border-color: var(--accent);
        background: var(--paper-deep);
    }
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 16px;
    }

    .nav-links {
        gap: 22px;
    }

    .language-control select {
        width: 130px;
    }

    .local-file {
        padding-inline-start: 28px;
    }
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 860px) {
    .local-file {
        padding-inline-start: 0;
        border-top: 1px solid var(--hairline);
        border-inline-start: 0;
    }
}

@media (max-width: 600px) {
    .site-header {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .header-inner {
        gap: 12px;
    }

    .main-nav {
        gap: 10px;
    }

    .language-control select {
        width: 126px;
        font-size: 12px;
    }

    .language-control > svg {
        inset-inline-start: 11px;
        width: 15px;
        height: 15px;
    }

    .language-control select {
        padding-inline: 32px 27px;
    }

    .capability-line span:nth-child(2) {
        border-inline-end: 0;
    }

    .hero h1,
    .section-heading h2,
    .privacy-copy h2,
    .closing-section h2 {
        letter-spacing: -.025em;
    }
}

@media (max-width: 480px) {
    .header-action {
        display: none;
    }
}

@media (max-width: 350px) {
    .language-control select {
        width: 112px;
    }

    .brand {
        font-size: 24px;
    }

    .brand-mark {
        width: 26px;
        height: 26px;
    }
}
