:root { color-scheme: light; --ink: #36252d; --rose: #843e59; --paper: #fffcf8; --line: #ebd8dc; }
* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 74rem; padding: 0 clamp(1rem, 4vw, 3rem); min-height: 100vh; color: var(--ink); background: #fbf1ee; font: 16px/1.65 system-ui, sans-serif; }
a { color: var(--rose); text-underline-offset: .22em; }
.site-nav, nav, .page-title { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.site-nav, .page-title { justify-content: space-between; }
.site-nav { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
.brand span { font-size: 1.45rem; vertical-align: middle; }
main { padding: clamp(2.5rem, 7vw, 5rem) 0; }
h1, h2 { font-family: Georgia, "Songti SC", "Noto Serif CJK SC", serif; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); margin: 0 0 1.5rem; font-weight: 650; }
.page-title { margin-bottom: 1.5rem; }
.page-title h1 { margin: 0; }
.entry { min-height: 100svh; display: grid; place-items: center; }
.entry-card, .card, .empty { padding: clamp(1.3rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 1.3rem; background: var(--paper); }
.entry-card { width: min(100%, 27rem); }
.entry-card h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); text-align: center; }
.heart, .empty span { color: var(--rose); font-size: 2.7rem; line-height: 1; text-align: center; margin-bottom: .8rem; }
.editor { display: grid; gap: .85rem; max-width: 34rem; }
.editor label { display: grid; gap: .25rem; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; color: var(--ink); border: 1px solid #ba929d; border-radius: .45rem; background: #fff; padding: .45rem .6rem; }
textarea { resize: vertical; }
button, .button { justify-self: start; cursor: pointer; color: #fff; background: var(--rose); border: 1px solid var(--rose); border-radius: 2rem; padding: .42rem 1rem; text-decoration: none; }
.quiet { color: var(--rose); background: transparent; border-color: transparent; padding: .25rem .1rem; text-decoration: underline; text-underline-offset: .22em; }
.wall { columns: 3 17rem; column-gap: 1.1rem; }
.wall:has(.empty) { columns: auto; }
figure { margin: 0 0 1.1rem; break-inside: avoid; border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; background: var(--paper); }
figure img, .photo-editor img { display: block; width: 100%; height: auto; }
figcaption { padding: .75rem 1rem; }
figcaption p { margin: .2rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
time { color: var(--rose); font-variant-numeric: tabular-nums; font-size: .9rem; }
.empty { text-align: center; }
.empty p { margin: 0; }
.photo-editor { display: grid; align-items: start; gap: 1rem; margin: 1rem 0; }
.photo-editor img { max-width: 17rem; border-radius: .65rem; }
details form { margin-top: .7rem; }
@media (min-width: 46rem) { .photo-editor { grid-template-columns: 1fr 2fr; } .photo-editor details { grid-column: 2; } }
:focus-visible { outline: 2px solid var(--rose); outline-offset: .2rem; }
