:root {
  color-scheme: light;
  --paper: #fff8eb;
  --surface: #fffdf6;
  --ink: #261a33;
  --muted: #615466;
  --line: #e7d8c5;
  --red: #aa2d42;
  --pink: #ffe3df;
  --teal: #126759;
  --mint: #d9f0e8;
  --yellow: #ffde7a;
  --round: 1.15rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.8; font-size: 1.0625rem; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .65rem; line-height: 1.27; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.055em; font-weight: 850; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .9rem; }
p:last-child { margin-bottom: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.reading { width: min(100% - var(--gutter) * 2, 49rem); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -10rem; z-index: 20; background: white; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 4.3rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .58rem; font-size: 1rem; font-weight: 850; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 2.15rem; height: 2.15rem; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.55rem, 2vw, 1.45rem); }
.nav a { padding: .4rem .15rem; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 750; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); color: var(--ink); width: 2.75rem; height: 2.75rem; place-items: center; cursor: pointer; }
.nav-toggle svg { width: 1.35rem; height: 1.35rem; }
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.home-hero { background: radial-gradient(ellipse at 90% 0, #ffead0 10%, transparent 55%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.2rem, 4vw, 3.5rem); }
.hero .cover { width: 100%; border-radius: var(--round); box-shadow: 0 10px 32px #261a331a; }
.hero h1 { margin-bottom: .85rem; }
.home-hero h1 { font-size: clamp(2.35rem, 5.9vw, 5.1rem); }
.home-hero h1 span { display: block; font-size: .55em; color: var(--red); line-height: 1.22; margin-top: .22em; letter-spacing: -.035em; }
.eyebrow { color: var(--red); font-size: .74rem; font-weight: 850; letter-spacing: .18em; margin-bottom: .65rem; }
.intro { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 36em; }
.breadcrumb { padding-block: .65rem; font-size: .84rem; color: var(--muted); }
.breadcrumb a { margin-right: .3rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .48rem .9rem; background: var(--teal); border: 1px solid var(--teal); border-radius: .65rem; color: white; font-weight: 760; text-decoration: none; }
.button:hover { background: #0c5146; color: white; }
.button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); }
.stat-line { display: flex; flex-wrap: wrap; gap: .42rem 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.stat-line b { color: var(--ink); }
.stack > * + * { margin-top: clamp(1.8rem, 4vw, 3.5rem); }
.stack { padding-block: 1.55rem 3.5rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; height: 100%; padding: clamp(.9rem, 2vw, 1.35rem); border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 8px 22px #261a3313; }
.card:nth-child(3n+1) .tag { background: var(--yellow); }
.card:nth-child(3n+2) .tag { background: var(--mint); }
.card:nth-child(3n+3) .tag { background: var(--pink); }
.card strong { font-size: 1.15rem; line-height: 1.45; }
.card .summary { color: var(--muted); font-size: .95rem; }
.card .arrow { margin-top: auto; font-weight: 850; color: var(--teal); }
.tag { background: var(--mint); border-radius: 1rem; color: var(--ink); display: inline-block; padding: .08rem .6rem; font-size: .75rem; font-weight: 800; }
.game { border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); padding: clamp(1rem, 3vw, 1.65rem); }
.game + .game { margin-top: 1rem; }
.game h3 { font-size: clamp(1.25rem, 2.8vw, 1.55rem); }
.game:target { border-color: var(--teal); box-shadow: 0 0 0 2px #12675944; }
[id] { scroll-margin-top: 5.8rem; }
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); padding: .85rem 1rem; }
.toc summary, .movie summary { cursor: pointer; color: var(--teal); font-weight: 780; padding-block: .2rem; }
.toc-list { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.4rem; padding-left: 1.45rem; margin: .55rem 0 .15rem; font-size: .96rem; }
.movie { margin-top: 1rem; padding: .35rem .75rem; background: var(--mint); border-radius: .65rem; }
.movie video { margin-block: .55rem .2rem; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #17121b; border-radius: .45rem; }
.movie p { font-size: .9rem; }
.site-footer { padding-block: 2rem; background: #261a33; color: #fff7e8; font-size: .9rem; }
.site-footer a { color: #fff0b8; }
.site-footer .brand { color: #fff7e8; margin-bottom: .5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .85rem 2rem; }
.site-footer p { max-width: 48rem; }
.links { margin: .5rem 0 0; padding-left: 1.3rem; }
.ad { min-width: 0; margin-block: 1.25rem; max-width: 100%; }
.ad ins { display: block; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }
.search { margin: 1rem 0; }
.search label { display: block; font-weight: 750; }
.search input { display: block; width: 100%; padding: .64rem .8rem; border: 1px solid var(--line); border-radius: .65rem; font: inherit; color: var(--ink); background: var(--surface); }
.search p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index-list li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; border-bottom: 1px solid var(--line); padding: .5rem .1rem; }
.index-list a { font-weight: 700; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare th, .compare td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.compare thead { background: var(--mint); }
.feature-art { margin: 0; }
.feature-art img { border: 1px solid var(--line); border-radius: .8rem; }
.feature-art figcaption { font-size: .86rem; color: var(--muted); margin-top: .35rem; }
@keyframes float-in { from { opacity: 0; transform: translateY(.65rem); } to { opacity: 1; transform: translateY(0); } }
.hero .hero-copy, .hero .cover { animation: float-in .6s ease both; }
.hero .cover { animation-delay: .09s; }
[data-animate].entered { animation: float-in .55s ease both; }
@media (max-width: 51rem) {
  .header-inner { flex-wrap: wrap; }
  .js .nav-toggle { display: grid; }
  .nav { width: 100%; padding-bottom: .65rem; }
  .js .nav:not(.open) { display: none; }
  .nav a { padding: .3rem .55rem .3rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 34rem) {
  .cards, .toc-list { grid-template-columns: 1fr; }
  .header-inner { min-height: 3.75rem; }
  .stat-line { margin-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
