/* SPDX-License-Identifier: GPL-2.0-or-later
 * horo theme shell, 2026: header, light-novel cover, journal feed, wheat-field
 * footer, floating controls and dialogs. Original styling.
 */

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 68px; padding: 0 24px; transition: background .3s, box-shadow .3s; }
.is-scrolled .site-header, .inner-page .site-header, .home:not(:has(.home-cover)) .site-header { background: var(--h-glass); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); box-shadow: 0 1px 0 var(--h-line); }
.header-bar { max-width: 1240px; height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.nav-identity { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 14px 4px 4px; border-radius: 999px; color: var(--h-ink); transition: background .3s, box-shadow .3s; }
.nav-identity:hover { color: var(--h-ink); }
.nav-identity img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--h-paper), 0 0 0 3.5px var(--h-wheat); }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The home page greets in the dialogue box instead of naming the site. */
.home .brand-name, .home .footer-brand { display: none; }
.home .nav-identity { padding: 4px; }
.nav-drawer { margin-left: auto; }
.nav-pill { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; transition: background .3s, box-shadow .3s; }
/* Over the cover art the brand and menu float as two glass chips. */
.home:has(.home-cover):not(.is-scrolled) :is(.nav-identity, .nav-pill) { background: var(--h-glass); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); box-shadow: var(--h-lift); }
.mobile-menu-toggle, .mobile-feed-link, .mobile-search { display: none !important; }

