@font-face {
  font-family: "Inter";
  src: url("./fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f5f4ee;
  --surface: #fffefa;
  --ink: #263e32;
  --muted: #6b7167;
  --accent: #355c43;
  --lime: #d5e79a;
  --line: #d8ddd0;
  --hover: #f0f3e9;
  --max: 1080px;
  --reading: 760px;
  --serif: "Fraunces", Georgia, serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root:lang(zh-Hans) { --serif: "LXGW WenKai", "Kaiti SC", "KaiTi", serif; --body-font: "LXGW WenKai", "Kaiti SC", "KaiTi", serif; }
:root:lang(ja) { --serif: "Zen Maru Gothic", "LXGW WenKai", "Hiragino Maru Gothic ProN", sans-serif; --body-font: "Zen Maru Gothic", "LXGW WenKai", "Hiragino Maru Gothic ProN", sans-serif; }
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header .inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.brand-mark { width: 34px; height: 38px; padding: 7px; flex: 0 0 auto; border-radius: 9px 9px 9px 2px; background: var(--ink); color: var(--paper); }
.header-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 30px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.language-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-left: 1px solid var(--line); padding-left: 24px; }
.language-switcher a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; text-decoration: none; }
.language-switcher a:lang(zh-Hans) { font-family: "LXGW WenKai", "KaiTi", serif; }
.language-switcher a:lang(ja) { font-family: "Zen Maru Gothic", sans-serif; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.language-switcher a[aria-current="page"] { font-weight: 650; }

/* The title and short introduction form an asymmetric editorial opening. */
.home-intro { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 80px; padding-block: 52px 50px; }
.section-label { margin: 0 0 22px; display: flex; align-items: center; gap: 9px; color: var(--accent); font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.label-rule { width: 23px; height: 7px; background: var(--lime); border-left: 2px solid var(--accent); }
.home-intro h1 { font-family: var(--serif); margin: 0; font-size: clamp(48px, 6vw, 76px); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
.home-intro h1 > span { display: block; }
.home-intro .title-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.055em; color: var(--accent); }
.intro-aside { padding: 0 0 4px 42px; border-left: 1px solid var(--line); }
.intro-copy { max-width: 290px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.95; }
.browse-link { min-height: 44px; display: inline-flex; align-items: center; gap: 26px; margin-top: 22px; font-size: 12px; font-weight: 600; text-decoration: none; }
.round-arrow { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #bec8b7; border-radius: 50%; font-size: 17px; transition: background-color 150ms ease; }
.browse-link:hover .round-arrow { background: var(--lime); }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; margin-bottom: 16px; }
.collection-heading h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; }
.collection-heading svg { width: 21px; height: 21px; }
.collection-heading p { margin: 0; font-size: 12px; color: var(--muted); }

/* One featured app: a bespoke notebook illustration and a useful document index. */
.app-entry { display: grid; grid-template-columns: .9fr 1.3fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.app-art { min-width: 0; position: relative; min-height: 370px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px 30px 24px; color: #e7edcd; background: #2e5140; }
.art-kicker { font-size: 11px; letter-spacing: .08em; }
.diary-illustration { width: 100%; height: auto; max-height: 290px; display: block; margin-block: -2px -10px; }
.art-bottom { display: flex; align-items: center; gap: 15px; font-size: 10px; letter-spacing: .13em; }
.art-line { height: 1px; flex: 1; background: #6c8570; }
.app-details { min-width: 0; padding: 29px 36px 18px; }
.app-heading { margin-bottom: 19px; }
.app-heading h3 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.025em; line-height: 1.45; overflow-wrap: anywhere; }
.app-heading h3:lang(en), .app-names dd:lang(en) { font-family: "Inter", sans-serif; }
.app-heading h3:lang(zh-Hans), .app-names :lang(zh-Hans) { font-family: "LXGW WenKai", "KaiTi", serif; }
.app-heading h3:lang(ja), .app-names :lang(ja) { font-family: "Zen Maru Gothic", sans-serif; }
.app-heading h3:lang(zh-Hans) { font-weight: 400; }
.app-heading h3:lang(ja) { font-size: 23px; font-weight: 500; }
.app-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.app-names { display: grid; gap: 7px; margin: 17px 0 14px; }
.app-names > div { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: baseline; gap: 10px; }
.app-names dt { color: var(--muted); font-size: 11px; }
.app-names dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.store-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; padding: 9px 15px; border-radius: 7px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 500; line-height: 1.6; text-decoration: none; }
.store-link:hover { background: var(--accent); }
.store-link[aria-disabled="true"] { background: var(--ink); cursor: default; }
.document-list { border-top: 1px solid var(--line); }
.document-link { min-height: 75px; display: grid; grid-template-columns: 26px minmax(0,1fr) 32px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.document-link:last-child { border-bottom: 0; }
.document-number { align-self: start; margin-top: 3px; color: #737d6b; font-size: 10px; font-variant-numeric: tabular-nums; }
.document-link strong { display: block; font-size: 14px; font-weight: 550; line-height: 1.6; }
.document-caption { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.link-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; transition: background-color 150ms ease, border-color 150ms ease; }
.document-link:hover .link-arrow { background: var(--lime); border-color: var(--lime); }
.document-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.smart-collection { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; padding: 20px 0 23px; border-bottom: 1px solid var(--line); }
.smart-collection .collection-heading { margin: 0; justify-content: flex-start; gap: 24px; }
.smart-collection .app-entry { width: 100%; }
.empty-note { margin: 0; color: var(--muted); font-size: 12px; }
.contact-section { display: grid; grid-template-columns: .9fr 1.3fr; gap: 44px; align-items: center; padding-block: 42px 48px; }
.contact-heading { display: flex; align-items: center; gap: 17px; }
.contact-symbol { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 25px; }
.contact-heading h2 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.025em; }
.contact-copy p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.support-link { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 550; }

/* The article keeps a full reading width and inherits the handbook identity. */
.article-shell { width: min(calc(100% - 64px), var(--reading)); margin-inline: auto; }
.breadcrumb { margin: 27px 0 24px; font-size: 12px; }
.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
main.article { margin-bottom: 72px; }
.badge { display: inline-block; max-width: 100%; margin-bottom: 16px; padding: 3px 10px; border-left: 2px solid var(--accent); background: #e9eddb; color: var(--accent); font-size: 12px; overflow-wrap: anywhere; }
.article h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px,4.4vw,52px); font-weight: 400; letter-spacing: -.035em; line-height: 1.3; overflow-wrap: anywhere; }
.meta { margin: 17px 0 31px; padding-bottom: 24px; border-bottom: 1px solid #b8c5ae; color: var(--muted); font-size: 12px; }
.article h2 { margin: 35px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.6; }
.article p, .article li { color: #465347; overflow-wrap: anywhere; line-height: 1.9; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { padding-left: 24px; }
.notice { margin: 24px 0 32px; padding: 17px 21px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: #e9eddb; }
.link-list { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid #bdc9b3; border-radius: 6px; font-size: 13px; text-decoration: none; }
.button:hover { background: var(--hover); }
.site-footer .container { padding-block: 24px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 10px; }
.site-footer strong { color: var(--ink); font-weight: 550; }

:lang(zh-Hans) .home-intro h1 { font-weight: 400; font-size: clamp(46px,5.4vw,66px); letter-spacing: -.02em; line-height: 1.19; }
:lang(ja) .home-intro h1 { font-weight: 500; font-size: clamp(38px,4.5vw,56px); letter-spacing: -.03em; line-height: 1.25; }
:lang(zh-Hans) .title-accent, :lang(ja) .title-accent { font-style: normal; }
:lang(zh-Hans) .article h1, :lang(ja) .article h1 { letter-spacing: 0; }
@media (max-width: 900px) {
  .home-intro { gap: 35px; }
  .intro-aside { padding-left: 28px; }
  .app-details { padding: 25px 26px 15px; }
  .app-art { padding: 26px 24px; }
  .header-tools { gap: 6px 20px; }
  .contact-heading h2 { font-size: 25px; }
}
@media (max-width: 680px) {
  .container, .article-shell { width: calc(100% - 40px); }
  .site-header .inner { min-height: 0; align-items: flex-start; padding-block: 15px 10px; gap: 4px 0; }
  .brand { font-size: 13px; }
  .header-tools { width: 100%; justify-content: space-between; gap: 0 20px; }
  nav { gap: 4px 18px; }
  .language-switcher { border: 0; padding-left: 0; gap: 12px; }
  .home-intro { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 33px; }
  .section-label { font-size: 10px; margin-bottom: 17px; }
  .home-intro h1 { font-size: 62px; }
  :lang(zh-Hans) .home-intro h1 { font-size: 48px; }
  :lang(ja) .home-intro h1 { font-size: clamp(35px,9vw,46px); }
  .intro-aside { padding: 0; border: 0; }
  .intro-copy { max-width: 420px; font-size: 13px; line-height: 1.8; }
  .browse-link { margin-top: 10px; gap: 18px; }
  .round-arrow { width: 29px; height: 29px; }
  .collection-heading { align-items: baseline; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 14px; }
  .collection-heading h2 { font-size: 14px; }
  .collection-heading p { font-size: 11px; }
  .app-entry { grid-template-columns: 1fr; border-radius: 12px; }
  .app-art { min-height: 0; height: 195px; padding: 20px 24px; }
  .art-kicker, .art-bottom { position: relative; z-index: 1; }
  .art-bottom { font-size: 9px; gap: 10px; }
  .art-bottom .art-line { flex: 0 0 27px; }
  .diary-illustration { position: absolute; width: 254px; height: 195px; top: 1px; right: -12px; margin: 0; }
  .app-details { padding: 23px 22px 13px; }
  .app-heading h3 { font-size: 23px; }
  .app-heading h3:lang(ja) { font-size: 21px; }
  .app-names > div { grid-template-columns: 1fr; gap: 1px; }
  .document-link { grid-template-columns: 20px minmax(0,1fr) 29px; gap: 9px; min-height: 77px; }
  .link-arrow { width: 29px; height: 29px; }
  .smart-collection { padding-block: 20px; gap: 10px; }
  .smart-collection .collection-heading { gap: 16px; }
  .contact-section { grid-template-columns: 1fr; gap: 19px; padding-block: 30px 36px; }
  .contact-heading h2 { font-size: 27px; }
  .contact-symbol { width: 38px; height: 38px; font-size: 22px; }
  .breadcrumb { margin-block: 16px 22px; }
  .article h1 { font-size: 34px; }
  .article h2 { font-size: 18px; }
  .article p, .article li { font-size: 15px; }
  main.article { margin-bottom: 48px; }
  .site-footer .container { flex-direction: column; gap: 5px; }
}
@media (max-width: 360px) {
  .home-intro h1 { font-size: 55px; }
  .app-details { padding-inline: 18px; }
  .diary-illustration { width: 235px; right: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
