html{--background:#f5f2ea;--ink:#41463a;--muted:var(--ink);--border:var(--ink);--bar-height:84px;--dial-height:200px}html[data-theme="dark"]{--background:#141414;--ink:#d5d9ca}
body>nav{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:3;width:100%;height:var(--bar-height);background:var(--background);border:0}
.archive{max-width:1180px;margin:auto;padding:calc(var(--bar-height) + var(--dial-height) + 24px) 36px 100px}
.archive-layout{display:block}
@property --scroll-thumb{syntax:"<color>";inherits:true;initial-value:transparent}
.month-control{position:fixed;top:var(--bar-height);left:50%;transform:translateX(-50%);width:calc(100% - 40px);height:var(--dial-height);z-index:2;background:var(--background);display:flex;gap:28px;overflow:auto;padding:12px 0;overscroll-behavior:contain}
.month-control,#records{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent;transition:--scroll-thumb 450ms ease}
.month-control.is-scrolling,#records.is-scrolling{--scroll-thumb:color-mix(in srgb,var(--ink) 25%,transparent);transition-duration:120ms}
@media(prefers-reduced-motion:reduce){.month-control,#records{transition:none}}
.month-control::-webkit-scrollbar,#records::-webkit-scrollbar{width:4px;height:4px}
.month-control::-webkit-scrollbar-track,#records::-webkit-scrollbar-track{background:transparent}
.month-control::-webkit-scrollbar-thumb,#records::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:4px}
.year-block{flex:0 0 184px}.year-block h2{font:400 20px/1.4 Pretendard,sans-serif;letter-spacing:-.06em;margin:0 0 12px;text-align:center}.month-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
button{font:inherit;color:inherit;background:var(--background);border:0;cursor:pointer;min-height:44px;padding:8px 12px}button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.month-choice{position:relative;font:200 20px/1.4 Pretendard,sans-serif;letter-spacing:-.06em;color:var(--ink);padding:6px 0}.month-choice:not([data-count="0"]){color:var(--muted);font-weight:600}.month-choice > span{position:relative;display:inline-block}.month-choice[aria-pressed="true"] > span::before,.month-choice[aria-pressed="true"] > span::after{position:absolute;top:50%;transform:translateY(-50%);font-size:15px;font-weight:200;line-height:1}.month-choice[aria-pressed="true"] > span::before{content:"<";right:calc(100% + 2px)}.month-choice[aria-pressed="true"] > span::after{content:">";left:calc(100% + 2px)}.month-choice:hover{color:var(--ink)}
#records{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:start;mask-image:linear-gradient(to bottom,transparent var(--fade-edge,-24px),#000 calc(var(--fade-edge,-24px) + 24px))}
.diary-card{min-width:0;max-width:none;margin:0;padding:0;border:0;border-bottom:1px solid var(--border)}
.open-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,120px);grid-template-rows:1fr auto;align-items:center;gap:12px 32px;width:100%;padding:10px 16px 16px;min-height:0;border:0;background:none;text-align:left;cursor:pointer}
.entry-photo,.photo-space{grid-column:2;grid-row:1/3;align-self:start;margin-top:6px;display:block;width:100%;aspect-ratio:1/1;height:auto;object-fit:cover}
.entry-date{grid-column:1;grid-row:2;align-self:end;font:16px/1.4 'IBM Plex Mono',monospace;color:var(--muted)}
.entry-caption{grid-column:1;grid-row:1;align-self:start;display:block;margin:0}.entry-subtitle{display:block;font:400 16px/1.6 Pretendard,sans-serif;color:var(--muted);margin:10px 0 0;overflow-wrap:anywhere}.entry-title{display:block;font:500 24px/1.4 Pretendard,sans-serif;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}
.diary-card{scroll-margin-top:calc(var(--bar-height) + var(--dial-height) + 24px)}
.open-entry .entry-subtitle{font-weight:400;margin-top:4px}.open-entry:hover .entry-title{opacity:1}.open-entry:focus-visible{outline:2px solid var(--ink);outline-offset:7px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{position:fixed;inset:var(--bar-height) 0 0 max(244px,calc((100vw - 1180px)/2 + 244px));margin:0;width:auto;height:auto;max-width:none;max-height:none;padding:8px 36px 64px;background:var(--background);color:var(--ink);border:0;overscroll-behavior:contain}dialog::backdrop{background:transparent}dialog[open]{animation:reader-enter 420ms cubic-bezier(.22,1,.36,1)}@keyframes reader-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){dialog[open]{animation:none}}.close-entry{display:block;margin:0 -24px 0 auto;position:sticky;top:0;z-index:1;width:44px;height:44px;padding:0;border:0;font-size:28px;font-weight:300;line-height:1}.close-entry::before,.close-entry::after{content:"";position:absolute;left:14px;top:21px;width:16px;height:1px;background:currentColor;transform:rotate(45deg)}.close-entry::after{transform:rotate(-45deg)}.close-entry:hover{opacity:1}#entry-content{max-width:820px;margin:8px auto 0}#entry-content header{margin:0 0 24px;padding:0;border:0}#entry-content header h2{margin:10px 0 0;font-size:clamp(30px,4vw,46px);line-height:1.25;letter-spacing:-.045em;overflow-wrap:anywhere}#entry-content time{font:11px 'IBM Plex Mono',monospace;color:var(--muted)}#entry-content .entry-subtitle{font-size:18px;line-height:1.6;margin:10px 0 0}#entry-content .body img{display:block;width:90%;max-width:640px;height:auto;margin-inline:auto}#entry-content .body p:has(> img:only-child){margin:36px 0}#entry-content .body > :first-child{margin-top:0}#entry-content .body > :last-child{margin-bottom:0}@media(max-width:760px){html{--bar-height:78px;--dial-height:176px}.month-control{padding:4px 0}.year-block h2{font-size:18px;line-height:24px;margin-bottom:4px}.archive{padding:calc(var(--bar-height) + var(--dial-height) + 18px) 20px 64px}#records{gap:0}.open-entry{grid-template-columns:minmax(0,1fr) minmax(0,min(26%,120px));gap:12px 20px;padding:10px 12px 14px}.entry-photo,.photo-space{margin-top:4px}.entry-title{font-size:18px}.entry-subtitle{font-size:13px;margin-top:8px}.entry-date{font-size:13px}dialog{touch-action:pan-y pinch-zoom;inset:calc(var(--bar-height) + var(--dial-height)) 0 0;padding:8px 20px 36px}.close-entry{margin-right:-10px}#entry-content{margin-top:0}#entry-content header{margin-bottom:20px}#entry-content header h2{font-size:30px}#entry-content .entry-subtitle{font-size:16px;margin-top:10px}#entry-content .body p:has(> img:only-child){margin-bottom:28px}}
@media(min-width:761px){
 .close-entry{width:48px;height:48px;margin-right:0;top:8px}
 .close-entry::before,.close-entry::after{width:22px;height:2px;left:13px;top:23px}
 .archive{padding-top:calc(var(--bar-height) + 24px);padding-left:280px}
 .month-control{top:calc(var(--bar-height) + 24px);left:max(36px,calc((100vw - 1180px)/2 + 36px));transform:none;width:184px;height:auto;max-height:calc(100dvh - var(--bar-height) - 48px);padding:0;flex-direction:column;gap:32px}
 .diary-card{scroll-margin-top:calc(var(--bar-height) + 24px)}
}