.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; font: 500 15px/1.5 var(--h-sans); }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item > a { position: relative; display: flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; color: var(--h-ink); transition: background .2s, color .2s; }
.menu-item > a .icon { font-size: 15px; opacity: .75; }
/* Wolf ears: the highlighted pill grows a pair of ears in its own colour. */
nav > .menu > .menu-item > a::before, nav > .menu > .menu-item > a::after { content: ""; position: absolute; top: -7px; width: 13px; height: 13px; background: var(--ear, transparent); clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateY(7px) scale(.4); opacity: 0; transition: transform .28s var(--h-ease), opacity .2s; pointer-events: none; }
nav > .menu > .menu-item > a::before { left: 9px; rotate: -16deg; }
nav > .menu > .menu-item > a::after { right: 9px; rotate: 16deg; }
nav > .menu > .menu-item > a:is(:hover, :focus-visible, [aria-current=page])::before, nav > .menu > .menu-item > a:is(:hover, :focus-visible, [aria-current=page])::after { transform: none; opacity: 1; }
.menu-item > a:hover { background: var(--h-wheat); color: #2a1a10; --ear: var(--h-wheat); }
.menu-item > a[aria-current=page] { background: var(--h-apple); color: var(--h-on-apple); --ear: var(--h-apple); }
.menu-item > a[aria-current=page] .icon { opacity: 1; }
.nav-branch > summary { display: grid; place-items: center; width: 20px; height: 32px; margin-left: -12px; font-size: 11px; color: var(--h-ink-2); border-radius: 6px; }
.nav-branch[open] > summary { color: var(--h-apple); }
.nav-branch[open] > summary .icon { rotate: 180deg; }
.nav-branch > .menu { position: absolute; top: calc(100% + 10px); left: -6px; min-width: 188px; padding: 8px; flex-direction: column; align-items: stretch; gap: 2px; border-radius: 16px; background: var(--h-paper); box-shadow: var(--h-float), 0 0 0 1px var(--h-line); z-index: 5; }
.nav-branch > .menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-branch > .menu .menu-item > a { width: 100%; border-radius: 10px; padding: 9px 12px; font-size: 14.5px; }
.nav-branch > .menu .menu-item > a:hover { background: var(--h-wheat-soft); color: var(--h-ink); }
.nav-tools { display: flex; align-items: center; gap: 2px; padding-left: 6px; margin-left: 4px; border-left: 1.5px dotted var(--h-line-strong); }
.nav-tools:has(> [hidden]:only-child), .nav-tools:empty { display: none; }
.nav-tools .icon-button { width: 36px; height: 36px; font-size: 17px; }

/* ---------- Home cover: Holo says hello ---------- */
.home-cover { --hero-card: rgb(255 250 247 / .9); --hero-rim: #fff; position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--h-night); isolation: isolate; }
html[data-appearance=dark] .home-cover { --hero-card: rgb(29 34 56 / .88); --hero-rim: rgb(255 255 255 / .14); }
.cover-picture, .cover-picture img, .cover-tint { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-picture img { object-fit: cover; object-position: center 30%; filter: brightness(var(--h-dim)); }
.cover-tint { pointer-events: none; background: linear-gradient(180deg, rgb(20 24 41 / .28), transparent 18%, transparent 58%, rgb(60 20 40 / .35)); }
/* A soft cloud edge where the cover meets the page. */
.home-cover::after { content: ""; position: absolute; z-index: 2; inset: auto 0 -1px; height: 22px; background: radial-gradient(circle at 50% 100%, var(--h-bg) 20px, transparent 20.5px) 50% 100% / 40px 22px repeat-x; pointer-events: none; }
.focusinfo { position: absolute; z-index: 3; left: 50%; bottom: clamp(44px, 8vh, 84px); width: min(860px, calc(100% - 64px)); transform: translateX(-50%); display: flex; align-items: flex-end; }
.hero-avatar { position: relative; z-index: 3; flex: 0 0 auto; margin: 0 -44px 20px 0; border-radius: 50%; }
.hero-avatar img { display: block; width: 136px; height: 136px; border-radius: 50%; object-fit: cover; background: #fff; border: 5px solid #fff; box-shadow: 0 0 0 3px #f7c4cd, 0 14px 30px -12px rgb(80 30 40 / .6); transition: transform .45s var(--h-ease); }
.hero-avatar:hover img { transform: translateY(-6px) rotate(-5deg); }
/* The tail wags from behind the dialogue box. */
.hero-tail { position: absolute; z-index: 1; right: -74px; bottom: 34px; width: 104px; height: 138px; transform-origin: 15% 97%; animation: wag 1.9s ease-in-out infinite alternate; filter: drop-shadow(0 8px 10px rgb(60 20 10 / .3)); }
@keyframes wag { from { rotate: -9deg; } to { rotate: 13deg; } }
.header-info { position: relative; z-index: 2; flex: 1; min-width: 0; padding: 32px 36px 16px; border-radius: 30px; background: var(--hero-card); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border: 3px solid var(--hero-rim); outline: 2px dashed rgb(232 169 59 / .6); outline-offset: -12px; box-shadow: 0 22px 44px -20px rgb(80 30 40 / .6); }
.has-portrait .header-info { padding-left: 68px; }
/* Name tag with a pair of ears. */
.dialogue-speaker { position: absolute; top: -18px; left: 30px; margin: 0; padding: 0 18px; border-radius: 999px; background: #d6304a; color: #fff; font: 700 15px/34px var(--h-sans); letter-spacing: .16em; box-shadow: 0 5px 12px -3px rgb(176 35 58 / .5); }
.has-portrait .dialogue-speaker { left: 64px; }
.dialogue-speaker::before, .dialogue-speaker::after { content: ""; position: absolute; top: -8px; width: 14px; height: 14px; background: #d6304a; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 100%; }
.dialogue-speaker::before { left: 9px; rotate: -16deg; }
.dialogue-speaker::after { right: 9px; rotate: 16deg; }
.focusinfo:hover .dialogue-speaker::before { animation: twitch .5s ease-in-out 2; }
@keyframes twitch { 50% { rotate: -30deg; } }
.dialogue-line { margin: 0; min-height: 1.7em; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; overflow-wrap: anywhere; }
.typing-copy::after { content: ""; display: inline-block; width: .42em; height: 1em; margin-left: 4px; vertical-align: -.12em; background: #f08a9b; border-radius: 99px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.dialogue-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 44px; }
.top-social { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 4px 0 0; }
/* Social marks are little apples. */
.top-social a { position: relative; display: grid; place-items: center; width: 40px; height: 38px; border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%; color: #fff; font: 800 13px/1 var(--h-sans); text-shadow: 0 1px 1px rgb(120 10 30 / .4); background: radial-gradient(circle at 32% 28%, #ff9a9a 0, #e2394f 46%, #a5172e 100%); box-shadow: inset -3px -4px 0 rgb(0 0 0 / .08), 0 5px 10px -4px rgb(150 20 40 / .6); transition: transform .25s var(--h-ease); }
.top-social a::before { content: ""; position: absolute; top: -6px; left: 50%; width: 2.5px; height: 9px; border-radius: 2px; background: #6b4423; rotate: 12deg; }
.top-social a::after { content: ""; position: absolute; top: -6px; left: calc(50% + 3px); width: 12px; height: 7px; border-radius: 0 100% 0 100%; background: #6f9e3c; rotate: -18deg; }
.top-social a:hover { color: #fff; transform: translateY(-4px) rotate(-10deg); }
.top-social img { width: 20px; height: 20px; }
.cover-down { display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border-radius: 50%; color: var(--h-apple); background: var(--h-apple-soft); font-size: 22px; transition: background .2s, color .2s; }
.cover-down .icon { animation: hop 1.6s ease-in-out infinite; }
.cover-down:hover { background: var(--h-apple); color: var(--h-on-apple); }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px) rotate(-12deg); } }

/* ---------- Main column ---------- */
.site-main { flex: 1 0 auto; width: 100%; max-width: 940px; margin: 0 auto; padding: 0 24px; }
.inner-page .site-main, .home:not(:has(.home-cover)) .site-main { padding-top: 112px; }
.home-primary { padding-top: 64px; }
.home-intro { margin: 48px 0 0; }
.home-feed { display: flex; flex-direction: column; gap: 30px; }

/* ---------- Journal cards ---------- */
.feed-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 268px; padding: 10px; border-radius: var(--h-radius); background: var(--h-paper); box-shadow: var(--h-lift); }
.feed-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.feed-card:nth-child(even) .card-image { order: 2; }
.card-image { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--h-wheat-soft) repeating-linear-gradient(135deg, transparent 0 14px, rgb(232 169 59 / .1) 14px 15px); }
.card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--h-dim)); transition: transform .7s var(--h-ease); }
.feed-card:hover .card-image img { transform: scale(1.05); }
.card-initial { font-size: 132px; font-weight: 900; line-height: 1; color: var(--h-wheat); opacity: .85; user-select: none; }
.card-seal { position: absolute; z-index: 2; top: 22px; left: 22px; display: grid; place-content: center; width: 66px; height: 66px; border-radius: 50%; text-align: center; color: #3b2a30; font-family: var(--h-sans); background: radial-gradient(circle at 34% 28%, #fff 0, #f1f3f6 42%, #c6ced8 100%); box-shadow: inset 0 0 0 3px rgb(255 255 255 / .8), inset 0 0 0 4.5px rgb(59 42 48 / .14), 0 6px 14px -4px rgb(29 33 64 / .45); rotate: -9deg; }
.feed-card:nth-child(even) .card-seal { left: auto; right: 22px; rotate: 9deg; }
.card-seal b { font-size: 16px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.card-seal small { font-size: 10.5px; letter-spacing: .12em; color: #6f5d63; }
.card-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; padding: 20px 24px 18px 26px; }
.card-kicker { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.card-title { margin: 0; font-size: 23px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.card-title a { background: linear-gradient(transparent 60%, var(--h-wheat-soft) 60%) no-repeat 0 0 / 0 100%; transition: background-size .45s var(--h-ease); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--h-radius); }
.feed-card:hover .card-title a { background-size: 100% 100%; color: var(--h-ink); }
.card-excerpt { margin: 0; color: var(--h-ink-2); font-size: 15.5px; line-height: 1.8; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 4px; font: 13px/1.6 var(--h-sans); color: var(--h-ink-3); }
.card-meta:empty { display: none; }
.card-meta > * { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; }

/* Short notes are speech bubbles from the author. */
.feed-note { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.note-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--h-paper), 0 0 0 3.5px var(--h-wheat); filter: brightness(var(--h-dim)); }
.note-main { position: relative; grid-column: 2; min-width: 0; padding: 14px 22px 16px; border-radius: 4px 20px 20px 20px; background: var(--h-paper); box-shadow: var(--h-lift); }
.note-main::before { content: ""; position: absolute; top: 0; left: -10px; width: 12px; height: 16px; background: var(--h-paper); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.note-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font: 13px/1.7 var(--h-sans); color: var(--h-ink-3); }
.note-meta a { display: inline-flex; align-items: center; gap: 4px; }
.note-speaker { color: var(--h-apple); font-size: 14px; font-weight: 700; }
.note-title { margin: 4px 0 2px; font-size: 17px; line-height: 1.5; font-weight: 700; }
.note-text { font-size: 16.5px; line-height: 1.8; }
.note-text p { margin: .5em 0 0; }
.note-text img { border-radius: 10px; }

/* ---------- Footer: a wheat field at dusk ---------- */
.site-footer { --f-ground: #f3dcaa; --f-front: #d39a36; --f-back: #ecc77d; margin-top: 110px; color: #4a3424; }
html[data-appearance=dark] .site-footer { --f-ground: #1b2036; --f-front: #9c7b3c; --f-back: #4f4430; color: var(--h-ink-2); }
.wheat-field { display: block; width: 100%; }
.footer-field { height: clamp(96px, 9.4vw, 150px); margin-bottom: -1px; }
.wheat-ground { fill: var(--f-ground); }
.wheat-back { color: var(--f-back); }
.wheat-front { color: var(--f-front); }
.wheat-field use { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
.wheat-field use:nth-child(3n) { animation-delay: -2.4s; }
.wheat-field use:nth-child(3n+1) { animation-delay: -4.6s; animation-duration: 8s; }
@keyframes sway { from { rotate: -2.5deg; } to { rotate: 3deg; } }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 10px max(24px, calc((100% - 892px) / 2)) 30px; background: var(--f-ground); font: 14px/1.7 var(--h-sans); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.footer-name { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1.4 var(--horo-font); color: inherit; }
.footer-name img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--f-ground), 0 0 0 3.5px var(--f-front); }
.footer-brand p { margin: 0; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: 5px; }
.site-footer a:hover { color: var(--h-apple-ink); }
.theme-info { flex-basis: 100%; padding-top: 16px; border-top: 1.5px dotted rgb(74 52 36 / .25); font-size: 12.5px; opacity: .78; }
html[data-appearance=dark] .theme-info { border-color: var(--h-line-strong); }
.theme-info p { margin: 0; }

/* ---------- Floating controls ---------- */
.floating-controls { position: fixed; right: 16px; bottom: 18px; z-index: 45; display: flex; flex-direction: column; gap: 10px; transition: opacity .3s; }
.floating-controls .icon-button { width: 46px; height: 46px; background: var(--h-paper); color: var(--h-ink); box-shadow: var(--h-float), 0 0 0 1px var(--h-line); }
.floating-controls .icon-button:hover { background: var(--h-apple); color: var(--h-on-apple); }
html[data-enhanced] .home:has(.home-cover):not(.is-scrolled) .floating-controls:not(:focus-within) { opacity: 0; pointer-events: none; }
.appearance { position: relative; }
.appearance-panel { position: absolute; right: 58px; bottom: 0; display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 90px); padding: 10px; border-radius: 18px; background: var(--h-paper); box-shadow: var(--h-float), 0 0 0 1px var(--h-line); }
.mode-controls, .background-controls { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: var(--h-paper-2); }
.appearance-panel button { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; font-size: 19px; color: var(--h-ink-2); transition: background .2s, color .2s; }
.appearance-panel button:hover { color: var(--h-apple); }
.appearance-panel button[data-mode=auto] { font: 600 13px/1 var(--h-sans); }
.appearance-panel button:disabled { opacity: .4; cursor: help; }
.appearance-panel [aria-pressed=true] { background: var(--h-paper); color: var(--h-apple); box-shadow: 0 1px 3px rgb(29 33 64 / .18); }

/* ---------- Dialogs ---------- */
:is(.search-dialog, .image-viewer) { border: 0; color: var(--h-ink); background: var(--h-paper); box-shadow: var(--h-float); }
:is(.search-dialog, .image-viewer)::backdrop { background: rgb(20 24 41 / .55); backdrop-filter: blur(4px); }
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: 82svh; margin-top: 9vh; padding: 26px 26px 22px; border-radius: 22px; }
.search-dialog h2 { margin: 0 0 14px; font-size: 21px; font-weight: 800; }
.close-search { position: absolute; top: 14px; right: 14px; }
.search-dialog input { width: 100%; height: 52px; padding: 0 18px; border: 2px solid var(--h-line-strong); border-radius: 14px; background: var(--h-paper-2); font: 17px/1 var(--h-sans); caret-color: var(--h-apple); transition: border-color .2s; }
.search-dialog input:focus { border-color: var(--h-apple); outline: none; }
.search-dialog [data-search-status] { margin: 14px 4px 6px; font: 13px/1.6 var(--h-sans); color: var(--h-ink-3); }
:is(.search-results, .title-results) { list-style: none; margin: 0; padding: 0; }
:is(.search-results, .title-results) a { display: block; padding: 11px 14px; border-radius: 12px; transition: background .15s; }
:is(.search-results, .title-results) a:hover { background: var(--h-wheat-soft); color: var(--h-ink); }
.title-results a { font-size: 16px; }
.search-result-title { font-weight: 700; font-size: 16.5px; }
.search-results p { margin: 4px 0 0; font: 13px/1.7 var(--h-sans); color: var(--h-ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-dialog > button:not(.icon-button), .image-viewer nav button { min-height: 42px; margin-top: 10px; padding: 0 18px; border-radius: 999px; font: 500 14px/1 var(--h-sans); box-shadow: inset 0 0 0 1.5px var(--h-line-strong); }
.search-dialog > button:not(.icon-button):hover, .image-viewer nav button:hover { background: var(--h-apple); color: var(--h-on-apple); box-shadow: none; }
.image-viewer { width: min(1200px, calc(100% - 24px)); max-height: 94svh; padding: 14px 18px; border-radius: 18px; }
.image-viewer figure { margin: 0; text-align: center; }
.image-viewer img { max-width: 100%; max-height: 72svh; width: auto; height: auto; border-radius: 10px; }
.image-viewer figcaption { font: 14px/1.6 var(--h-sans); color: var(--h-ink-2); white-space: pre-wrap; margin-top: 8px; }
.image-viewer nav { display: flex; gap: 16px; justify-content: center; align-items: center; font-family: var(--h-sans); }
[data-article-content] img[role=button] { cursor: zoom-in; }
.code-copy-selection { display: block; width: calc(100% - 20px); margin: 10px; padding: 10px; background: #0f1222; color: #fff; border: 1px solid #555; border-radius: 8px; font: 14px/1.6 var(--h-mono); white-space: pre; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .site-header { height: 58px; padding: 0 8px; }
  .header-bar { gap: 2px; }
  .nav-drawer { order: -1; margin: 0; }
  .mobile-menu-toggle, .mobile-search, .mobile-feed-link { display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
  .mobile-menu-toggle:hover { background: var(--h-apple-soft); }
  .nav-drawer[open] .mobile-menu-toggle { color: var(--h-apple); }
  .nav-identity { flex: 1; justify-content: center; padding: 4px; background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
  .nav-identity img { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .home:has(.home-cover):not(.is-scrolled) :is(.mobile-menu-toggle, .mobile-search, .mobile-feed-link) { background: var(--h-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--h-lift); }
  .home:has(.home-cover):not(.is-scrolled) .nav-identity { visibility: hidden; }
  .nav-pill { position: fixed; inset: 58px 0 auto; display: block; max-height: calc(100svh - 58px); overflow: auto; padding: 8px 20px 22px; border-radius: 0 0 26px 26px; background: var(--h-paper) !important; box-shadow: var(--h-float) !important; backdrop-filter: none !important; }
  .menu { display: block; font-size: 17px; }
  .menu-item { flex-wrap: wrap; border-bottom: 1.5px dotted var(--h-line); }
  .menu-item:last-child { border-bottom: 0; }
  .menu-item > a { flex: 1; padding: 13px 8px; border-radius: 12px; }
  nav > .menu > .menu-item > a::before, nav > .menu > .menu-item > a::after { display: none; }
  .menu-item > a[aria-current=page] { background: var(--h-apple-soft); color: var(--h-apple-ink); }
  .menu-item > a:hover { background: var(--h-wheat-soft); color: var(--h-ink); }
  .nav-branch { position: static; }
  .nav-branch > summary { position: absolute; top: 4px; right: 0; width: 44px; height: 44px; margin: 0; font-size: 14px; }
  .has-children { display: block; }
  .has-children > a { padding-right: 52px; }
  .nav-branch > .menu { position: static; min-width: 0; margin: 0 0 8px 14px; padding: 0 0 0 12px; border-left: 2px solid var(--h-wheat-soft); border-radius: 0; background: transparent; box-shadow: none; }
  .nav-branch > .menu .menu-item { border: 0; }
  .nav-tools { justify-content: flex-end; margin: 6px 0 0; padding: 8px 0 0; border: 0; border-top: 1.5px dotted var(--h-line); }
  .nav-tools [data-open-search] { display: none !important; }
  .nav-tools .icon-button { width: 44px; height: 44px; }
  .desktop-only { display: none; }

  .focusinfo { width: calc(100% - 28px); bottom: 34px; flex-direction: column; align-items: flex-start; }
  .hero-avatar { margin: 0 0 -32px 18px; }
  .hero-avatar img { width: 88px; height: 88px; border-width: 4px; }
  .hero-tail { right: -4px; bottom: auto; top: -40px; width: 74px; height: 98px; }
  .header-info, .has-portrait .header-info { width: 100%; padding: 34px 22px 12px; border-radius: 26px; outline-offset: -10px; }
  .dialogue-speaker { left: 20px; }
  .has-portrait .dialogue-speaker { left: 118px; }
  .site-main { padding: 0 16px; }
  .inner-page .site-main, .home:not(:has(.home-cover)) .site-main { padding-top: 84px; }
  .home-primary { padding-top: 44px; }
}
@media (max-width: 720px) {
  .home-feed { gap: 22px; }
  .feed-card, .feed-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 8px; }
  .feed-card:nth-child(even) .card-image { order: 0; }
  .card-image { aspect-ratio: 16 / 9; }
  .card-initial { font-size: 96px; }
  .card-seal, .feed-card:nth-child(even) .card-seal { top: 16px; left: 16px; right: auto; width: 58px; height: 58px; rotate: -9deg; }
  .card-seal b { font-size: 14px; }
  .card-body { padding: 14px 10px 8px; gap: 8px; }
  .card-title { font-size: 20px; }
  .card-excerpt { font-size: 15px; -webkit-line-clamp: 2; }
  .feed-note { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .note-avatar { width: 44px; height: 44px; }
  .note-main { padding: 12px 16px 14px; }
  .section-title { font-size: 22px; }
  .floating-controls { right: 12px; bottom: 14px; }
  .floating-controls .icon-button { width: 44px; height: 44px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-bottom: 92px; }
  .search-dialog { padding: 22px 16px 16px; margin-top: 4vh; }
}
@media (prefers-reduced-motion: reduce) {
  .wheat-field use, .cover-down .icon, .hero-tail { animation: none; }
}
