/* Digital garden — editorial layout, lightweight motion, original imagery. */
:root {
    --paper: #f7f7f0;
    --paper-soft: #eeeee4;
    --surface: #fffef8;
    --ink: #263c35;
    --ink-soft: #64736b;
    --ink-faint: #68756c;
    --accent: #4e6c46;
    --accent-soft: #e7ecdf;
    --amber: #a28142;
    --line: #dfe3d7;
    --line-strong: #c5cebf;
    --content-width: 1180px;
    --radius-card: 18px;
    --shadow-card: none;
    --shadow-card-hover: 0 14px 28px #172b241a;
    --page-padding: clamp(24px, 5vw, 80px);
}
html.theme-dark {
    --paper: #111d1b;
    --paper-soft: #172522;
    --surface: #1b2c27;
    --ink: #e7eade;
    --ink-soft: #afbcaf;
    --ink-faint: #93a494;
    --accent: #bed09d;
    --accent-soft: #283b2d;
    --amber: #d8bc7e;
    --line: #2c3e36;
    --line-strong: #42584b;
    --shadow-card-hover: 0 14px 28px #0003;
}
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { box-shadow: 0 6px 25px #16282009; }
.header-inner { max-width: 1340px; margin: auto; }
.nav-link { min-height: 44px; }
.theme-toggle { width: 40px; height: 40px; background: var(--accent-soft); }
.material-symbols-rounded { display: inline-flex; align-items: center; justify-content: center; }
.material-symbols-rounded svg { width: 1em; height: 1em; flex-shrink: 0; }
.brand img, .masthead-brand img { mix-blend-mode: multiply; }
html.theme-dark .masthead-brand img { background: #fff; border-radius: 50%; mix-blend-mode: normal; }
.hero {
    display: grid; grid-template-columns: 1fr 1.05fr; column-gap: 7%;
    min-height: 100svh; max-width: 1440px; margin: auto;
    padding: 0 var(--page-padding); overflow: visible;
}
.hero-masthead { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; height: 100px; }
.masthead-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 27px; font-weight: 650; text-decoration: none; letter-spacing: -.7px; }
.brand-dot, .footer-signoff > a span { color: var(--accent); }
.masthead-note { margin-left: auto; color: var(--ink-faint); letter-spacing: .14em; font-size: 9px; }
.hero-copy { position: relative; top: auto; left: auto; align-self: center; width: auto; transform: none; padding: 32px 0 44px; }
.hero-kicker { font-size: 30px; margin-bottom: 24px; letter-spacing: .1em; color: var(--amber); }
.hero h1 { font-size: clamp(52px, 5.5vw, 80px); line-height: 1.32; font-weight: 500; letter-spacing: -.02em; max-width: none; text-wrap: initial; }
.hero h1 > span { display: block; white-space: nowrap; }
.title-accent { color: var(--accent); }
.title-period { margin-left: -.14em; }
.hero-note { margin: 24px 0 0; font-size: 14px; line-height: 1.95; letter-spacing: .03em; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.primary-action { display: inline-flex; gap: 32px; align-items: center; padding: 15px 22px; color: var(--paper); background: var(--ink); font-size: 13px; border-radius: 8px; text-decoration: none; transition: background .2s, transform .2s; }
.primary-action span { font-size: 21px; line-height: 1; }
.primary-action:hover { background: var(--accent); transform: translateY(-2px); }
.text-action { padding: 12px 0; color: var(--ink-soft); background: none; font-size: 13px; cursor: pointer; }
.text-action span { margin-left: 8px; }
.text-action:hover { color: var(--accent); }
.hero-footnote { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; color: var(--ink-faint); font-size: 11px; letter-spacing: .05em; }
.hero-footnote > span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-art {
    position: relative; align-self: stretch; top: auto; right: auto; width: 100%;
    height: auto; min-height: 480px; max-height: 620px; margin: 20px 0 26px;
    border-radius: 180px 20px 20px 20px; transform: none;
    mask-image: none; -webkit-mask-image: none; animation: none;
    background: #6a765f;
}
.hero-art::after { inset: 0; height: auto; z-index: 1; background: linear-gradient(180deg, #14271a12 40%, #10251fbc 100%); }
.hero-image { object-position: 65% center; }
.scene-label { position: absolute; z-index: 2; top: 28px; right: 24px; color: #fff; font-size: 9px; line-height: 1.7; letter-spacing: .14em; text-align: right; text-shadow: 0 1px 6px #0008; }
.scene-label span { display: block; opacity: .8; font-size: 8px; }
.hero-poem { left: 30px; right: 30px; bottom: 32px; max-width: none; text-align: left; }
.hero-poem::before { content: "一隅 · 一刻"; display: block; margin-bottom: 16px; font-size: 10px; letter-spacing: .25em; opacity: .8; }
.hero-poem span { font-size: 18px; font-weight: 500; line-height: 1.8; }
.hero-poem small { font-size: 10px; line-height: 1.7; margin-top: 8px; }
.hero-bottom { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; height: 76px; color: var(--ink-faint); font-size: 10px; letter-spacing: .12em; }
.hero-bottom i { margin: 0 12px; font-style: normal; color: var(--line-strong); }
.explore-link { position: static; flex-direction: row; gap: 18px; font-size: 10px; }
.explore-link > span:last-child { font-size: 20px; }
.directory-section { min-height: 70vh; padding-top: 90px; padding-bottom: 76px; }
.directory-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.directory-label { color: var(--accent); font-size: 10px; letter-spacing: .16em; margin-bottom: 18px; }
.directory-label > span { color: var(--ink-faint); margin-left: 15px; }
.directory-intro h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.5; }
.directory-intro h2 > span { color: var(--accent); }
.directory-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.collection-count { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink-soft); }
.collection-count strong { font-size: 42px; font-weight: 400; letter-spacing: -.07em; color: var(--accent); }
.collection-count span { font-size: 11px; writing-mode: vertical-rl; letter-spacing: .14em; }
.directory-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.category-filters button { padding: 11px 15px; border-radius: 7px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 12px; min-height: 42px; transition: background .18s, color .18s; }
.category-filters button:hover { background: var(--accent-soft); color: var(--ink); }
.category-filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.category-filters button span { margin-left: 5px; opacity: .65; font-size: 10px; }
.site-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; width: 234px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-faint); background: var(--surface); flex-shrink: 0; }
.site-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; outline: none; }
.site-search input::placeholder { color: var(--ink-faint); }
.site-search svg { flex-shrink: 0; }
.site-search kbd { font-size: 11px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; }
.cards-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.nav-card { grid-column: span 2; opacity: 1; transform: none; border: 0; transition: transform .22s ease, box-shadow .22s ease; }
.nav-card.is-featured { grid-column: span 3; }
.card-media { height: 244px; aspect-ratio: auto; }
.is-featured .card-media { height: 306px; }
.card-media::after { background: linear-gradient(180deg, #0b171733 0%, #0b171708 25%, #0b171745 48%, #0b1717e6 100%); }
.card-image { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-badge { left: 20px; right: auto; top: 20px; background: #0e211ebf; color: #fff; border-color: #ffffff36; padding: 5px 9px; font-size: 10px; font-weight: 400; }
.card-arrow { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ffffff70; border-radius: 50%; background: #0e211e80; font-size: 17px; transition: background .2s; }
.card-copy { left: 22px; right: 22px; bottom: 23px; }
.card-copy h3 { font-size: 22px; font-weight: 500; line-height: 1.35; }
.is-featured h3 { font-size: 29px; font-family: "Noto Serif SC", "Songti SC", serif; }
.card-copy p { margin-top: 8px; font-size: 12px; opacity: .86; white-space: normal; overflow: visible; }
.card-domain { display: block; margin-top: 18px; color: #ffffffb3; font-size: 9px; letter-spacing: .08em; }
.nav-card:hover, .nav-card:focus-visible { transform: translateY(-4px); }
.nav-card:hover .card-arrow { background: #ffffff35; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 20px; border-radius: 16px; background: var(--paper-soft); }
.empty-state h3 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.empty-state p { color: var(--ink-soft); font-size: 13px; }
.empty-state button { padding: 12px 20px; border-radius: 7px; background: var(--ink); color: var(--paper); cursor: pointer; margin-top: 10px; }
.garden-note { margin-top: 50px; display: flex; align-items: center; gap: 22px; padding: 28px 30px; background: var(--accent-soft); border-radius: 12px; }
.garden-symbol { font-size: 36px; color: var(--accent); }
.garden-note p { margin: 0 0 7px; font-size: 15px; }
.garden-note div > span { color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.garden-note button { margin-left: auto; flex-shrink: 0; padding: 12px 0 12px 20px; background: none; color: var(--ink); font-size: 12px; cursor: pointer; }
.garden-note button > span { margin-left: 16px; }
.is-page-view .garden-note { display: none; }
.content-view { animation: none; }
.section-heading h2 { font-weight: 500; }
.site-footer { padding: 0 var(--page-padding) 20px; background: var(--paper); border-top: 0; }
.footer-signoff { max-width: var(--content-width); margin: auto; display: flex; align-items: center; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.footer-signoff > a:first-child { text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.05em; }
.footer-signoff p { color: var(--ink-faint); font-size: 10px; line-height: 1.8; }
.footer-signoff p > span { display: block; }
.footer-top { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 18px; }
.footer-inner { max-width: var(--content-width); padding: 0; font-size: 10px; min-height: 32px; color: var(--ink-faint); }
@media (max-width: 1040px) {
    .hero { column-gap: 5%; }
    .hero h1 { font-size: 58px; }
    .hero-art { min-height: 490px; border-top-left-radius: 120px; }
    .hero-actions { gap: 16px; }
    .primary-action { padding: 14px 17px; gap: 18px; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-card, .nav-card.is-featured { grid-column: span 1; }
    .card-media, .is-featured .card-media { height: 260px; }
    .directory-tools { flex-wrap: wrap; }
    .site-search { width: 220px; }
}
@media (max-width: 720px) {
    :root { --page-padding: 22px; }
    .hero { grid-template-columns: 1fr; }
    .hero-masthead { height: 78px; gap: 12px; }
    .masthead-brand { font-size: 24px; }
    .masthead-note { font-size: 7px; max-width: 140px; line-height: 1.6; letter-spacing: .09em; text-align: right; }
    .hero-theme { flex-shrink: 0; width: 36px; height: 36px; }
    .hero-copy { width: 100%; padding: 24px 0 32px; left: auto; top: auto; }
    .hero-kicker { font-size: 26px; margin-bottom: 18px; }
    .hero h1 { font-size: clamp(42px, 9vw, 62px); line-height: 1.3; max-width: none; }
    .hero h1 > span { display: inline; }
    .hero h1 > span:first-child::after { content: ""; display: block; }
    .hero-note { font-size: 13px; margin-top: 20px; max-width: none; }
    .hero-actions { margin-top: 22px; gap: 24px; }
    .hero-footnote { margin-top: 20px; }
    .hero-art { min-height: 0; height: 340px; max-height: none; width: 100%; transform: none; margin: 0; border-radius: 90px 16px 16px 16px; }
    .hero-image { object-position: center 56%; }
    .hero-poem { display: block; left: 24px; right: 24px; bottom: 24px; }
    .hero-poem span { font-size: 16px; }
    .hero-poem small { display: block; font-size: 9px; }
    .hero-poem::before { margin-bottom: 10px; }
    .scene-label { right: 20px; top: 20px; }
    .hero-bottom { height: 70px; font-size: 9px; letter-spacing: .06em; }
    .hero-bottom i { margin: 0 7px; }
    .explore-link { align-items: center; font-size: 9px; gap: 8px; }
    .directory-section { padding-top: 54px; padding-bottom: 44px; }
    .directory-intro { gap: 12px; margin-bottom: 24px; }
    .directory-intro h2 { font-size: 25px; }
    .directory-label { font-size: 9px; margin-bottom: 14px; }
    .directory-note { font-size: 12px; max-width: none; text-wrap: pretty; }
    .collection-count { display: none; }
    .directory-tools { gap: 16px; }
    .category-filters { gap: 3px; width: 100%; }
    .category-filters button { padding: 10px 12px; font-size: 11px; flex: 1; white-space: nowrap; }
    .category-filters button span { display: none; }
    .site-search { width: 100%; min-height: 44px; }
    .site-search kbd { display: none; }
    .cards-grid { grid-template-columns: 1fr; gap: 18px; }
    .card-media, .is-featured .card-media { height: 240px; }
    .is-featured h3 { font-size: 25px; }
    .card-copy { bottom: 22px; }
    .garden-note { margin-top: 30px; padding: 22px; gap: 12px 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr); }
    .garden-symbol { font-size: 28px; }
    .garden-note div { flex: 1; }
    .garden-note p { font-size: 13px; line-height: 1.6; }
    .garden-note button { padding: 8px 0; margin: 0; grid-column: 2; justify-self: start; }
    .footer-signoff { gap: 18px; padding: 24px 0 18px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding: 8px 0; }
    .theme-toggle:not(.hero-theme) { width: 32px; height: 32px; }
}
@media (max-width: 360px) {
    :root { --page-padding: 18px; }
    .masthead-note { display: none; }
    .hero-theme { margin-left: auto; }
    .hero h1 { font-size: 42px; }
    .category-filters button { padding: 10px 7px; }
    .hero-actions { gap: 16px; }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
    .nav-card:hover, .nav-card:focus-visible { transform: none; }
    .nav-card:hover .card-image { transform: none; }
}