html[data-theme="dark"]{--muted:var(--ink);--border:var(--ink)}

html,body{height:100%;overflow:hidden}
#records{position:fixed;top:var(--bar-height);bottom:0;left:max(280px,calc((100vw - 1180px)/2 + 280px));right:max(36px,calc((100vw - 1180px)/2 + 36px));overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:24px 8px 100px;margin:0 -8px;scroll-padding-top:24px}
.diary-card{scroll-margin-top:0}
@media(max-width:760px){#records{top:calc(var(--bar-height) + var(--dial-height));left:20px;right:20px;padding-top:18px;padding-bottom:64px;scroll-padding-top:18px}}

@media(min-width:761px){
 #records{max-width:676px}
}

.diary-card{transition:background-color 320ms ease-in-out,color 320ms ease-in-out,border-color 320ms ease-in-out}
.open-entry .entry-subtitle,.entry-date{color:inherit}
@media(hover:hover) and (pointer:fine){
 .diary-card:hover{background:var(--ink);color:var(--background);border-bottom-color:var(--background)}
}
.diary-card:has(.open-entry:focus-visible){background:var(--ink);color:var(--background);border-bottom-color:var(--background)}
@media(prefers-reduced-motion:reduce){.diary-card{transition:none}}

.entry-rating{display:flex;gap:3px;width:max-content;margin-top:8px;color:inherit}.entry-rating svg{display:block;width:14px;height:14px}#entry-content .entry-rating{margin-top:12px}#entry-content .entry-rating svg{width:16px;height:16px}
