/* Hallmark · macrostructure: Workbench · genre: editorial · theme: Atelier
 * tone: quiet, personal · anchor hue: warm red · nav: N9 · footer: Ft1
 * audience: Japanese fans · purpose: understand Favrel and open App Store
 * enrichment: real app captures · H2: 5/7, negative space · F5: plain, image-led
 * pre-emit critique: P4 H4 E3 S4 R5 V4 · browser QA: desktop and 320px observed;
 * remaining viewport QA interrupted by locked Mac; no full responsive pass claimed.
 */
@import url("/tokens.css");

html, body { overflow-x: clip; }
html { font-family: var(--font-body); line-height: 1.85; scroll-padding-top: var(--space-lg); }
body { background: var(--color-paper); color: var(--color-ink); font-size: var(--text-body); }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
p { margin: 0 0 var(--space-md); }
a { color: var(--color-accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:active, button:active { opacity: 0.7; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 5px; }
button:disabled, [aria-disabled="true"] { color: var(--color-muted); opacity: 0.55; cursor: not-allowed; }
[hidden] { display: none !important; }
h1, h2, h3 { font-style: normal; overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.015em; line-height: 1.65; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-heading); margin: 0 0 var(--space-md); }
h3 { font-size: var(--text-lead); margin: 0 0 var(--space-xs); }
header, main, footer { max-width: none; padding: 0; }
.site-header, .site-footer, .home-main > section, .home-main > nav { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--page-gutter); }
.skip-link { position: fixed; top: var(--space-sm); left: var(--space-sm); z-index: 10; padding: var(--space-xs) var(--space-md); background: var(--color-paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-lg); }
.wordmark { color: var(--color-ink); font-family: var(--font-wordmark); font-weight: 750; font-size: 2rem; letter-spacing: -0.065em; line-height: 1; text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--color-accent); }
.header-link, .text-link, .back-link { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-size: var(--text-small); font-weight: 600; white-space: nowrap; }
.header-link { color: var(--color-ink); text-decoration: none; }
.header-link:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-xl); align-items: center; padding-block: var(--space-xl) var(--space-3xl); }
.hero h1 { margin: var(--space-md) 0 var(--space-lg); line-height: 1.55; }
.hero h1 span { display: block; }
.hero-intro { color: var(--color-muted); font-size: var(--text-small); margin: 0; }
.hero-description { max-width: 30em; line-height: 2; }
.hero-description span { display: block; }
.hero-actions { margin-top: var(--space-lg); }
.download-link, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-md); min-height: 52px; padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border: var(--rule-width) solid var(--color-ink); border-radius: var(--radius-control); font-weight: 600; line-height: 1.4; font-size: var(--text-body); text-decoration: none; white-space: nowrap; }
.download-link:hover, .button:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); text-decoration: none; }
.download-note { color: var(--color-muted); font-size: var(--text-small); margin: var(--space-xs) 0 0; }
.hero-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-md); padding-top: var(--space-md); }
.hero-screens figure:last-child { margin-top: var(--space-3xl); }
.app-capture { width: 100%; border: var(--rule-width) solid var(--color-rule); border-radius: var(--radius-image); box-shadow: 0 12px 32px var(--color-shadow); background: var(--color-image); }
figcaption { margin-top: var(--space-xs); font-size: var(--text-small); color: var(--color-muted); }
.hero-screens figcaption { text-align: center; }
.home-main > .page-index { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); padding-block: var(--space-md); border-top: var(--rule-width) solid var(--color-rule); border-bottom: var(--rule-width) solid var(--color-rule); }
.page-index a { color: var(--color-ink); font-size: var(--text-small); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; gap: var(--space-xs); }
.page-index a:hover { text-decoration: underline; }
.home-main > .tour { padding-block: var(--space-3xl); }
.section-intro { max-width: 46em; margin-bottom: var(--space-xl); }
.section-intro p { color: var(--color-muted); }
.tour-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-lg); border-bottom: var(--rule-width) solid var(--color-rule); margin-bottom: var(--space-xl); }
.tour-tab { border: 0; border-bottom: 2px solid var(--color-paper); padding: var(--space-sm) 0; background: none; color: var(--color-muted); cursor: pointer; white-space: nowrap; min-height: 48px; font-size: var(--text-body); }
.tour-tab:hover { color: var(--color-ink); }
.tour-tab[aria-selected="true"] { border-bottom-color: var(--color-accent); color: var(--color-accent); font-weight: 700; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-2xl); padding: var(--space-lg) 0; }
.tour-visual { background: var(--color-paper-deep); padding: var(--space-lg); display: flex; justify-content: center; }
.tour-visual .app-capture { max-width: 236px; }
.tour-copy { max-width: 29em; }
.tour-copy h3 { font-family: var(--font-display); font-size: var(--text-heading); font-weight: 600; line-height: 1.7; margin-bottom: var(--space-lg); }
.tour-copy p { color: var(--color-muted); line-height: 2; }
.tour-copy ul { padding-left: 1.25em; margin-top: var(--space-lg); }
.tour-copy li { margin-block: var(--space-xs); }
.sample-note { font-size: var(--text-small); color: var(--color-muted); margin-top: var(--space-md); }
.serial-feature { align-items: start; }
.serial-intro h3 { font-family: var(--font-display); font-size: var(--text-heading); font-weight: 600; line-height: 1.7; margin-bottom: var(--space-md); }
.serial-intro p { color: var(--color-muted); line-height: 2; }
.serial-intro .serial-note { font-size: var(--text-small); }
.serial-details { margin: 0; }
.serial-details > div + div { margin-top: var(--space-md); }
.serial-details dt { margin: 0 0 var(--space-3xs); font-weight: 700; }
.serial-details dd { margin: 0; color: var(--color-muted); }
.home-main > .journal { border-top: var(--rule-width) solid var(--color-rule); padding-block: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: var(--space-3xl); }
.journal-copy p { color: var(--color-muted); max-width: 34em; line-height: 2; }
.journal-copy .small-heading { font-family: var(--font-body); font-size: var(--text-body); font-weight: 700; margin: var(--space-xl) 0 var(--space-xs); }
.journal figure { width: min(100%, 264px); justify-self: center; }
.home-main > .privacy-section { background: var(--color-paper-deep); padding-block: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-2xl); }
.privacy-section h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.privacy-section p { max-width: 38em; }
.home-main > .download-section { padding-block: var(--space-3xl); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-xl); }
.download-section h2 { margin-bottom: var(--space-sm); }
.download-section p { color: var(--color-muted); margin: 0; }
.home-main > .about-site { padding-block: var(--space-lg) var(--space-xl); border-top: var(--rule-width) solid var(--color-rule); }
.about-site p { max-width: 66em; color: var(--color-muted); font-size: var(--text-small); }
.site-footer { padding-block: var(--space-xl) var(--space-lg); border-top: var(--rule-width) solid var(--color-rule); margin-top: 0; font-size: var(--text-small); }
.footer-top, .footer-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.site-footer nav { gap: var(--space-md); align-items: center; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--color-ink); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { text-decoration: underline; }
.footer-meta { color: var(--color-muted); margin-top: var(--space-xl); }
.footer-meta p { margin: 0; }
.document-page main { max-width: 824px; padding: var(--space-xl) var(--page-gutter) var(--space-3xl); margin-inline: auto; overflow-wrap: anywhere; }
.document-page h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); margin: var(--space-lg) 0 var(--space-md); }
.document-page h2 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; margin-top: var(--space-xl); }
.document-page .lead { color: var(--color-muted); font-size: var(--text-lead); }
.document-page .card, .document-page .notice { background: var(--color-paper-deep); border: 0; border-radius: 0; padding: var(--space-md); margin-block: var(--space-xl); }
.document-page .card h2:first-child, .document-page .notice h2:first-child { margin-top: 0; }
.document-page ul { padding-left: 1.25em; }
.document-page li { margin-block: var(--space-xs); }
.back-link { color: var(--color-muted); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .hero { gap: var(--space-lg); }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
  .hero-description span { display: inline; }
  .hero-screens { gap: var(--space-sm); }
  .journal, .privacy-section { gap: var(--space-lg); }
  .footer-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .site-header { padding-block: var(--space-md); }
  .wordmark { font-size: 1.75rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-lg) var(--space-xl); gap: var(--space-xl); }
  .hero h1 { font-size: clamp(2.125rem, 7.8vw, 3.25rem); margin-top: var(--space-md); }
  .hero-description span { display: block; }
  .hero-screens { width: min(100%, 480px); justify-self: center; gap: var(--space-md); }
  .hero-screens figure:last-child { margin-top: var(--space-xl); }
  .page-index { gap: var(--space-md) !important; }
  .home-main > .tour, .home-main > .journal { padding-block: var(--space-xl); }
  .tour-tabs { gap: var(--space-sm); margin-bottom: var(--space-lg); }
  .tour-tab { font-size: var(--text-small); }
  .tour-panel { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .tour-copy { grid-row: 1; max-width: none; }
  .tour-copy h3 { margin-bottom: var(--space-sm); }
  .tour-copy ul { margin-top: var(--space-sm); }
  .tour-visual .app-capture { max-width: 228px; }
  .home-main > .journal, .home-main > .privacy-section { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .journal figure { width: min(80%, 264px); }
  .home-main > .download-section { padding-block: var(--space-xl); }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: var(--space-2xs); margin-top: var(--space-lg); }
  .site-footer nav { gap: var(--space-2xs) var(--space-md); }
  .document-page main { padding-top: var(--space-md); }
  .document-page .button { font-size: var(--text-small); padding-inline: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
