@font-face {
  font-family: "FateKit Kai Web";
  src: url("/assets/fonts-110/fatekit-kai.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "FateKit Kai JP Web";
  src: url("/assets/fonts-110/fatekit-kai-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #faf8f4;
  --paper-bright: #fffefb;
  --ink: #242947;
  --ink-soft: #6b7091;
  --hairline: #e0dedb;
  --accent: #80631f;
  --display: "FateKit Kai Web", "Kaiti SC", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans", sans-serif;
  --shell: min(78rem, calc(100% - 4rem));
  --section-space: clamp(3rem, 5.5vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
button, select { color: inherit; font: inherit; }
a, button, summary, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }
h1, h2 { line-height: 1.24; letter-spacing: -.035em; }
h2 { margin-bottom: 1rem; font-size: clamp(2.15rem, 3.1vw, 2.85rem); }
p { color: var(--ink-soft); text-wrap: pretty; }
.shell { width: var(--shell); margin-inline: auto; }

html[lang="en"] { --display: Optima, Candara, "Segoe UI", sans-serif; --reading: Charter, "Bitstream Charter", Georgia, serif; }
html[lang="zh-Hant"] { --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang^="ja"] { --display: "FateKit Kai JP Web", "Yu Mincho", serif; --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; }
html[lang^="ko"] { --display: "FateKit Kai Web", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; }

.skip-link { position: fixed; top: .75rem; left: 1rem; z-index: 10; padding: .6rem 1rem; color: var(--paper); background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(-180%); }
.skip-link:focus { opacity: 1; pointer-events: auto; transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: max-content; max-width: 100%; color: var(--ink); font-size: 1.35rem; font-weight: 500; letter-spacing: .045em; white-space: nowrap; line-height: 1; }
.brand-wordmark { display: block; width: 8rem; line-height: 0; }
.brand-wordmark img { width: 100%; height: auto; border-radius: 0; }
.brand-local-name { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: .04em; }
.language-picker { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .35rem .6rem; border: 1px solid var(--hairline); border-radius: .45rem; }
.language-picker svg { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: var(--ink-soft); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.35; }
.language-picker select { min-width: 6.5rem; max-width: 9rem; min-height: 1.75rem; padding: 0; border: 0; background: var(--paper); font-size: .8rem; cursor: pointer; }
.language-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.language-picker select:focus { outline: none; }

.store-button { font-family: var(--display); display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 3.25rem; max-width: 100%; padding: .8rem 1.35rem; border: 1px solid var(--hairline); border-radius: 1rem; color: var(--ink); background: var(--paper-bright); box-shadow: 0 .35rem 1.1rem #141a2914; font-size: .9rem; font-weight: 500; line-height: 1.35; text-align: center; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.store-button svg { width: 1.2rem; height: 1.2rem; fill: currentColor; flex-shrink: 0; }
.store-button.is-pending { opacity: .7; cursor: default; }
.store-button:active { transform: translateY(1px); }

.perspectives { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); align-items: center; gap: 3rem; padding-block: 3rem; }
.section-intro { max-width: 27rem; }
.section-intro h2 { font-size: clamp(1.8rem, 2.5vw, 2.35rem); }
.section-intro p { max-width: 25rem; margin-bottom: 0; font-size: .95rem; }
.system-family { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.system-family li { display: grid; justify-items: center; gap: .75rem; text-align: center; }
.system-family picture { display: block; width: 4.5rem; max-width: 100%; }
.system-family img { width: 100%; }
.system-family span { color: var(--ink); font-family: var(--display); font-size: .95rem; line-height: 1.4; }

.editorial-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding-block: 0 var(--section-space); }
.editorial-feature { min-width: 0; }
.editorial-art { overflow: hidden; aspect-ratio: 3 / 2; background: #f5ecdf; border-radius: .35rem; }
.editorial-art img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 1.75rem .25rem 0; }
.story-copy h2 { font-size: clamp(2rem, 2.8vw, 2.65rem); }
.story-copy p { max-width: 31rem; margin-bottom: 0; font-size: 1rem; line-height: 1.85; }

.home-faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); align-items: start; gap: 3rem; padding-block: var(--section-space); border-top: 1px solid var(--hairline); }
.faq-intro { padding-top: .75rem; }
.faq-intro .eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: .7rem; font-weight: 600; letter-spacing: .12em; }
.faq-intro h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 2.7vw, 2.6rem); }
.faq-support { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; color: var(--ink-soft); font-size: .85rem; text-decoration: underline; text-decoration-color: var(--hairline); }
.home-faq .faq { border-top: 1px solid var(--hairline); }

.privacy-section { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding-block: 3rem; border-top: 1px solid var(--hairline); }
.privacy-copy { max-width: 42rem; }
.privacy-section h2 { margin-bottom: .75rem; font-size: clamp(1.8rem, 2.4vw, 2.25rem); }
.privacy-lede { max-width: 36rem; margin: 0; font-size: .95rem; }
.closing-action { display: grid; flex-shrink: 0; justify-items: center; gap: .75rem; }
.closing-action p { margin: 0; font-size: .85rem; }

