* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p { margin: 0; }
p + p { margin-top: 16px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(52px, 6.1vw, 88px); }
h2 { font-size: clamp(38px, 4vw, 56px); }
h3 { font-size: 27px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
em { font-weight: 400; }
.container { width: min(var(--content-max), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 112px; scroll-margin-top: 88px; }
.eyebrow { display: flex; align-items: center; gap: 18px; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .14em; color: var(--color-muted); margin-bottom: 26px; }
.eyebrow-rule { width: 64px; border-top: 1px solid var(--color-line); }
.section-description { font-size: 18px; color: var(--color-muted); max-width: 480px; margin-top: 22px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--color-ink); }
.text-link span { transition: transform var(--duration-ui); }
.text-link:hover span { transform: translate(2px, 2px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; padding: 13px 20px; background: var(--color-ink); color: var(--color-surface); border: 1px solid var(--color-ink); border-radius: var(--radius-button); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; transition: background var(--duration-ui), transform var(--duration-ui); }
.button:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-surface); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 44px; padding: 10px 17px; }
.skip-link { position: fixed; top: 8px; left: 16px; padding: 10px 16px; transform: translateY(-160%); background: var(--color-ink); color: white; z-index: 20; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--color-paper); }
.site-header.is-scrolled { border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; gap: 32px; align-items: center; min-height: 76px; position: relative; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.wordmark img { border-radius: 9px; }
.desktop-nav { display: flex; gap: 32px; margin-left: auto; }
.desktop-nav a { padding-block: 12px; text-decoration: none; font-size: 14px; }
.mobile-menu { display: none; }
.preview-notice { text-align: center; padding: 8px 20px; border-block: 1px solid var(--color-line); color: var(--color-muted); font-size: 14px; }
.hero { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; padding-block: 70px 90px; min-height: 740px; }
.hero h1 em { color: var(--color-accent); }
.hero-description { font-size: 19px; color: var(--color-muted); margin-top: 28px; max-width: 400px; }
.hero-actions { display: flex; align-items: start; flex-direction: column; gap: 18px; margin-top: 32px; }
.hero-actions .text-link { min-height: 36px; }
.format-line { margin-top: 32px; font-size: 12px; letter-spacing: .09em; color: var(--color-muted); }
.format-line span { margin-inline: 12px; }
.hero-visual { min-width: 0; }
.hero-stage { display: grid; place-items: center; position: relative; padding: 28px; isolation: isolate; }
.hero-stage > .screenshot-placeholder, .hero-stage > .product-image { width: 286px; max-width: 100%; transform: rotate(-3deg); box-shadow: var(--shadow-device); }
.paper-sheet { position: absolute; width: 286px; max-width: 80%; aspect-ratio: 1320 / 2868; background: #eceee5; border: 1px solid #d9ddce; z-index: -1; }
.sheet-one { transform: rotate(8deg) translate(15px, 2px); }
.sheet-two { transform: rotate(-10deg) translate(-10px, 1px); background: var(--color-surface); }
.hero-visual figcaption { font-size: 14px; line-height: 1.5; color: var(--color-muted); max-width: 370px; margin: 22px auto 0; text-align: center; }
.brand-page { width: 330px; max-width: 100%; aspect-ratio: .75; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: var(--color-surface); box-shadow: var(--shadow-device); transform: rotate(-3deg); border: 1px solid var(--color-line); }
.brand-page img { width: 70px; border-radius: 18px; }
.brand-page p { font: 52px/1.05 var(--font-display); text-align: center; letter-spacing: -.05em; }
.brand-page > span { font-size: 10px; letter-spacing: .2em; }
.screenshot-placeholder { width: 280px; max-width: 100%; aspect-ratio: 1320 / 2868; position: relative; display: flex; justify-content: center; align-items: center; padding: 30px 22px; text-align: center; background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-muted); }
.screenshot-placeholder > div { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.screenshot-placeholder strong { font-size: 14px; font-weight: 500; }
.screenshot-placeholder > div > span:not(.placeholder-index) { font-size: 12px; max-width: 180px; }
.placeholder-index { font: italic 84px/1 var(--font-display); color: #c3c8b9; margin-bottom: 20px; }
.placeholder-foot { position: absolute; bottom: 24px; font-size: 9px; letter-spacing: .2em; }
.placeholder-corner { position: absolute; inset: 14px; border: 1px dashed #deded5; pointer-events: none; }
.customization-section { border-top: 1px solid var(--color-line); }
.gallery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: 1fr auto; gap: 0 64px; }
.gallery-stage { grid-column: 1; grid-row: 1 / 3; min-height: 650px; background: var(--color-sage-surface); border-radius: var(--radius-panel); display: grid; place-items: center; padding: 40px; }
.gallery-stage > .product-image, .gallery-stage > .screenshot-placeholder { width: 260px; max-height: 570px; }
.gallery-stage > .product-image:not(.device-frame) { width: 100%; }
.gallery-caption { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 28px; }
.gallery-caption .eyebrow { margin-bottom: 22px; }
.gallery-caption h3 { font: 38px/1.16 var(--font-display); letter-spacing: -.035em; margin-bottom: 24px; }
.purchase-note, .example-note, .pending-note { font-size: 14px; line-height: 1.6; color: var(--color-muted); }
.purchase-note { padding-left: 14px; border-left: 2px solid var(--color-accent); }
.gallery-description { grid-column: 2; grid-row: 2; align-self: start; color: var(--color-muted); padding-bottom: 60px; }
.gallery-description .text-link { margin-top: 22px; color: var(--color-ink); }
.gallery-description ul:empty { display: none; }
.gallery-controls { display: flex; gap: 12px; grid-row: 3; grid-column: 1; padding-top: 20px; overflow-x: auto; }
.gallery-controls button { border: 1px solid var(--color-line); border-radius: 10px; background: transparent; padding: 12px; flex: 0 0 142px; display: grid; gap: 6px; justify-items: start; cursor: pointer; text-align: left; font-size: 14px; }
.gallery-controls button img { width: 40px; height: 52px; object-fit: contain; }
.gallery-controls [aria-pressed=true] { outline: 2px solid var(--color-accent); outline-offset: -2px; background: var(--color-surface); }
.selection-word { font-size: 12px; color: var(--color-muted); }
.gallery-status { grid-column: 1/-1; font-size: 14px; min-height: 24px; color: var(--color-accent); margin-top: 12px; }
.gallery-alternatives { padding-top: 24px; }
.gallery-alternatives h3 { margin-top: 24px; }
.product-image img { width: 100%; height: auto; max-height: 570px; object-fit: contain; }
.device-frame { border: 7px solid var(--color-ink); border-radius: 38px; background: var(--color-ink); overflow: clip; }
.device-frame img { border-radius: 30px; }
.gallery-stage.switched > .product-image { animation: image-in 220ms ease-out; }
@keyframes image-in { from { opacity: .3; } to { opacity: 1; } }
.customization-intro { display: grid; grid-template-columns: 7fr 4fr; align-items: center; gap: 64px; }
.display-note { background: var(--color-sage-surface); padding: 90px 64px; border-radius: var(--radius-panel); font: 64px/1.12 var(--font-display); letter-spacing: -.04em; }
.customization-intro h3 { margin-bottom: 20px; }
.customization-intro .purchase-note { margin-top: 24px; }
.reading-section { padding-top: 20px; }
.reading-stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; min-height: 590px; padding: 56px 80px; background: #eeede7; border-radius: var(--radius-panel); }
.reading-visual { display: grid; place-items: center; }
.reading-visual .screenshot-placeholder { width: 230px; }
.reading-copy { max-width: 350px; }
.reading-copy h3 { font-size: 30px; margin-bottom: 24px; }
.reading-copy > p:not(.eyebrow) { color: var(--color-muted); }
.quiet-line { margin-top: 24px; font-size: 14px; color: var(--color-muted); }
.reading-type { display: flex; align-items: center; gap: 24px; font: 120px/1 var(--font-display); }
.vertical-type { writing-mode: vertical-rl; font-size: 60px; color: var(--color-accent); }
.library-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 100px; align-items: center; }
.source-list { margin-top: 40px; margin-bottom: 0; }
.source-list > div { padding: 24px 0; border-top: 1px solid var(--color-line); }
.source-list dt { font-size: 18px; font-weight: 500; }
.source-list dd { margin: 6px 0 0; font-size: 15px; color: var(--color-muted); }
.library-visual { min-height: 640px; background: #eeeee7; border-radius: var(--radius-panel); display: grid; place-items: center; padding: 36px; }
.library-visual .screenshot-placeholder { width: 260px; }
.library-letterpress { display: flex; flex-direction: column; align-items: start; }
.library-letterpress > span { font-size: 13px; letter-spacing: .15em; margin-top: 22px; }
.library-letterpress em { font: italic 76px/1.1 var(--font-display); letter-spacing: -.04em; color: var(--color-accent); }
.more-section { padding-top: 32px; }
.more-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.more-grid article { padding-right: 56px; }
.more-grid article + article { padding-left: 56px; padding-right: 0; border-left: 1px solid var(--color-line); }
.more-title { display: flex; align-items: baseline; justify-content: space-between; }
.more-title > span { color: var(--color-muted); font-size: 12px; }
.more-grid article > p { margin-top: 12px; color: var(--color-muted); }
.wide-placeholder { margin-top: 32px; width: 100%; aspect-ratio: 4/3; background: #efeee8; }
.wide-placeholder .placeholder-index { font-size: 60px; margin-bottom: 0; }
.faq-section { border-top: 1px solid var(--color-line); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 90px; }
.faq-list details { border-bottom: 1px solid var(--color-line); }
.faq-list details:first-child { border-top: 1px solid var(--color-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; font-size: 17px; font-weight: 500; padding: 24px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 24px; font-weight: 400; }
.faq-list details[open] > summary::after { content: '−'; }
.faq-list details > div { padding: 0 32px 28px 0; font-size: 15px; color: var(--color-muted); }
.download-section { padding-block: 86px 100px; text-align: center; background: var(--color-sage-surface); }
.download-section .eyebrow { justify-content: center; }
.download-section h2 { font-size: clamp(42px,4.5vw,64px); }
.download-section p:not(.eyebrow) { margin-top: 24px; color: var(--color-muted); }
.download-section .button { margin-top: 30px; }
.site-footer { padding-block: 48px 28px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-main nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-line); font-size: 12px; color: var(--color-muted); }
.document-main { max-width: var(--reading-max); width: calc(100% - 40px); margin: 0 auto; padding-block: 80px 112px; line-height: 1.75; overflow-wrap: anywhere; }
.document-main h1 { font-size: clamp(36px,4.5vw,58px); margin: 12px 0 30px; }
.document-main h2 { margin-top: 60px; margin-bottom: 22px; font: 500 30px/1.25 var(--font-body); letter-spacing: -.025em; }
.document-main h3 { margin: 36px 0 18px; font-size: 23px; }
.document-main p, .document-main ul, .document-main ol { margin-bottom: 20px; }
.document-main li { margin-block: 8px; }
.document-main img { max-height: 640px; width: auto; object-fit: contain; }
.document-main pre { max-width: 100%; overflow-x: auto; padding: 22px; border: 1px solid var(--color-line); background: #edeee7; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.document-main code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: #edeee7; padding: 2px 4px; border-radius: 3px; }
.document-main pre code { padding: 0; font-size: inherit; }
.document-main table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.document-main th, .document-main td { border-bottom: 1px solid var(--color-line); text-align: left; padding: 12px; }
.document-main blockquote { margin: 24px 0; padding: 0 0 0 22px; border-left: 2px solid var(--color-accent); color: var(--color-muted); }
.document-main hr { border: 0; border-top: 1px solid var(--color-line); margin-block: 44px; }
.document-main .meta, .document-main .subtitle, .document-main .muted { font-size: 14px; color: var(--color-muted); }
.document-main .langbar { font-size: 14px; margin-bottom: 32px; }
.document-main .logo { width: 88px; border-radius: 18px; }
.document-main .btn { display: inline-block; padding: 8px 0; min-height: 44px; margin-right: 16px; }
.document-main .card { padding: 24px; border: 1px solid var(--color-line); border-radius: 12px; margin-bottom: 24px; }
.blog-main { width: min(960px, calc(100% - 64px)); max-width: none; }
.blog-intro { max-width: 700px; margin-bottom: 56px; }
.blog-list article { padding-block: 34px; border-top: 1px solid var(--color-line); }
.blog-list article h2 { font: 400 34px/1.25 var(--font-display); margin: 12px 0 18px; }
.blog-list article h2 a { text-decoration: none; }
.blog-list article p { max-width: 68ch; color: var(--color-muted); }
@media (min-width: 1360px) { .hero-actions { flex-direction: row; align-items: center; gap: 24px; } .hero-actions .button { gap: 12px; padding-inline: 16px; } }
@media (max-width: 1023px) {
  .desktop-nav { gap: 20px; }
  .header-inner { gap: 24px; }
  .hero { gap: 32px; min-height: 700px; padding-top: 48px; }
  .hero-stage { padding-inline: 14px; }
  .hero-stage > .screenshot-placeholder, .hero-stage > .product-image, .paper-sheet { width: 250px; }
  .section { padding-block: 80px; }
  .gallery { gap: 0 36px; }
  .gallery-stage { padding: 24px; min-height: 590px; }
  .reading-stage { padding: 40px; gap: 40px; }
  .reading-type { font-size: 90px; gap: 16px; }
  .vertical-type { font-size: 44px; }
  .library-grid { gap: 48px; }
  .faq-grid { gap: 48px; }
  .more-grid article { padding-right: 32px; }
  .more-grid article + article { padding-left: 32px; }
  .footer-main { align-items: start; }
  .footer-main nav { justify-content: end; gap: 8px 20px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 72px; scroll-margin-top: 76px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .section-description { font-size: 17px; margin-top: 18px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .wordmark { font-size: 21px; gap: 8px; }
  .wordmark img { width: 30px; height: 30px; }
  .desktop-nav { display: none; }
  .header-download { margin-left: auto; font-size: 12px; padding: 9px 12px; gap: 8px; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; list-style: none; }
  .mobile-menu[open] .menu-mark { transform: rotate(45deg); }
  .mobile-menu nav { position: absolute; top: 100%; left: -20px; right: -20px; display: grid; padding: 16px 20px 24px; border-block: 1px solid var(--color-line); background: var(--color-paper); }
  .mobile-menu nav a { display: block; text-decoration: none; padding: 13px 6px; }
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding-block: 52px 64px; }
  .hero-description { font-size: 17px; margin-top: 22px; max-width: 330px; }
  .hero-actions { margin-top: 28px; gap: 18px; }
  .format-line { margin-top: 24px; }
  .hero-stage { padding: 24px 20px; }
  .hero-stage > .screenshot-placeholder, .hero-stage > .product-image, .paper-sheet { width: 246px; }
  .hero-stage > .screenshot-placeholder, .hero-stage > .product-image { transform: rotate(-1deg); }
  .hero-visual figcaption { text-align: left; max-width: 300px; margin-top: 20px; }
  .brand-page { width: 280px; }
  .section-heading { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 32px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gallery-stage { grid-row: 1; grid-column: 1; padding: 32px 20px; min-height: 540px; }
  .gallery-stage > .screenshot-placeholder, .gallery-stage > .product-image { width: 220px; }
  .gallery-caption { grid-row: 2; grid-column: 1; padding: 28px 0 0; }
  .gallery-caption .eyebrow { margin-bottom: 16px; }
  .gallery-caption h3 { font-size: 30px; margin-bottom: 20px; }
  .gallery-controls { grid-row: 3; grid-column: 1; }
  .gallery-description { grid-row: 4; grid-column: 1; margin-top: 24px; padding-bottom: 0; }
  .gallery-status { grid-row: 5; }
  .customization-intro { grid-template-columns: 1fr; gap: 32px; }
  .display-note { font-size: 48px; padding: 56px 32px; }
  .reading-stage { grid-template-columns: 1fr; padding: 36px 24px; gap: 40px; min-height: 0; }
  .reading-copy h3 { font-size: 26px; }
  .reading-type { justify-content: center; padding-block: 30px; }
  .library-grid { grid-template-columns: 1fr; gap: 36px; }
  .library-visual { min-height: 550px; padding: 32px 20px; }
  .library-visual .screenshot-placeholder { width: 220px; }
  .source-list { margin-top: 30px; }
  .source-list > div { padding-block: 22px; }
  .more-grid { grid-template-columns: 1fr; gap: 40px; }
  .more-grid article { padding: 0; }
  .more-grid article + article { padding: 40px 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-list summary { font-size: 16px; padding-block: 22px; }
  .download-section h2 { font-size: 40px; }
  .footer-main { flex-direction: column; gap: 24px; }
  .footer-main nav { justify-content: start; gap: 8px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; margin-top: 24px; }
  .document-main { padding-block: 44px 64px; }
  .document-main h1 { font-size: 38px; }
  .document-main h2 { font-size: 27px; margin-top: 44px; }
  .blog-main { width: calc(100% - 40px); }
  .blog-list article h2 { font-size: 28px; }
}
@media (max-width: 359px) { .wordmark { font-size: 19px; } .header-inner { gap: 10px; } .header-download { padding-inline: 9px; } .header-download span { display: none; } .hero-actions .button { width: 100%; gap: 12px; padding-inline: 12px; } h1 { font-size: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-stage > .screenshot-placeholder, .hero-stage > .product-image, .brand-page { transform: none; }
  .text-link:hover span, .button:active { transform: none; }
}
/* Preserve compact first-screen positioning for the explicitly empty preview. */
@media (min-width: 768px) { .hero { padding-block: 40px 64px; } .hero-stage > .screenshot-placeholder { width: 260px; } }
.legal-body .q { font-weight: 600; margin-top: 28px; }
.legal-body .sub { color: var(--color-muted); font-size: 14px; }
