:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --white: #fffdf7;
  --ink: #202f27;
  --muted: #526054;
  --green: #244b3c;
  --line: #d9d9ca;
  --soft: #e6eddf;
  --warm: #f7e8d3;
  --red: #9f4435;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: var(--green); text-underline-offset: .19em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #9f4435; outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.14; text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.75rem); }
h2 { font-size: clamp(2rem, 4.25vw, 3.1rem); }
h3 { font-size: 1.12rem; }
.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-170%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.top { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: baseline; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand strong { font: 600 1.55rem Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; white-space: nowrap; }
.brand span { font-size: .66rem; letter-spacing: .15em; font-weight: 800; }
.top nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .25rem 1.15rem; }
.top nav a, .footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.top nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(2.6rem, 6.5vw, 6rem) 3.3rem; }
.hero h1 em { color: var(--green); font-weight: inherit; }
.home-intro h2 { font-size: clamp(2.7rem, 7vw, 5.75rem); }
.home-intro h2 em { color: var(--green); font-weight: inherit; }
.release-banner { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: center; margin-block: clamp(1.2rem, 4vw, 3rem); background: #f2e8d7; border: 1px solid #d9c9af; border-radius: 1rem; overflow: hidden; }
.release-copy { padding: clamp(1.5rem, 4.5vw, 3.6rem); min-width: 0; }
.release-copy :is(h1, h2) { font-size: clamp(2.5rem, 5.3vw, 4.7rem); line-height: 1.04; text-wrap: balance; }
.release-copy :is(h1, h2) span { display: block; color: var(--green); font-size: .62em; margin-bottom: .35em; }
.release-deck { font-size: clamp(1.04rem, 1.8vw, 1.24rem); margin: 1.2rem 0 .8rem; max-width: 34rem; }
.release-credit, .release-member { color: #404c40; font-size: .9rem; margin-bottom: .55rem; }
.release-member strong { color: var(--green); }
.release-art { display: grid; place-items: center; min-height: 100%; padding: 1.4rem; background: #273e34; }
.release-art img { width: min(100%, 300px); border-radius: .2rem; box-shadow: 0 12px 28px #0d1a1577; }
.release-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0 0 .75rem; border-bottom: 1px solid var(--line); }
.release-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .88rem; font-weight: 700; }
.release-section > p:not(.eyebrow) { max-width: 69ch; margin-top: .75rem; }
.release-story-grid, .release-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.release-story-grid section, .release-gallery figure { margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: .65rem; overflow: hidden; }
.release-story-grid section, .release-gallery figcaption { padding: 1rem; }
.release-story-grid p, .release-gallery p { margin: .55rem 0 0; }
.release-gallery img { width: 100%; }
.release-further { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.3rem; }
.release-contents { columns: 2; max-width: 45rem; }
.release-contents li { break-inside: avoid; padding: .12rem 0; }
.release-read { padding: clamp(1rem, 3vw, 2rem); background: var(--soft); border-radius: .7rem; }
@media (max-width: 720px) {
  .release-banner { grid-template-columns: 1fr; }
  .release-art { order: -1; min-height: 0; padding: 1rem; }
  .release-art img { width: min(46vw, 160px); }
  .release-copy :is(h1, h2) { font-size: clamp(2.1rem, 8vw, 3.2rem); }
  .release-story-grid, .release-gallery { grid-template-columns: 1fr; }
  .release-contents { columns: 1; }
}
.hero-deck { max-width: 33rem; font-size: 1.12rem; margin-block: 1.2rem 1.5rem; }
.eyebrow { color: var(--red); font-size: .69rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 0 0 .6rem; }
.kicker::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .55rem; background: var(--red); border-radius: 50%; }
.hero-search label { display: block; font-weight: 740; margin-bottom: .35rem; }
.hero-search > div { display: flex; }
input[type="search"], select { color: var(--ink); background: var(--white); min-width: 0; font: inherit; border: 1px solid #8c998b; border-radius: .45rem; padding: .64rem .75rem; width: 100%; min-height: 46px; }
.hero-search input[type="search"] { border-radius: .45rem 0 0 .45rem; }
button { cursor: pointer; font: inherit; }
.hero-search button { border: 1px solid var(--green); border-radius: 0 .45rem .45rem 0; background: var(--green); color: white; font-weight: 700; padding-inline: .9rem; }
.hero-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .3rem; border: 1px solid transparent; padding: .55rem .85rem; border-radius: .4rem; font-size: .9rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.primary { background: var(--green); color: white; }
.primary:hover, .hero-search button:hover { background: #18392c; color: white; }
.outline { color: var(--green); border-color: #829681; background: transparent; }
.soft { background: var(--soft); color: var(--green); }
.hero-art { padding: clamp(.85rem, 2.2vw, 1.75rem); border-radius: 1.2rem; background: var(--warm); border: 1px solid #ddc7a9; min-width: 0; }
.hero-frame { background: var(--white); padding: .4rem; border: 1px solid #d8c9ad; border-radius: .5rem; box-shadow: 0 14px 34px #59453322; }
.hero-frame img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.hero-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem; margin-top: .85rem; }
.hero-caption .eyebrow { margin: 0; }
.hero-caption strong { font-family: Georgia, serif; line-height: 1.2; }
.shelf { margin-block: clamp(2.6rem, 6.5vw, 5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.2rem; }
.section-head p:not(.eyebrow) { margin: .65rem 0 0; max-width: 44rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 720; flex-shrink: 0; }
.category-grid, .product-grid, .guide-grid, .free-grid { display: grid; gap: .9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: .65rem; text-decoration: none; padding: .8rem; min-height: 84px; }
.category-tile:hover { border-color: var(--green); background: var(--soft); color: var(--ink); }
.category-tile strong, .category-tile small { display: block; }
.category-tile small { color: var(--muted); line-height: 1.35; }
.tile-icon { display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--green); width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
.tile-count { color: var(--green); white-space: nowrap; font-size: .82rem; font-weight: 750; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); overflow: clip; }
.product:target { outline: 3px solid var(--red); outline-offset: 3px; }
.product-art { display: grid; place-items: center; aspect-ratio: 4/3; padding: .8rem; background: #eaece0; overflow: hidden; }
.product-art img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.product.cover .product-art { aspect-ratio: 4/4.15; background: #eee8db; }
.product.cover .product-art img { filter: drop-shadow(0 3px 6px #34372d29); }
.product-copy { display: flex; flex-direction: column; flex: 1; padding: .95rem; gap: .55rem; }
.product-copy > p { margin: 0; }
.product-copy h2, .product-copy h3 { font: 740 1.12rem/1.3 system-ui, sans-serif; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: pretty; }
.product-summary { font-size: .91rem; color: var(--muted); }
.tags, .fine { color: var(--muted); font-size: .81rem; }
.tags { font-weight: 650; }
.offers { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.offer, .subtle { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .45rem .6rem; font-size: .82rem; font-weight: 680; text-decoration: none; line-height: 1.35; }
.offer { border: 1px solid #aab9a6; border-radius: .35rem; color: var(--green); }
.offer:hover { background: var(--soft); color: var(--green); }
.subtle { text-decoration: underline; }
.trial { display: grid; justify-items: start; gap: .35rem; }
.trial small { line-height: 1.35; color: var(--muted); }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.free-strip { padding: clamp(1rem, 3.5vw, 2.5rem); border-radius: .9rem; border: 1px solid #c8d4c0; background: var(--soft); }
.free-strip > div > p:last-child { margin-block: .65rem 1.15rem; }
.free-grid article, .guide-tile { background: var(--white); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; }
.free-grid p, .guide-tile p:not(.eyebrow) { color: var(--muted); margin-block: .65rem; font-size: .91rem; }
.free-strip > .text-link { margin-top: .7rem; }
.site-footer { border-top: 1px solid var(--line); margin-top: 3.5rem; padding-block: 1.6rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .7rem 1.5rem; align-items: start; }
.footer-inner p { margin: .55rem 0 0; }
.footer-inner .fine { grid-column: 1/-1; }
#privacy { grid-column: 1/-1; max-width: 52rem; font-size: .84rem; color: var(--muted); margin-top: .5rem; }
#privacy summary { color: var(--green); font-weight: 700; cursor: pointer; }
.page-head { padding-block: clamp(2.2rem, 5vw, 4.2rem) .75rem; }
.page-head h1, .article-head h1 { font-size: clamp(2.5rem, 6vw, 4.55rem); }
.page-head > p:not(.eyebrow) { margin-block: .75rem 1rem; max-width: 43rem; }
.catalog-body { padding-top: .75rem; }
.filters { border: 1px solid var(--line); background: var(--white); border-radius: .7rem; padding: 1rem; }
.filters label:not(.check) { display: block; font-size: .86rem; font-weight: 720; min-width: 0; }
.filters label input[type="search"], .filters select { display: block; margin-top: .3rem; font-weight: 400; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; }
.filter-actions, .results { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.check { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9rem; }
.check input { width: 1.18rem; height: 1.18rem; accent-color: var(--green); }
#filter-help { margin-block: .6rem 1.05rem; }
.results { margin-block: .6rem; }
.results p { margin: 0; font-weight: 750; }
.empty { background: var(--soft); padding: 1.3rem; margin-block: 1rem; border-radius: .6rem; }
.empty p { margin-top: .7rem; }
.article-head { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding-block: 2.5rem 1.25rem; }
.article-head .eyebrow { margin-top: .75rem; }
.article-head h1 + p { margin-block: 1rem 0; max-width: 36rem; font-size: 1.07rem; }
.article-head figure { margin: 0; background: var(--warm); border-radius: .7rem; padding: .65rem; }
.article-head figure img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; }
.article-head figcaption { color: var(--muted); margin-top: .45rem; font-size: .78rem; }
.prose { width: min(680px, 100% - 3rem); margin: 1.6rem auto; }
.prose section { margin-block: 1.7rem; }
.reading-essay p + p { margin-top: .85rem; }
.reading-essay figure { margin: 1rem 0; }
.reading-essay figcaption { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.puzzle-grid { width: fit-content; padding: .8rem 1.2rem; border-radius: .5rem; background: var(--soft); font-size: 1.15rem; letter-spacing: .12em; }
.puzzle-answer summary { cursor: pointer; color: var(--green); font-weight: 700; }
.puzzle-answer p { margin-top: .5rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.related { background: var(--soft); border-radius: .75rem; padding: 1.1rem 1.3rem; }
.related p:last-child { margin: .7rem 0 0; }
@media (max-width: 920px) {
  .category-grid, .product-grid, .guide-grid, .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-tile small { font-size: .77rem; }
}
@media (max-width: 620px) {
  .wrap, .prose { width: min(100% - 1.4rem, 1160px); }
  .top { flex-wrap: wrap; gap: 0; justify-content: flex-start; }
  .top nav { flex-basis: 100%; gap: .15rem .8rem; }
  .top nav a { font-size: .82rem; }
  .hero, .article-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero { padding-block: 1.8rem 1.15rem; }
  .hero-deck { font-size: 1rem; margin-block: .9rem 1.1rem; }
  .hero-art { max-width: 33rem; }
  .section-head, .footer-inner { display: block; }
  .section-head .text-link { margin-top: .4rem; }
  .free-grid, .guide-grid { grid-template-columns: 1fr; }
  .product-copy { padding: .7rem; }
  .product-grid, .books-grid { gap: .55rem; }
  .product-copy h2, .product-copy h3 { font-size: 1rem; }
  .product-summary { font-size: .84rem; }
  .category-grid { gap: .5rem; }
  .category-tile { grid-template-columns: auto 1fr; gap: .4rem; min-height: 84px; padding: .55rem; }
  .tile-icon { width: 1.65rem; height: 1.65rem; }
  .tile-count { grid-column: 2; }
  .category-tile strong { font-size: .91rem; line-height: 1.25; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner nav { margin-top: .75rem; }
}
@media (max-width: 340px) {
  .product-grid, .books-grid, .category-grid { grid-template-columns: 1fr; }
}

.fantasy-hero {
  --sky: #f5e5d9;
  --hero-ink: #202e48;
  --hero-muted: #683c47;
  --veil: linear-gradient(90deg, #f8ebe2 0%, #f8ebe2f7 23%, #f8ebe2d9 34%, #f8ebe26b 48%, transparent 66%);
  position: relative;
  isolation: isolate;
  min-height: clamp(510px, 48vw, 650px);
  display: grid;
  align-items: center;
  overflow: clip;
  background: var(--sky);
  color: var(--hero-ink);
}
.fantasy-b {
  --sky: #141b38;
  --hero-ink: #fff3df;
  --hero-muted: #ffd899;
  --veil: linear-gradient(90deg, #111830 0%, #111830eb 24%, #111830b8 38%, #11183036 53%, transparent 68%);
}
.fantasy-art, .fantasy-art img, .fantasy-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.fantasy-art { z-index: -2; }
.fantasy-art img { object-fit: cover; object-position: 62% 44%; }
.fantasy-hero::after { z-index: -1; content: ""; background: var(--veil); pointer-events: none; }
.fantasy-inner { padding-block: clamp(2.4rem, 6vw, 5rem); }
.fantasy-copy { max-width: 36rem; }
.fantasy-copy h1 { color: var(--hero-ink); font-size: clamp(3.3rem, 7.1vw, 6rem); line-height: .99; }
.fantasy-copy .eyebrow { color: var(--hero-muted); margin-bottom: 1rem; }
.fantasy-deck { max-width: 31ch; font-size: clamp(1rem, 2vw, 1.28rem); margin: 1.15rem 0 1.3rem; }
.fantasy-copy .hero-search { margin-top: 1.35rem; max-width: 26rem; }
.fantasy-copy .hero-search label { font-size: .86rem; }
.fantasy-copy .primary, .fantasy-copy .hero-search button { background: #243956; border-color: #243956; color: #fff; }
.fantasy-copy .primary:hover, .fantasy-copy .hero-search button:hover { background: #152941; }
.fantasy-copy .outline { color: #253955; border-color: #607184; background: #fff8ef; }
.fantasy-b .outline { color: #fff3df; border-color: #ffd899; background: #202641; }
.fantasy-b .primary, .fantasy-b .hero-search button { background: #ffdc9a; border-color: #ffdc9a; color: #24213a; }
.fantasy-b .primary:hover, .fantasy-b .hero-search button:hover { background: #ffe7b8; }
.fantasy-b :focus-visible { outline-color: #fff0ba; }
.world-entrances { margin-block: 2.4rem 3.6rem; }
.hub-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.hub-tile { position: relative; display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: #263950; border: 1px solid #d6c7c4; border-radius: .7rem; background: var(--white); overflow: clip; }
.hub-tile:hover { color: #263950; border-color: #ad737a; }
.hub-tile:hover h3 { text-decoration: underline; }
.hub-thumb, .journal-thumb { display: grid; place-items: center; aspect-ratio: 5 / 3; overflow: hidden; background: #f2e5df; }
.hub-thumb img, .journal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.hub-tile:first-child .hub-thumb img, .journal-front .journal-tile:first-child img { object-fit: cover; }
.hub-tile-copy { padding: .8rem .8rem 1.65rem; }
.hub-tile-copy h3, .journal-tile h3 { font: 500 1.27rem/1.15 Georgia, serif; }
.hub-tile-copy p:not(.eyebrow) { margin: .45rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.hub-arrow { position: absolute; right: .7rem; bottom: .35rem; font-size: .91rem; }
.feature-heading { margin-bottom: 0; }
.feature-heading + div .release-banner { margin-top: 1.15rem; }
.journal-front { margin-top: 1.3rem; }
.journal-tile { padding: 0; overflow: clip; }
.journal-tile > div:last-child { padding: 1rem; }
.hub-head, .journal-head { padding: clamp(1.1rem, 4vw, 3rem) clamp(.95rem, 3vw, 2.65rem); border: 1px solid #dbcdc5; border-radius: .9rem; background: linear-gradient(135deg, #fbf3eb, #f4e5e0); color: #27374f; }
.hub-head figure, .journal-head figure { background: #eadad4; }
.hub-head .hero-links { margin-top: 1.2rem; }
.hub-reading .guide-grid { margin-top: .9rem; }
.article-products > .product-grid { margin-top: 1rem; }
.hub-note { padding: clamp(1.1rem, 3vw, 2rem); background: #f1e7df; border: 1px solid #dac9c0; border-radius: .75rem; }
.hub-note > p:not(.eyebrow) { max-width: 67ch; margin-block: .6rem .7rem; }
.crumbs { font-size: .82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; list-style: none; padding: .65rem 0; margin: 0; }
.crumbs li { display: inline-flex; min-height: 40px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: .6rem; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fantasy-hero { --veil: linear-gradient(90deg, #f8ebe2 0%, #f8ebe2ed 31%, #f8ebe2aa 53%, transparent 81%); }
  .fantasy-b { --veil: linear-gradient(90deg, #111830 0%, #111830eb 33%, #1118308c 59%, transparent 85%); }
}
@media (max-width: 620px) {
  .fantasy-hero { display: block; min-height: 0; --veil: linear-gradient(180deg, transparent 0 65%, var(--sky) 100%); }
  .fantasy-art, .fantasy-hero::after { height: min(65vw, 290px); }
  .fantasy-art img { object-position: 60% 41%; }
  .fantasy-inner { padding-block: min(55vw, 245px) 1.5rem; }
  .fantasy-copy { position: relative; margin-inline: .45rem; }
  .fantasy-copy h1 { font-size: clamp(2.55rem, 10vw, 3.65rem); }
  .fantasy-copy .eyebrow { margin-bottom: .55rem; }
  .fantasy-deck { margin: .65rem 0 .8rem; }
  .fantasy-copy .hero-search { margin-top: .85rem; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hub-tile-copy { padding-inline: .6rem; }
  .hub-tile-copy h3 { font-size: 1.14rem; }
}
@media (max-width: 320px) {
  .hub-grid { grid-template-columns: 1fr; }
}

.yorimichi-feature { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); align-items:center; gap:1.5rem; }
.yorimichi-feature figure { margin:0; }
.yorimichi-feature figure img { width:100%; border-radius:.5rem; }
.yorimichi-feature figcaption { margin-top:.4rem; color:var(--muted); font-size:.8rem; }
.journal-head img[src="/assets/yorimichi-game-park.webp"] { aspect-ratio:auto; max-height:31rem; }
@media (max-width: 620px) {
  .yorimichi-feature { grid-template-columns:1fr; gap:1rem; }
  .yorimichi-feature figure { max-width:17rem; }
}