.site-footer { display: grid; grid-template-columns: minmax(16rem, 1fr) auto; gap: 2.5rem 4rem; padding-block: 3.5rem 1.5rem; border-top: 1px solid var(--hairline); }
.footer-intro { display: grid; align-content: start; gap: .9rem; }
.brand--footer { font-size: 1.15rem; }
.brand--footer .brand-wordmark { width: 7rem; }
.brand--footer .brand-local-name { font-size: 1.1rem; }
.footer-parent { margin: 0; font-size: .75rem; }
.footer-parent a { color: var(--ink); font-size: .7rem; font-weight: 600; letter-spacing: .055em; }
.footer-link-groups { display: grid; grid-template-columns: repeat(2, minmax(7rem, 1fr)); gap: 3rem; }
.footer-link-group { display: grid; justify-items: start; align-content: start; gap: .5rem; }
.footer-link-group > p { margin: 0 0 .25rem; color: var(--ink); font-size: .75rem; font-weight: 600; }
.footer-link-group a { color: var(--ink-soft); font-size: .82rem; }
.footer-bottom { grid-column: 1 / -1; margin-top: 1rem; }
.footer-bottom p { margin: 0; color: var(--ink-soft); font-size: .7rem; }

.support-main { padding-block: 3.5rem var(--section-space); }
.support-hero { max-width: 42rem; padding-bottom: 3.5rem; }
.support-hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.75rem, 5vw, 4rem); }
.support-hero p { margin-bottom: 0; font-size: 1.1rem; }
.support-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 5rem; padding-top: 3rem; border-top: 1px solid var(--hairline); }
.support-layout h2 { font-size: 1.65rem; }
.support-email { display: inline-block; margin-bottom: 1rem; color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.4rem); text-decoration: underline; text-decoration-color: var(--hairline); }
.support-contact > p { max-width: 25rem; font-size: .95rem; }
.support-contact .contact-privacy { font-size: .8rem; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-block: 1rem; color: var(--ink); font-size: 1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { flex-shrink: 0; content: "+"; color: var(--ink-soft); font-family: var(--sans); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 1.5rem 1.1rem 0; }
.faq p { margin-bottom: 0; font-size: .9rem; line-height: 1.9; }

/* Existing legal routes keep their content and reading layout. */
.legal-main { padding-block: 3rem var(--section-space); }
.legal-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); align-items: end; gap: 3rem; padding-block: 2.5rem 3.5rem; border-bottom: 1px solid var(--hairline); }
.legal-hero h1 { max-width: 13ch; margin: 0; font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
.legal-hero > div + div p { margin-bottom: .5rem; }
.legal-layout { display: grid; grid-template-columns: 12rem minmax(0, 44rem); justify-content: center; gap: 4rem; padding-top: 3.5rem; }
.legal-nav { position: sticky; top: 2rem; align-self: start; display: grid; gap: .65rem; padding-left: 1rem; border-left: 1px solid var(--hairline); }
.legal-nav a { color: var(--ink-soft); font-size: .82rem; }
.legal-article section { margin-bottom: 3rem; scroll-margin-top: 2rem; }
.legal-article h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.legal-article h3 { margin: 1.5rem 0 .6rem; font-size: 1.25rem; }
.legal-article p, .legal-article li { color: var(--ink-soft); }
.legal-article ul, .legal-article ol { padding-left: 1.3rem; }
.legal-article a { color: var(--ink); text-decoration: underline; }
.legal-article .notice { padding: 1rem 1.25rem; border-left: 2px solid var(--accent); color: var(--ink); }

/* Editorial artwork keeps its warm paper palette in either theme. */
@media (prefers-color-scheme: dark) {
  :root { --paper: #14191c; --paper-bright: #1e2427; --ink: #e8ecea; --ink-soft: #9ea7ac; --hairline: #3b4246; --accent: #e3b359; }
}

@media (hover: hover) {
  .store-button:not(.is-pending):hover { transform: translateY(-2px); box-shadow: 0 .4rem 1rem #2021361a; }
  .footer-link-group a:hover, .footer-parent a:hover, .legal-nav a:hover { text-decoration: underline; }
  .support-email:hover, .faq-support:hover { color: var(--ink); text-decoration-color: var(--accent); }
}

@media (max-width: 68rem) {
  .perspectives, .home-faq { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 2rem; }
  .system-family { gap: .75rem; }
  .system-family picture { width: 3.75rem; }
  .system-family span { font-size: .85rem; }
  .support-layout { gap: 3rem; }
}

@media (max-width: 48rem) {
  :root { --shell: calc(100% - 2.5rem); --section-space: 3rem; }
  .site-header { min-height: 4.75rem; gap: 1rem; }
  .brand { gap: .55rem; font-size: 1.15rem; letter-spacing: .02em; }
  .brand-wordmark { width: 7.25rem; }
  .language-picker { padding-inline: .4rem; }
  .language-picker select { min-width: 5.5rem; font-size: .75rem; }
  .language-picker svg { display: none; }
  .perspectives { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.5rem; }
  .section-intro { max-width: 32rem; }
  .section-intro h2 { font-size: clamp(1.85rem, 5.7vw, 2.4rem); }
  .section-intro p { max-width: 30rem; }
  .system-family { gap: .5rem; }
  .system-family li { gap: .5rem; }
  .system-family picture { width: 3.75rem; }
  .system-family span { font-size: .85rem; }
  .editorial-features { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-copy { padding: 1.25rem 0 0; }
  .story-copy h2 { font-size: clamp(2rem, 6.5vw, 2.65rem); }
  .story-copy p { max-width: 34rem; font-size: .95rem; }
  .home-faq { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-intro { padding: 0; }
  .faq-intro h2 { margin-bottom: .5rem; }
  .faq-intro .eyebrow { margin-bottom: .75rem; }
  .privacy-section { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: 2.5rem; }
  .privacy-copy { max-width: 34rem; }
  .closing-action { justify-items: start; }
  .site-footer { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.75rem; }
  .footer-link-groups { max-width: 28rem; gap: 2rem; }
  .footer-bottom { margin-top: 0; }
  .support-main { padding-top: 2rem; }
  .support-hero { padding-bottom: 2.5rem; }
  .support-hero h1 { font-size: 2.85rem; }
  .support-hero p { font-size: 1rem; }
  .support-layout { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
  .support-contact > p { max-width: 32rem; }
  .support-layout h2 { font-size: 1.6rem; }
  .legal-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-layout { display: block; padding-top: 2.5rem; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 2.5rem; padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--hairline); }
}

@media (max-width: 23rem) {
  :root { --shell: calc(100% - 2rem); }
  .brand { font-size: 1rem; gap: .4rem; }
  .brand-wordmark { width: 6.4rem; }
  .brand-local-name { font-size: 1rem; }
}

@media (pointer: coarse) {
  .footer-link-group a, .legal-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .store-button, .legal-nav { display: none !important; }
  .legal-layout { display: block; }
}

/* The released App's paper-and-sky visual system, adapted to web proportions. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(24rem, 32vw, 27rem);
  margin-top: .25rem;
  padding: 2.5rem clamp(2.5rem, 4.2vw, 3.5rem);
  overflow: hidden;
  border-radius: .35rem;
  background: #0e101c;
}
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0e101c78 0%, #0e101c24 40%, transparent 68%);
  pointer-events: none;
  content: "";
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: none; height: 100%; margin: 0; }
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center; }
.hero-copy { width: 56%; max-width: 35rem; padding: 0; }
.hero h1 { margin-bottom: 1.25rem; color: #f8f7f2; font-size: clamp(2.8rem, 4.2vw, 3.65rem); line-height: 1.25; }
.hero-lede { max-width: 27rem; margin-bottom: 1.5rem; color: #d5d6df; font-size: 1rem; line-height: 1.85; text-wrap: balance; }
.hero .store-button { color: #242947; background: #fffefb; border-color: #fffefb; box-shadow: 0 .3rem 1.5rem #0000001f; }
html[lang="en"] .hero h1 { font-size: clamp(2.8rem, 4.2vw, 3.65rem); line-height: 1.15; }
html[lang^="ko"] .hero h1 { font-size: clamp(2.65rem, 3.65vw, 3.25rem); }
.hero-lede, .story-copy > p, .section-intro > p, .privacy-lede, .legal-article { font-family: var(--reading, var(--sans)); }
.language-picker { border-radius: .75rem; background: var(--paper-bright); }
.language-picker select { background: transparent; }

@media (max-width: 52rem) {
  .hero { min-height: 31rem; align-items: flex-start; padding: 2rem; }
  .hero-copy { width: 100%; max-width: none; }
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(2.4rem, 6vw, 3.1rem); margin-bottom: 1rem; line-height: 1.25; }
  html[lang^="ko"] .hero h1 { font-size: clamp(2.1rem, 5.5vw, 2.85rem); }
  .hero-lede { max-width: 24rem; font-size: .95rem; margin-bottom: 1.25rem; }
  .hero::after { background: linear-gradient(180deg, #0e101c61 0%, #0e101c1f 44%, transparent 66%); }
  .hero-art img { object-position: center 60%; }
}
@media (max-width: 40rem) {
  .hero { min-height: 31.5rem; padding: 2rem 1.5rem; }
  .hero h1, html[lang="en"] .hero h1 { font-size: clamp(2.25rem, 7.6vw, 2.85rem); }
  .hero-lede { max-width: 25rem; }
  .system-family picture { width: 3.25rem; }
  .system-family span { font-size: .78rem; }
}
@media (max-width: 23rem) {
  .hero { padding-inline: 1.25rem; }
  .hero h1, html[lang="en"] .hero h1 { font-size: 2.15rem; }
  html[lang^="ko"] .hero h1 { font-size: 2rem; }
}
