:root {
  --ground: #3C3C3E;
  --ink: #F2F1EE;
  --muted: #BDBAB4;
  --line: #56565B;
  --edge: #606065;
  --accent: #9FD3CD;
  --accent-ink: #2A2A2C;
  --poem: #E2DFD9;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif; line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: #C6E8E4; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 40px 5% 64px; display: flex; flex-direction: column; gap: 28px; }
.wrap.narrow { max-width: 720px; gap: 24px; }

.top { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.top h1 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(40px, 8vw, 56px); letter-spacing: -0.02em; line-height: 1; }
.top h1 a { color: var(--ink); text-decoration: none; }
.tagline { margin: 8px 0 0; font-size: 17px; color: var(--muted); }

.label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.muted { margin: 0; font-size: 14px; color: var(--muted); }
.clear { margin-left: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 14px; }

.lists-wrap { position: relative; }
.lists { display: grid; grid-auto-flow: column; grid-template-rows: auto; grid-auto-columns: 136px; gap: 18px 14px; overflow-x: auto; padding: 14px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.lists::-webkit-scrollbar { display: none; }
.list { width: 136px; padding: 0; border: none; background: none; text-align: left; color: var(--ink); display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.list img { width: 136px; height: 136px; object-fit: cover; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; }
.list[aria-pressed="true"] img { outline-color: var(--ink); }
.list b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.list span { font-size: 12px; color: var(--muted); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--edge); background: rgba(60, 60, 62, 0.92); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.arrow.next { right: -6px; }
.arrow.prev { left: -6px; }
.arrow[hidden] { display: none; }

.filters { border: 1px solid var(--line); border-radius: 14px; }
.filters summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 15px; }
.filters summary::-webkit-details-marker { display: none; }
.fsum { color: var(--accent); font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { margin-left: auto; flex: none; transition: transform .2s; }
.filters[open] .chev { transform: rotate(180deg); }
.fbody { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row > .label { width: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--edge); background: transparent; color: var(--ink); font-size: 14px; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.dot { width: 44px; height: 44px; border-radius: 22px; border: 2px solid transparent; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.dot span { width: 28px; height: 28px; border-radius: 14px; display: block; }
.dot[aria-pressed="true"] { border-color: var(--ink); }

.listhead { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-start; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.listhead h2 { margin: 0; flex: 1 1 280px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.poem { margin: 0; flex: 1 1 320px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.45; white-space: pre-line; color: var(--poem); }
.mark { margin-left: 6px; font-family: Inter, sans-serif; font-style: normal; font-size: 0.7em; color: var(--accent); cursor: help; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--edge); border-radius: 22px; padding: 3px; }
.seg button { min-height: 38px; padding: 0 16px; border-radius: 19px; border: none; background: transparent; color: var(--ink); font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); }

.season { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.season h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; gap: 4px; }
.cardlink { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: #48484B; }
.card .when { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.card .when b { color: var(--ink); font-weight: 600; }
.card p { margin: 0; font-size: 15px; }
.card .credit { font-size: 13px; font-style: italic; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px; }
.grid .tile { position: relative; aspect-ratio: 1 / 1; }
.grid .tile a { display: block; width: 100%; height: 100%; }
.grid .tile .flower { position: absolute; right: 4px; bottom: 4px; margin: 0; width: 40px; height: 40px; background: rgba(40, 40, 42, 0.6); }
.grid .tile .flower .mp-ring { stroke: #BDBAB4; }
.grid .tile .flower .mp-body, .grid .tile .flower .mp-tail { fill: #8E8B86; }
.grid .tile .flower .mp-legs { stroke: #8E8B86; }
.grid .tile .flower .mp-light, .grid .tile .flower .mp-eye { fill: #2C2C2E; }
.grid img { width: 100%; height: 100%; object-fit: cover; background: #48484B; }

.back a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; }
.entry { display: flex; flex-direction: column; gap: 14px; }
.entry .big { width: 100%; height: auto; border-radius: 4px; }
.entry .meta p { margin: 0; }
.entry .date { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 24px; }
.entry .place { color: var(--muted); font-size: 15px; margin-top: 4px !important; }
.entry .caption { margin: 0; font-size: 18px; }
.entry .note { margin: 0; font-size: 16px; color: var(--poem); white-space: pre-line; }
.entry .credit { margin: 0; font-size: 14px; font-style: italic; color: var(--muted); }
.pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--muted); }
.foot .mark { margin: 0; }
.listhead[hidden] { display: none; }

.lists-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.all-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent); text-decoration: none; }
.listhead { scroll-margin-top: 16px; }
.pagetitle { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.02em; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.lcard { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); text-decoration: none; }
.lcard img { width: 120px; height: 120px; flex: none; object-fit: cover; border-radius: 4px; }
.lcard h2 { margin: 0 0 6px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 500; font-size: 20px; line-height: 1.2; }
.lcard .poem { font-size: 18px; margin: 0 0 6px; }

.flower { align-self: flex-start; width: 44px; height: 44px; margin-left: -7px; border: none; border-radius: 22px; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.magpie { display: block; }
.magpie .mp-ring { stroke: #6E6D72; transition: stroke .2s; }
.magpie .mp-body, .magpie .mp-tail { fill: #5E5E62; transition: fill .2s; }
.magpie .mp-legs { stroke: #5E5E62; }
.magpie .mp-light, .magpie .mp-eye { fill: #3C3C3E; transition: fill .2s; }
.flower:hover .mp-ring { stroke: #A9A7AB; }
.flower[aria-pressed="true"] .mp-ring, .grid .tile .flower[aria-pressed="true"] .mp-ring, .magpie.on .mp-ring { stroke: #9FD3CD; }
.flower[aria-pressed="true"] .mp-body, .grid .tile .flower[aria-pressed="true"] .mp-body, .magpie.on .mp-body { fill: #8C8A8F; }
.flower[aria-pressed="true"] .mp-legs, .grid .tile .flower[aria-pressed="true"] .mp-legs, .magpie.on .mp-legs { stroke: #8C8A8F; }
.flower[aria-pressed="true"] .mp-tail, .grid .tile .flower[aria-pressed="true"] .mp-tail, .magpie.on .mp-tail { fill: #2F6E78; }
.flower[aria-pressed="true"] .mp-light, .flower[aria-pressed="true"] .mp-eye, .grid .tile .flower[aria-pressed="true"] .mp-light, .grid .tile .flower[aria-pressed="true"] .mp-eye, .magpie.on .mp-light, .magpie.on .mp-eye { fill: #F4F2EE; }
.flower:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flower.bloom .magpie { animation: hop .5s ease-out; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-6px) scale(1.15) rotate(-8deg); } 100% { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .flower.bloom .magpie, .magpie * { animation: none; transition: none; } }
.entry-flower { margin: -4px 0 0; }
.namebox { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(92vw, 420px); background: #2E2E30; color: var(--ink); border: 1px solid var(--edge); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10; display: flex; flex-direction: column; gap: 10px; }
.namebox label { font-weight: 600; font-size: 15px; }
.namebox label span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.namebox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.namebox input { flex: 1 1 160px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--edge); background: #48484B; color: var(--ink); font: inherit; font-size: 16px; }
.namebox button { min-height: 44px; padding: 0 16px; border-radius: 22px; font-size: 14px; }
.namebox-save { border: none; background: var(--ink); color: var(--accent-ink); }
.namebox-skip { border: 1px solid var(--edge); background: transparent; color: var(--ink); }
.flower-mark { color: #F2A7BA; }
.loved { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0 28px; }
.loved a { position: relative; display: block; aspect-ratio: 1 / 1; }
.loved img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.loved span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 10px; background: rgba(20,20,19,.7); color: #fff; font-size: 12px; }
.who { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.who li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.who img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.who span { flex: 1; }
.who time { color: var(--muted); font-size: 13px; }

.brand { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); }
.logo-btn { flex: none; padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; line-height: 0; }
.logo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand .logo { width: clamp(54px, 9vw, 72px); height: auto; }
.logo-btn.bloom .logo { animation: hop .5s ease-out; }
.hint { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hint .inline { display: inline-block; vertical-align: -5px; margin: 0 2px; }

.magpie-toast { position: absolute; z-index: 20; padding: 6px 12px; border-radius: 14px; background: #F2F1EE; color: #2A2A2C; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); animation: toast 1.8s ease-out forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(6px); } 12% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .magpie-toast { animation: toastfade 1.8s linear forwards; } @keyframes toastfade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } } }

.dedication { margin: -8px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.4; color: var(--poem); max-width: 34em; }
.about { display: flex; flex-direction: column; gap: 14px; }
.about p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--poem); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

.about-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.about-head .sei { flex: none; width: clamp(64px, 14vw, 84px); height: auto; }

.title-sei { display: flex; align-items: center; gap: 16px; }
.title-sei .sei { flex: none; width: clamp(54px, 9vw, 72px); height: auto; }
