/* NEKOCAT: self-contained, responsive editorial design. */
:root {
  color-scheme: light;
  --paper: #f7f5ec;
  --surface: #fffcf5;
  --ink: #272923;
  --muted: #64675d;
  --line: #dedfd3;
  --accent: #bc482b;
  --orange: #ee8a61;
  --soft: #eeeee4;
  --footer: #eeeee4;
  --button-bg: #282c25;
  --button-text: #fffdf6;
  --shadow: 0 14px 32px #2729230c;
  --radius: 24px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #20231e;
  --surface: #292d26;
  --ink: #f1f0e6;
  --muted: #b8bdaf;
  --line: #414738;
  --accent: #ffa885;
  --orange: #ee8a61;
  --soft: #30372c;
  --footer: #191c17;
  --button-bg: #ee8a61;
  --button-text: #262620;
  --shadow: 0 14px 32px #0002;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
::selection { background: #efb892; color: #272923; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; font-weight: 760; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.4vw, 76px); margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 22px; }
h3 { font-size: 24px; margin-bottom: 13px; }
p { margin-bottom: 18px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section { margin-top: 96px; margin-bottom: 96px; }
.icon { width: 23px; height: 23px; flex-shrink: 0; vertical-align: middle; }
.pixel-art { image-rendering: pixelated; }
.eyebrow { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; letter-spacing: .11em; line-height: 1.7; font-weight: 550; margin-bottom: 18px; display: block; }
.accent-word { color: var(--accent); }
.tiny-star { font-size: 20px; color: var(--accent); vertical-align: -2px; margin-right: 6px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 20px; background: var(--ink); color: var(--paper); transform: translateY(-150%); border-radius: 5px; }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 30px; font-weight: 800; letter-spacing: -.06em; line-height: 1; white-space: nowrap; }
.brand-icon { background: var(--orange); color: #282c25; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; transform: rotate(-5deg); }
.brand-icon .icon { width: 26px; height: 26px; }
.brand-light { font-weight: 400; }
.brand-dot { color: var(--accent); }
.main-nav { display: flex; gap: 25px; margin: 0 auto; align-items: center; }
.main-nav a { position: relative; font-size: 13px; padding: 31px 0; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { font-weight: 650; }
.main-nav a[aria-current="page"]:after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 19px; }
.header-note { font-size: 11px; white-space: nowrap; color: var(--muted); }
.header-note i { display: inline-block; width: 6px; height: 6px; background: #61904d; border-radius: 50%; margin-right: 6px; }
.icon-button { display: inline-grid; place-items: center; padding: 0; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; }
.icon-button:hover { background: var(--soft); }
.theme-toggle { width: 37px; height: 37px; }
.theme-toggle .icon { width: 18px; height: 18px; }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.menu-toggle { display: none; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { border: 1px solid transparent; border-radius: 8px; min-height: 50px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; line-height: 1.5; font-weight: 600; transition: transform .18s, background .18s; }
.button .icon { width: 19px; height: 19px; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--button-bg); color: var(--button-text); }
.primary:hover { opacity: .9; }
.secondary { border-color: var(--line); background: transparent; }
.secondary:hover { background: var(--soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.text-link .icon { width: 18px; height: 18px; }
.text-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.13fr 1fr; gap: 66px; align-items: center; padding-block: 64px 68px; }
.hero h1 { font-size: clamp(54px, 6.5vw, 92px); line-height: 1.03; margin: 23px 0 28px; letter-spacing: -.065em; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 445px; line-height: 1.8; margin-bottom: 29px; }
.hero-footnote { display: flex; align-items: center; gap: 17px; margin-top: 38px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.hero-footnote strong { font-weight: 500; color: var(--ink); }
.mini-faces { display: flex; padding-left: 7px; }
.mini-faces img { width: 34px; height: 34px; margin-left: -7px; border: 3px solid var(--paper); border-radius: 50%; background: #e8dcc9; }
.hero-art { position: relative; height: 520px; border-radius: 32px; background: #eceacb; border: 1px solid #dedcbe; color: #32362a; }
.hero-art-top { position: absolute; top: 24px; left: 27px; right: 27px; display: flex; justify-content: space-between; font: 9px/1.4 Consolas, monospace; letter-spacing: .1em; }
.hero-neco { position: absolute; width: 245px; height: auto; left: 50%; bottom: 85px; transform: translateX(-45%); filter: drop-shadow(12px 13px 0px #4145270e); }
.orbit { position: absolute; border: 1px solid #88876425; border-radius: 50%; top: 86px; left: 15%; width: 74%; height: 67%; transform: rotate(-27deg); }
.orbit-two { width: 60%; height: 72%; top: 75px; left: 22%; transform: rotate(30deg); }
.orbit-one { background: #f9f7e54f; }
.hero-spark { position: absolute; color: #bf5738; }
.spark-one { top: 73px; left: 49px; font-size: 64px; transform: rotate(-8deg); }
.spark-two { top: 212px; right: 31px; font-size: 45px; }
.speech { position: absolute; z-index: 1; top: 69px; right: -17px; padding: 13px 20px; font-size: 12px; line-height: 1.4; border: 1px solid #cbc8b7; border-radius: 13px 13px 13px 2px; background: #fffcf5; transform: rotate(7deg); box-shadow: 3px 4px 0 #32362a0c; }
.speech strong { font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.art-side-note { position: absolute; left: 25px; top: 212px; font: 9px/1.3 Consolas, monospace; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.art-caption { position: absolute; bottom: 39px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; }
.art-caption strong { display: block; font-size: 33px; letter-spacing: -.05em; line-height: 1.25; }
.art-caption span { font-size: 11px; color: #64664f; }
.round-link { display: inline-grid; place-items: center; width: 47px; height: 47px; border: 1px solid #898969; border-radius: 50%; }
.round-link:hover { background: #f8f7e5; }
.pixel-note { position: absolute; bottom: 13px; right: 28px; font: 8px/1.4 Consolas, monospace; color: #62664f; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 15px 0; background: var(--soft); }
.ticker > div { display: flex; gap: 38px; width: max-content; min-width: 100%; justify-content: center; align-items: center; color: var(--accent); font-size: 22px; line-height: 1; }
.ticker span { color: var(--ink); font: 11px/1.6 Consolas, monospace; letter-spacing: .15em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; }
.section-heading p { font-size: 13px; color: var(--muted); margin: 0 0 2px; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.editorial-card { display: flex; flex-direction: column; border: 1px solid #303a2519; border-radius: 20px; overflow: hidden; color: #272e24; transition: transform .2s, box-shadow .2s; }
.editorial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cream, .butter { background: #eeebcc; color: #30362c; }
.sage { background: #dce6d4; color: #30362c; }
.lilac { background: #e4dfea; color: #30362c; }
.pink { background: #f3dce0; color: #30362c; }
.peach { background: #f2dfc8; color: #30362c; }
.blue { background: #dce8ed; color: #30362c; }
.card-meta { padding: 22px 25px 0; display: flex; align-items: center; justify-content: space-between; font: 10px/1.5 Consolas, monospace; letter-spacing: .1em; }
.card-meta .icon { width: 19px; height: 19px; }
.card-art { height: 223px; position: relative; display: grid; place-items: center; }
.card-art img { width: 160px; height: 160px; object-fit: contain; z-index: 1; transition: transform .2s; }
.card-art img.pixel-art { height: 184px; width: auto; }
.editorial-card:hover .card-art img { transform: rotate(-4deg); }
.card-decoration { position: absolute; font-size: 85px; top: 14px; left: 20px; color: #222c2712; letter-spacing: -.09em; font-weight: 800; transform: rotate(-14deg); }
.small-word { top: 63px; font-size: 93px; letter-spacing: -.06em; }
.card-text { padding: 26px 25px 23px; background: var(--surface); color: var(--ink); flex: 1; border-top: 1px solid #303a2519; }
.card-text h3 { font-size: 23px; }
.card-text p { color: var(--muted); font-size: 13px; line-height: 1.75; min-height: 48px; }
.read-link { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; margin-top: 26px; }
.read-link .icon { width: 17px; height: 17px; }
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 84px; }
.type-poster { height: 372px; background: #e7e4d5; border-radius: 24px; position: relative; padding: 30px; overflow: hidden; color: #34382c; }
.type-poster > .eyebrow { font-size: 9px; position: relative; z-index: 1; }
.neko-type { position: absolute; top: 44px; left: 37px; font-size: 148px; font-weight: 800; letter-spacing: -.085em; line-height: 1; max-width: 340px; }
.type-cat { position: absolute; width: 110px; height: 110px; top: 82px; left: 212px; transform: rotate(13deg); }
.neko-type { width: 210px; overflow-wrap: anywhere; }
.poster-note { position: absolute; bottom: 26px; left: 30px; right: 30px; font: 9px/1.6 Consolas, monospace; letter-spacing: .035em; }
.teaser-copy p { color: var(--muted); font-size: 14px; max-width: 450px; }
.teaser-copy .text-link { margin-top: 8px; }
.mood-section { border-top: 1px solid var(--line); padding-top: 65px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.mood-section > div > p { font-size: 14px; color: var(--muted); }
.mood-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: grid; grid-template-columns: 105px 1fr; gap: 20px 24px; align-items: center; }
.mood-copy h3 { font-size: 24px; }
.mood-copy p { color: var(--muted); font-size: 13px; margin: 0; }
.mood-copy .eyebrow { margin-bottom: 10px; font-size: 9px; }
.mood-card .button { grid-column: 2; justify-self: start; font-size: 11px; min-height: 40px; padding: 9px 13px; }
.site-footer { background: var(--footer); border-top: 1px solid var(--line); margin-top: 70px; }
.footer-top { padding: 54px 0 38px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }
.footer-top .brand { font-size: 30px; }
.footer-top > div > p { font-size: 13px; color: var(--muted); margin-top: 20px; }
.footer-nav { display: flex; flex-direction: column; align-items: start; gap: 7px; font-size: 12px; }
.footer-nav .eyebrow, .footer-message .eyebrow { font-size: 9px; margin-bottom: 8px; }
.footer-nav a:hover { color: var(--accent); }
.footer-message > p { font-size: 19px !important; color: var(--ink) !important; margin-top: 12px !important; letter-spacing: -.025em; line-height: 1.4; }
.footer-message .text-link { font-size: 11px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.footer-bottom a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-legal { padding-bottom: 22px; font-size: 9px; color: var(--muted); }
.breadcrumbs { margin-top: 30px; margin-bottom: 48px; font-size: 11px; color: var(--muted); display: flex; gap: 13px; }
.breadcrumbs a:hover { color: var(--accent); }
.page-heading { max-width: 830px; padding-block: 12px 26px; }
.page-heading .lead { color: var(--muted); font-size: 17px; max-width: 690px; line-height: 1.8; margin-bottom: 0; }
.section-number { border: 1px solid var(--line); border-radius: 50%; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 11px; letter-spacing: 0; }
.profile-hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 64px; }
.profile-portrait { height: 376px; border-radius: 25px; background: #ebe8cc; color: #30362c; position: relative; padding: 24px; }
.profile-portrait > .eyebrow { font-size: 9px; }
.profile-portrait > img { height: 274px; width: auto; position: absolute; left: 50%; transform: translateX(-50%); top: 66px; }
.portrait-sticker { position: absolute; right: -15px; top: 52px; width: 96px; height: 96px; display: flex; flex-direction: column; justify-content: center; text-align: center; border-radius: 50%; font-size: 24px; font-weight: 750; background: #ec9b75; border: 1px dashed #6e432d; transform: rotate(13deg); line-height: 1; }
.portrait-sticker small { font-size: 11px; margin-top: 6px; font-weight: 500; }
.portrait-note { position: absolute; bottom: 16px; left: 24px; font: 9px/1.5 Consolas, monospace; }
.fact-strip { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); margin-top: 45px; padding-block: 26px; gap: 20px; }
.fact-strip span { display: block; font: 9px/1.5 Consolas, monospace; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.fact-strip strong { font-size: 15px; font-weight: 600; }
.reading-layout { display: grid; grid-template-columns: 240px minmax(0, 730px); gap: 90px; }
.article-nav { position: sticky; top: 28px; align-self: start; padding-top: 5px; display: flex; flex-direction: column; align-items: start; }
.article-nav > a { font-size: 13px; color: var(--muted); padding: 9px 0; }
.article-nav > a:hover { color: var(--accent); }
.margin-note { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.margin-note strong { font-weight: 500; color: var(--ink); }
.prose { font-size: 16px; line-height: 1.85; }
.prose h2 { font-size: clamp(27px,3vw,37px); line-height: 1.2; margin-bottom: 25px; }
.prose h3 { font-size: 22px; line-height: 1.3; }
.prose p { color: var(--muted); margin-bottom: 23px; }
.prose section + section { margin-top: 64px; }
.prose a:not(.button):not(.citation-link) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { color: var(--accent); }
.citation-link { font-size: 11px; color: var(--accent); font-weight: 600; vertical-align: super; }
blockquote { border-left: 3px solid var(--orange); padding: 24px 28px; background: var(--soft); margin-block: 32px; font-size: 26px; line-height: 1.4; letter-spacing: -.025em; border-radius: 0 15px 15px 0; }
blockquote cite { display: block; margin-top: 15px; color: var(--muted); font-size: 10px; letter-spacing: 0; font-style: normal; }
.numbered-note { display: grid; grid-template-columns: 42px 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.numbered-note > span { font: 12px/1.8 Consolas, monospace; color: var(--accent); }
.date-callout { display: flex; align-items: start; gap: 35px; padding: 30px; background: var(--soft); border-radius: 18px; margin-bottom: 27px; }
.date-callout > strong { font-size: 38px; letter-spacing: -.05em; line-height: 1; font-weight: 650; }
.date-callout > strong span { display: block; font: 14px/1.8 Consolas, monospace; letter-spacing: .25em; margin-top: 8px; }
.date-callout p { font-size: 14px; margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; font-size: 15px; font-weight: 600; line-height: 1.55; padding: 20px 0; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details > p { font-size: 14px; margin: 0 20px 24px 0; color: var(--muted); line-height: 1.8; }
.source-note { font-size: 11px; background: var(--soft); padding: 25px; border-radius: 14px; margin-top: 42px; line-height: 1.8; }
.source-note strong { display: block; margin-bottom: 10px; }
.source-note > a { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.source-note > a .icon { width: 14px; height: 14px; }
.source-note p { margin: 12px 0 0; }
.next-card { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-block: 70px; }
.next-card h2 { font-size: 30px; margin-bottom: 12px; }
.next-card .eyebrow { font-size: 10px; margin-bottom: 12px; }
.next-card p { margin: 0; font-size: 14px; color: var(--muted); }
.next-card .button { flex-shrink: 0; }
.culture-banner { height: 360px; margin-top: 30px; display: flex; justify-content: space-between; align-items: center; padding: 45px 55px; border: 1px solid #d3deca; border-radius: 24px; background: #dce6d4; color: #30362c; overflow: hidden; position: relative; }
.culture-banner .eyebrow { font-size: 10px; }
.culture-banner strong { display: block; font-size: 132px; line-height: 1; letter-spacing: -.085em; }
.culture-banner strong span { color: #b75333; }
.dictionary-line { font: 12px/1.5 Consolas, monospace; margin-top: 18px; }
.culture-cats { width: 440px; height: 280px; position: relative; }
.culture-face { width: 126px; position: absolute; top: 12px; left: 15px; transform: rotate(-13deg); }
.culture-walk { width: 230px; position: absolute; bottom: -10px; right: 0; transform: rotate(6deg); }
.floating-note { position: absolute; top: 12px; right: 0; background: #f9f5de; border: 1px solid #a9b7a2; padding: 12px 18px; border-radius: 10px; font-size: 11px; transform: rotate(5deg); }
.quiet-note { display: flex; align-items: start; gap: 20px; background: var(--soft); padding: 25px; border-radius: 14px; }
.quiet-note > span { color: var(--accent); font-size: 38px; line-height: 1; }
.quiet-note p { margin: 0; font-size: 14px; }
.compare-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.compare-grid > div { padding: 29px; border: 1px solid var(--line); border-radius: 18px; }
.compare-grid h3 { font-size: 26px; }
.compare-grid p { color: var(--muted); font-size: 13px; margin: 0; }
.gallery-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; margin-top: 23px; padding-block: 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; align-items: center; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 30px; padding: 9px 17px; font-size: 12px; line-height: 1.5; min-height: 42px; background: transparent; }
.filter span { color: var(--muted); font-size: 10px; }
.filter .icon { width: 15px; height: 15px; }
.filter.active { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
.filter.active span { color: inherit; opacity: .8; }
.filter:hover:not(.active) { background: var(--soft); }
.gallery-count { color: var(--muted); font: 10px/1.5 Consolas, monospace; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 26px; }
.gallery-card { min-width: 0; }
.gallery-image { position: relative; aspect-ratio: 1.14; border-radius: 19px; border: 1px solid #28352714; }
.gallery-open { display: grid; place-items: center; width: 100%; height: 100%; }
.gallery-open > img { width: 57%; height: 69%; object-fit: contain; transition: transform .2s; }
.gallery-open:hover > img { transform: scale(1.045) rotate(-3deg); }
.gallery-open > img.pixel-art { width: 66%; height: 78%; }
.gallery-zoom { position: absolute; bottom: 15px; right: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fffcf575; border: 1px solid #40453224; }
.gallery-zoom .icon { width: 17px; height: 17px; }
.favorite-button { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; border: 1px solid #30382a22; background: #fffcf5; color: #39402f; width: 40px; height: 40px; border-radius: 50%; }
.favorite-button .icon { width: 18px; height: 18px; }
.favorite-button[aria-pressed="true"] { color: #b83c3c; background: #fff1f1; }
.favorite-button[aria-pressed="true"] .icon { fill: #b83c3c; }
.favorite-button:hover { transform: scale(1.08); }
.gallery-card figcaption { padding: 19px 3px 0; }
.gallery-card figcaption .eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 8px; }
.gallery-card h2 { font-size: 22px; margin-bottom: 11px; text-wrap: initial; }
.gallery-card p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 9px; }
.small-source { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.small-source:hover { text-decoration: underline; color: var(--accent); }
.small-source .icon { width: 12px; height: 12px; }
.gallery-bottom-note { border-top: 1px solid var(--line); margin-top: 46px; padding-block: 27px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.gallery-bottom-note a { text-decoration: underline; text-underline-offset: 3px; }
.gallery-bottom-note p { margin: 0; }
.empty-state { padding: 58px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; }
.empty-state > .icon { width: 45px; height: 45px; color: var(--accent); margin-bottom: 24px; }
.empty-state h2 { font-size: 26px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 500px; margin: 0 auto 25px; }
.lightbox { border: 1px solid var(--line); border-radius: 23px; padding: 25px; background: var(--paper); color: var(--ink); width: min(780px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.lightbox::backdrop { background: #10170bd4; backdrop-filter: blur(6px); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.lightbox-top .eyebrow { margin: 0; color: var(--muted); }
.lightbox-image { height: min(48vh, 400px); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.lightbox-image img { max-width: calc(100% - 110px); width: 350px; height: 85%; object-fit: contain; }
.lightbox-image .icon-button { flex-shrink: 0; }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-caption { padding: 22px 5px 0; border-top: 1px solid var(--line); }
.lightbox-caption h2 { font-size: 29px; margin-bottom: 14px; }
.lightbox-caption > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.lightbox-credit { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
.lightbox-credit a { display: flex; align-items: center; gap: 8px; text-decoration: underline; flex-shrink: 0; }
.lightbox-credit .icon { width: 13px; height: 13px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 30px); max-width: calc(100% - 32px); border-radius: 12px; background: var(--ink); color: var(--paper); padding: 13px 23px; text-align: center; font-size: 12px; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transition: opacity .2s, transform .2s; z-index: 99; }
.toast.is-visible { transform: translate(-50%,0); opacity: 1; }
.about-hero { display: grid; grid-template-columns: 1.8fr 1fr; gap: 70px; align-items: center; }
.about-stamp { border: 1px dashed #765239; background: #f0b894; border-radius: 50%; color: #38362a; width: 270px; height: 270px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(8deg); }
.about-stamp .icon { width: 92px; height: 92px; stroke-width: .9; }
.about-stamp strong { font-size: 24px; line-height: 1.25; letter-spacing: -.045em; margin-top: 14px; }
.about-stamp span { font: 10px/1.5 Consolas, monospace; margin-top: 10px; letter-spacing: .16em; }
.about-intro { display: grid; grid-template-columns: 240px minmax(0,730px); gap: 90px; padding-top: 40px; border-top: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.values-grid article { padding: 29px; border: 1px solid var(--line); border-radius: 18px; }
.values-grid article > span { font: 12px/1.8 Consolas, monospace; color: var(--accent); display: block; margin-bottom: 25px; }
.values-grid h3 { font-size: 23px; }
.values-grid p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.credits-card { display: grid; grid-template-columns: 185px 1fr; gap: 33px; border: 1px solid var(--line); padding: 26px; border-radius: 20px; margin-top: 22px; align-items: center; }
.credits-preview { height: 190px; display: grid; place-items: center; border-radius: 12px; }
.credits-preview img { width: 105px; height: 142px; object-fit: contain; }
.credits-preview img:not(.pixel-art) { width: 110px; height: 110px; }
.credits-card h3 { font-size: 24px; }
.credits-card p { font-size: 13px; color: var(--muted); margin-bottom: 11px; }
.credits-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; overflow-wrap: anywhere; }
.credits-card .icon { width: 14px; height: 14px; }
.sources-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 32px; }
.sources-grid > a { padding: 20px; background: var(--soft); border-radius: 12px; display: flex; flex-direction: column; font-size: 12px; }
.sources-grid > a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.sources-grid .icon { width: 16px; height: 16px; margin-bottom: 17px; }
.sources-grid strong { margin-bottom: 8px; font-weight: 650; }
.sources-grid span { font-size: 11px; color: var(--muted); }
.privacy-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.privacy-section .button { margin: 0 0 25px; font-size: 12px; }
@media (min-width: 1600px) { .hero { padding-block: 80px; } }
@media (max-width: 1190px) {
  .header-note { display: none; }
  .header-inner { gap: 22px; }
  .main-nav { gap: 24px; }
  .hero { gap: 40px; }
  .hero-art { height: 490px; }
  .hero-neco { width: 220px; }
  .hero-copy .eyebrow { font-size: 9px; }
  .hero-footnote { margin-top: 26px; }
  .hero .button-row { gap: 18px; }
  .hero .button { font-size: 12px; padding-inline: 17px; }
  .hero-lead { font-size: 15px; }
  .reading-layout, .about-intro { grid-template-columns: 190px minmax(0,1fr); gap: 55px; }
  .about-teaser { gap: 50px; }
  .profile-hero { gap: 45px; }
  .type-cat { left: 183px; width: 100px; }
  .culture-cats { width: 340px; }
  .culture-face { width: 110px; left: 0; }
  .culture-walk { width: 208px; }
  .culture-banner strong { font-size: 116px; }
  .mood-section { gap: 40px; }
  .mood-card { grid-template-columns: 80px 1fr; gap: 18px; padding: 25px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 17px; }
  .brand { font-size: 26px; }
  .main-nav { gap: 17px; }
  .main-nav a { font-size: 12px; }
  .brand-icon { width: 34px; height: 34px; }
  .hero { gap: 28px; padding-block: 48px; }
  .hero h1 { font-size: 59px; }
  .hero-art { height: 468px; }
  .hero-art-top { font-size: 8px; left: 20px; right: 20px; }
  .hero-neco { width: 205px; }
  .speech { top: 73px; right: -9px; padding: 10px 14px; font-size: 10px; }
  .spark-one { left: 32px; font-size: 47px; }
  .spark-two { right: 12px; font-size: 32px; }
  .hero .button-row { align-items: start; flex-direction: column; gap: 18px; }
  .hero-footnote { margin-top: 22px; }
  .hero-lead { margin-bottom: 22px; }
  .card-text { padding: 20px; }
  .card-text h3 { font-size: 21px; }
  .card-text p { font-size: 12px; }
  .card-meta { padding: 19px 19px 0; font-size: 8px; }
  .editorial-grid { gap: 16px; }
  .card-art { height: 186px; }
  .card-art img { width: 134px; height: 134px; }
  .card-art img.pixel-art { height: 160px; }
  .card-decoration { font-size: 60px; }
  .small-word { font-size: 68px; }
  .read-link { font-size: 10px; gap: 10px; }
  .type-poster { height: 348px; padding: 24px; }
  .neko-type { font-size: 133px; left: 25px; top: 55px; width: 190px; }
  .type-cat { left: 140px; top: 85px; width: 90px; }
  .type-poster > .eyebrow { font-size: 8px; }
  .poster-note { font-size: 8px; left: 25px; right: 25px; }
  .mood-section { grid-template-columns: .8fr 1.2fr; gap: 28px; }
  .mood-card { grid-template-columns: 60px 1fr; padding: 22px; }
  .mood-copy h3 { font-size: 21px; }
  .footer-top { gap: 26px; }
  .profile-hero h1 { font-size: 53px; }
  .profile-hero { gap: 34px; }
  .profile-portrait { height: 330px; }
  .profile-portrait > img { height: 230px; }
  .profile-portrait > .eyebrow { font-size: 8px; }
  .portrait-sticker { width: 76px; height: 76px; right: -9px; font-size: 21px; }
  .portrait-sticker small { font-size: 9px; }
  .reading-layout, .about-intro { grid-template-columns: 160px minmax(0,1fr); gap: 35px; }
  .article-nav > .eyebrow { font-size: 9px; }
  .article-nav > a { font-size: 12px; }
  .prose { font-size: 15px; }
  .about-hero { gap: 30px; }
  .about-stamp { width: 220px; height: 220px; }
  .about-stamp .icon { width: 70px; height: 70px; }
  .about-stamp strong { font-size: 20px; }
  .about-hero h1 { font-size: 54px; }
  .culture-banner { height: 320px; padding: 30px; }
  .culture-banner strong { font-size: 100px; }
  .culture-cats { width: 290px; height: 245px; }
  .culture-walk { width: 184px; }
  .culture-face { width: 95px; }
  .floating-note { font-size: 9px; }
  .gallery-grid { gap: 30px 19px; }
  .gallery-card h2 { font-size: 20px; }
  .gallery-card p { font-size: 11px; }
  .next-card { padding: 28px; }
  .next-card h2 { font-size: 26px; }
  .next-card .button { max-width: 220px; }
  .compare-grid, .values-grid { gap: 18px; }
  .compare-grid > div, .values-grid article { padding: 22px; }
  .compare-grid p, .values-grid p { font-size: 12px; }
  .credits-card { grid-template-columns: 135px 1fr; gap: 25px; padding: 23px; }
  .credits-preview { height: 160px; }
  .privacy-section { gap: 35px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .section { margin-block: 60px; }
  h1 { font-size: 45px; }
  h2 { font-size: 33px; }
  .header-inner { min-height: 75px; flex-wrap: wrap; padding-block: 17px; gap: 0; }
  .header-inner > .brand { margin-right: auto; }
  .header-tools { order: 2; margin-left: 9px; }
  .theme-toggle { width: 38px; height: 38px; }
  .menu-toggle { display: inline-grid; order: 3; margin-left: 9px; width: 38px; height: 38px; }
  .main-nav { order: 4; flex-basis: 100%; width: 100%; display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
  .main-nav a { padding: 12px 0; font-size: 13px; }
  .main-nav a[aria-current="page"]:after { bottom: 5px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 37px 42px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .hero h1 { font-size: clamp(51px, 11vw, 76px); line-height: 1.04; margin: 16px 0 23px; }
  .hero-lead { max-width: 480px; font-size: 15px; margin-bottom: 25px; }
  .hero .button-row { flex-direction: row; align-items: center; gap: 22px; }
  .hero .button { font-size: 12px; }
  .hero-footnote { font-size: 10px; margin-top: 25px; }
  .hero-art { height: 460px; max-width: 510px; width: 100%; margin-inline: auto; border-radius: 25px; }
  .hero-neco { width: 218px; bottom: 78px; }
  .hero-art-top { left: 24px; right: 24px; top: 23px; font-size: 9px; }
  .speech { right: 13px; top: 73px; font-size: 11px; }
  .speech strong { font-size: 20px; }
  .spark-one { font-size: 52px; top: 72px; left: 36px; }
  .spark-two { top: 210px; right: 23px; }
  .art-side-note { left: 24px; top: 207px; }
  .art-caption { bottom: 31px; left: 25px; right: 25px; }
  .pixel-note { bottom: 9px; font-size: 7px; }
  .art-caption strong { font-size: 29px; }
  .art-caption span { font-size: 10px; }
  .ticker { padding-block: 14px; }
  .ticker > div { gap: 28px; }
  .ticker span { font-size: 9px; }
  .section-heading { gap: 20px; margin-bottom: 26px; }
  .section-heading .eyebrow { font-size: 9px; margin-bottom: 13px; }
  .section-heading > p { font-size: 11px; }
  .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .editorial-card { border-radius: 20px; }
  .card-meta { font-size: 10px; padding: 20px 23px 0; }
  .card-art { height: 205px; }
  .card-art img { width: 160px; height: 160px; }
  .card-art img.pixel-art { height: 183px; }
  .card-decoration { top: 16px; left: 45px; font-size: 74px; }
  .small-word { top: 44px; font-size: 92px; }
  .card-text { padding: 25px; }
  .card-text h3 { font-size: 26px; }
  .card-text p { font-size: 14px; min-height: 0; }
  .read-link { font-size: 11px; margin-top: 22px; }
  .about-teaser { grid-template-columns: 1fr; gap: 34px; }
  .type-poster { height: 325px; }
  .neko-type { font-size: 128px; left: 29px; top: 47px; width: 180px; }
  .type-cat { left: 200px; width: 95px; top: 85px; }
  .teaser-copy h2 br { display: none; }
  .teaser-copy p { max-width: none; }
  .mood-section { grid-template-columns: 1fr; gap: 23px; padding-top: 45px; }
  .mood-section h2 br { display: none; }
  .mood-section > div > p br { display: none; }
  .mood-card { grid-template-columns: 73px 1fr; gap: 15px 22px; padding: 25px; }
  .mood-copy h3 { font-size: 24px; }
  .mood-copy p { font-size: 13px; }
  .site-footer { margin-top: 45px; }
  .footer-top { padding-top: 35px; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-top > div:first-child p { margin-bottom: 0; }
  .footer-top .brand { font-size: 30px; }
  .footer-message > p { font-size: 17px !important; }
  .footer-nav .eyebrow, .footer-message .eyebrow { font-size: 8px; }
  .footer-message .text-link { font-size: 10px; }
  .footer-bottom { font-size: 9px; gap: 16px; }
  .footer-bottom > span { flex-basis: 100%; }
  .footer-legal { font-size: 8px; }
  .breadcrumbs { margin-top: 23px; margin-bottom: 27px; font-size: 10px; }
  .page-heading { padding-bottom: 22px; }
  .page-heading .eyebrow { font-size: 10px; }
  .page-heading .lead { font-size: 15px; }
  .profile-hero { grid-template-columns: 1fr; gap: 12px; }
  .profile-hero h1 { font-size: clamp(43px,8.8vw,58px); }
  .profile-portrait { height: 350px; padding: 25px; }
  .profile-portrait > img { height: 248px; top: 59px; }
  .profile-portrait > .eyebrow { font-size: 9px; }
  .portrait-sticker { width: 89px; height: 89px; right: 17px; top: 68px; }
  .portrait-note { left: 25px; bottom: 17px; }
  .fact-strip { grid-template-columns: 1fr 1fr; padding-block: 22px; gap: 24px 15px; margin-top: 32px; }
  .fact-strip strong { font-size: 13px; }
  .fact-strip span { font-size: 8px; }
  .reading-layout { display: block; }
  .article-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 7px 21px; border-bottom: 1px solid var(--line); padding-bottom: 21px; margin-bottom: 35px; }
  .article-nav > .eyebrow { flex-basis: 100%; margin-bottom: 3px; }
  .article-nav > a { padding: 4px 0; font-size: 12px; }
  .margin-note { display: none; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 29px; }
  .prose section + section { margin-top: 45px; }
  .prose .eyebrow { font-size: 9px; margin-bottom: 16px; }
  blockquote { padding: 22px; font-size: 24px; }
  blockquote cite { font-size: 9px; }
  .numbered-note { grid-template-columns: 27px 1fr; gap: 15px; }
  .numbered-note h3 { font-size: 21px; }
  .date-callout { padding: 23px; gap: 24px; flex-direction: column; }
  .date-callout > strong { font-size: 35px; }
  .date-callout > strong span { display: inline; font-size: 15px; margin-left: 16px; }
  .date-callout p { font-size: 14px; }
  .next-card { display: block; padding: 27px; margin-block: 50px; }
  .next-card h2 { font-size: 29px; }
  .next-card .button { margin-top: 24px; max-width: none; }
  .culture-banner { height: 448px; margin-top: 10px; padding: 27px; align-items: start; }
  .culture-banner strong { font-size: 94px; }
  .culture-banner .eyebrow { font-size: 9px; }
  .dictionary-line { font-size: 11px; margin-top: 9px; }
  .culture-cats { position: absolute; width: 86%; height: 203px; left: 7%; bottom: 15px; }
  .culture-face { width: 85px; top: 27px; left: 1px; }
  .culture-walk { width: 165px; right: 8px; bottom: 1px; }
  .floating-note { top: -18px; right: 0; padding: 10px 14px; font-size: 9px; }
  .quiet-note { padding: 20px; gap: 16px; }
  .compare-grid { grid-template-columns: 1fr; gap: 16px; }
  .compare-grid > div { padding: 25px; }
  .compare-grid p { font-size: 14px; }
  .gallery-toolbar { margin-top: 5px; padding-top: 15px; margin-bottom: 25px; gap: 14px; }
  .filter-list { gap: 7px; }
  .filter { font-size: 11px; padding: 9px 13px; gap: 8px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 30px 17px; }
  .gallery-image { aspect-ratio: .93; border-radius: 15px; }
  .favorite-button { width: 33px; height: 33px; right: 10px; top: 10px; }
  .favorite-button .icon { width: 16px; height: 16px; }
  .gallery-zoom { width: 25px; height: 25px; right: 10px; bottom: 10px; }
  .gallery-zoom .icon { width: 14px; height: 14px; }
  .gallery-card figcaption { padding-top: 15px; }
  .gallery-card h2 { font-size: 20px; }
  .gallery-card p { font-size: 11px; }
  .gallery-card figcaption .eyebrow { font-size: 7px; letter-spacing: .07em; }
  .small-source { font-size: 8px; }
  .gallery-bottom-note { font-size: 11px; }
  .about-hero { display: block; }
  .about-hero h1 { font-size: clamp(42px,8.7vw,59px); }
  .about-stamp { width: 230px; height: 230px; margin: 12px auto 42px; }
  .about-stamp .icon { width: 85px; height: 85px; }
  .about-stamp strong { font-size: 23px; }
  .about-intro { display: block; padding-top: 28px; }
  .about-intro > .eyebrow { margin-bottom: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { padding: 26px; }
  .values-grid article > span { margin-bottom: 16px; }
  .values-grid p { font-size: 14px; }
  .credits-card { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .credits-preview { height: 170px; }
  .credits-preview img { height: 142px; width: auto; }
  .credits-card h3 { font-size: 24px; }
  .credits-card p { font-size: 13px; }
  .sources-grid { grid-template-columns: 1fr; gap: 14px; }
  .sources-grid > a { padding: 24px; }
  .sources-grid .icon { margin-bottom: 12px; }
  .privacy-section { grid-template-columns: 1fr; gap: 16px; }
  summary { font-size: 14px; }
  .lightbox { padding: 18px; border-radius: 18px; }
  .lightbox-image { height: min(42vh,320px); gap: 9px; }
  .lightbox-image img { max-width: calc(100% - 88px); }
  .lightbox-image .icon-button { width: 34px; height: 34px; }
  .lightbox-image .icon { width: 19px; height: 19px; }
  .lightbox-caption h2 { font-size: 26px; }
  .lightbox-caption p { font-size: 12px; }
  .lightbox-credit { flex-direction: column; gap: 12px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 48px; }
  .hero-copy .eyebrow { font-size: 8px; }
  .hero .button-row { gap: 15px; }
  .hero .button { padding-inline: 16px; }
  .hero-art { height: 435px; }
  .hero-neco { width: 204px; }
  .hero-art-top { font-size: 7px; }
  .speech { top: 65px; right: 9px; font-size: 10px; }
  .spark-one { left: 23px; font-size: 42px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p br { display: none; }
  .neko-type { left: 20px; font-size: 123px; }
  .type-cat { left: 164px; width: 84px; }
  .mood-card { padding: 23px; grid-template-columns: 55px 1fr; gap: 17px; }
  .mood-copy h3 { font-size: 21px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-image { aspect-ratio: 1.1; }
  .gallery-card h2 { font-size: 25px; }
  .gallery-card p { font-size: 13px; }
  .gallery-card figcaption .eyebrow { font-size: 9px; }
  .favorite-button { width: 40px; height: 40px; right: 14px; top: 14px; }
  .small-source { font-size: 10px; }
  .culture-walk { width: 146px; right: 1px; }
  .culture-face { width: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --paper: white; --surface: white; --ink: black; --muted: #333; }
  .site-header, .site-footer, .article-nav, .next-card, .header-tools, .toast, .filter-list, .favorite-button { display: none !important; }
  .container { width: 100%; }
  .reading-layout { display: block; }
  .section { margin-block: 30px; }
  .prose { font-size: 11pt; }
  .prose a { text-decoration: underline; }
  h1 { font-size: 32pt !important; }
  h2 { font-size: 22pt !important; }
  img { max-height: 300px; object-fit: contain; }
  .credits-card, .gallery-card { break-inside: avoid; }
}
/* Compact source cards on the project page. */
.sources-grid > div { padding: 25px; background: var(--soft); border-radius: 13px; }
.sources-grid > div .eyebrow { font-size: 8px; margin-bottom: 13px; }
.sources-grid > div h3 { font-size: 23px; }
.sources-grid > div p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.sources-grid > div a { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.sources-grid > div a .icon { margin: 0; width: 14px; height: 14px; }
.dictionary-line { display: block; }
/* Keep the portrait clear of its caption at all sizes. */
.hero-neco { bottom: 104px; }
@media (max-width: 720px) { .hero-neco { bottom: 98px; } }
@media (max-width: 370px) { .hero-art { overflow: clip; } }
