:root {
  color-scheme: dark;
  --ink: #171916;
  --panel: #20231e;
  --paper: #f1ebdf;
  --muted: #b5b6aa;
  --line: #5f6458;
  --accent: #f1ac91;
  --red: #b93e2c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 1.2rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(3.25rem, 6.5vw, 6.5rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: 1.14; letter-spacing: -.025em; }
h3 { font-size: 1.8rem; line-height: 1.2; }
em { font-weight: 400; color: var(--accent); }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 27px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; font-size: .88rem; line-height: 1.25; letter-spacing: .03em; }
.brand-mark { display: flex; align-items: center; font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.2em; padding-right: .2em; }
.brand-mark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .87rem; }
.site-header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 20px; background: var(--paper); color: var(--ink); z-index: 20; }
.skip-link:focus { top: 12px; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 7%; align-items: center; padding-block: 70px 88px; }
.hero-copy { min-width: 0; padding-block: 16px; }
.eyebrow { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.lede { font-size: 1.16rem; line-height: 1.75; color: var(--muted); max-width: 39rem; margin: 26px 0; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 52px; padding: 12px 22px; margin-block: 6px 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper); text-decoration: none; font-weight: 500; }
.button:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.button.secondary { color: var(--paper); background: transparent; border-color: var(--line); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.small { font-size: .85rem; line-height: 1.6; }
.muted { color: var(--muted); }
.stage-poster { position: relative; min-width: 0; aspect-ratio: 4 / 5; background: #b94332; overflow: hidden; }
.stage-lines { position: absolute; inset: 0; background: repeating-linear-gradient(90deg,#223e34 0%,#223e34 18%,#141914 18%,#141914 34%,#b94332 34%,#b94332 50%); }
.stage-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(10,16,13,.72),transparent 60%); }
.poster-number, .poster-kanji, .poster-caption { position: absolute; z-index: 1; }
.poster-number { left: 24px; top: 22px; font-size: .6rem; font-weight: 600; letter-spacing: .18em; background: var(--ink); padding: 7px 10px; }
.poster-kanji { top: 20%; right: 10%; writing-mode: vertical-rl; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(4.2rem,7vw,7.5rem); line-height: 1.15; font-weight: 500; text-shadow: 0 2px 18px #19211b; letter-spacing: .07em; }
.poster-caption { left: 26px; bottom: 27px; right: 26px; font: 1.4rem/1.3 var(--serif); }
.section { padding-block: 56px 64px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 36px; }
.app-entry { display: grid; grid-template-columns: 48px 1fr auto; gap: 22px; padding-block: 29px; border-block: 1px solid var(--line); text-decoration: none; }
.entry-index { color: var(--accent); padding-top: 6px; font-size: .8rem; }
.app-entry h3 { margin-bottom: 12px; }
.app-entry p { margin-bottom: 12px; color: var(--muted); }
.entry-arrow { font-size: 1.8rem; align-self: center; }
.app-entry:hover { background: var(--panel); }
.about-section { max-width: 1160px; }
.about-section h2 { margin-bottom: 25px; }
.about-section p:not(.eyebrow) { max-width: 650px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 8%; }
.features article { border-top: 1px solid var(--line); padding-top: 27px; }
.features .eyebrow { margin-bottom: 15px; }
.features h3 { margin-bottom: 17px; }
.features p { color: var(--muted); }
.release-note { display: flex; align-items: center; gap: 10px; margin-block: 30px 8px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 12px; }
.practical { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.help-strip { display: flex; gap: 32px; justify-content: space-between; align-items: center; }
.help-strip h2 { font-size: 2.25rem; }
.help-strip .button { flex-shrink: 0; }
.reading { max-width: 760px; padding-block: 36px 85px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.page-heading { padding-block: 40px 22px; }
.page-heading h1 { font-size: clamp(2.8rem,5.8vw,4.8rem); }
.updated { font-size: .8rem; color: var(--muted); }
.prose h2 { font-size: 1.8rem; line-height: 1.25; margin: 42px 0 18px; }
.prose p { color: var(--muted); }
.prose a { color: var(--paper); }
.prose li { margin-bottom: 10px; }
.contact-panel { border-block: 1px solid var(--line); padding: 30px 0 20px; }
.contact-panel h2 { font-size: 1.6rem; margin-bottom: 16px; }
.email-link { display: inline-block; font-size: clamp(1rem,3vw,1.45rem); line-height: 1.5; margin-bottom: 22px; color: var(--accent); overflow-wrap: anywhere; }
.contact-panel p { color: var(--muted); }
.contact-link { overflow-wrap: anywhere; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 0; }
.faq summary { cursor: pointer; min-height: 52px; padding: 18px 4px; line-height: 1.5; }
.faq details p { margin: 0 4px 22px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 38px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.footer-brand { font: 1.45rem var(--serif); margin-bottom: 12px; }
.site-footer p, .site-footer a { font-size: .84rem; }
.site-footer .footer-brand { font-size: 1.45rem; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; }
.error-page { padding-block: 90px 130px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 6%; padding-block: 48px 64px; }
  .hero h1 { font-size: clamp(2.8rem,7vw,4.4rem); }
  .poster-number { left: 14px; top: 15px; font-size: .5rem; padding-inline: 7px; }
  .poster-caption { font-size: 1.1rem; left: 18px; right: 18px; bottom: 20px; }
  .poster-kanji { font-size: 4rem; top: 19%; }
  .help-strip { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 18px; gap: 16px; flex-wrap: wrap; }
  .brand { gap: 10px; font-size: .76rem; }
  .brand-mark { font-size: 1.5rem; }
  .site-header nav { gap: 15px; }
  .site-header nav a { font-size: .8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 37px 48px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(3.3rem,12vw,5rem); }
  .lede { margin-block: 22px; font-size: 1.06rem; }
  .stage-poster { aspect-ratio: 5 / 4; }
  .poster-kanji { writing-mode: horizontal-tb; font-size: clamp(3.4rem,17vw,5rem); right: 9%; top: 25%; }
  .poster-number { left: 20px; top: 19px; font-size: .58rem; }
  .poster-caption { bottom: 23px; left: 22px; font-size: 1.18rem; }
  .section { padding-block: 40px 44px; }
  .features, .practical { grid-template-columns: 1fr; gap: 24px; }
  .app-entry { gap: 13px; grid-template-columns: max-content minmax(0, 1fr) max-content; }
  .app-entry h3 { font-size: 1.7rem; }
  .reading { padding-top: 23px; padding-bottom: 55px; }
  .page-heading { padding-top: 30px; }
  .prose h2 { margin-top: 32px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer nav a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .skip-link, .back-link, .stage-poster { display: none; }
  .wrap { width: 100%; }
  .reading { max-width: none; padding: 0; }
  .prose p, .prose a, .lede, .muted, .updated, .eyebrow { color: black; }
  h2 { break-after: avoid; }
}
