/* ── blog feed (paginated archive) ───────────────────────────────────────────── */
body { min-height: 100vh; }

.flash {
  font-size: 0.85rem; color: var(--accent);
  background: var(--accent-faint); border-bottom: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
}

/* ── layout: feed stays centered; calendar floats in the right margin ── */
.feed { max-width: 620px; margin: 0 auto; padding: 2.5rem 1rem 6rem; }

/* ── calendar: pinned in the right margin on wide screens, unobtrusive ── */
.cal-col { position: fixed; top: 5.5rem; left: calc(50% + 332px); width: 188px; }
.cal { font-size: 0.72rem; color: var(--faint); user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-sel { display: flex; gap: 0.25rem; }
.cal-sel select {
  background: var(--surface); color: var(--dim); border: 1px solid var(--border);
  border-radius: 3px; font-family: var(--serif); font-style: italic; font-size: 0.82rem;
  padding: 0 0.15rem; cursor: pointer;
}
.cal-nav { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.3rem; font-family: inherit; transition: color 0.2s; }
.cal-nav:hover:not(:disabled) { color: var(--accent); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto; grid-auto-rows: 1.7rem; gap: 1px; text-align: center; }
.cal-grid .wd { font-size: 0.56rem; color: var(--faint); opacity: 0.6; padding-bottom: 0.25rem; }
.cal-cell { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--faint); text-decoration: none; }
.cal-cell.has { color: var(--text); }
.cal-cell.has::after { content: ''; position: absolute; bottom: 13%; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.cal-cell.has:hover { color: var(--accent); }
.cal-cell.sel { background: var(--accent-faint); color: var(--accent); }

.filter-note { text-align: center; font-size: 0.78rem; color: var(--dim); margin: -1.25rem 0 2.25rem; }
.filter-note a { color: var(--accent); text-decoration: none; }
.filter-note a:hover { text-decoration: underline; }

.feed-head { text-align: center; margin-bottom: 2.75rem; }
.feed-head h1 {
  font-family: var(--serif); font-style: italic; font-size: 2.2rem;
  color: var(--accent); line-height: 1.1;
}
.feed-head h1 a { color: inherit; text-decoration: none; }
.feed-head h1 a:hover { opacity: 0.8; }
.feed-head .tagline { font-style: italic; font-size: 0.95rem; color: var(--dim); margin-top: 0.6rem; max-width: 34ch; margin-left: auto; margin-right: auto; line-height: 1.5; }
.feed-head .count { display: block; font-size: 0.75rem; color: var(--faint); letter-spacing: 0.06em; margin-top: 0.6rem; }

.post { margin-bottom: 4rem; }
.post-meta {
  display: flex; align-items: baseline; gap: 0.6rem;
  font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.post-meta .tag { color: var(--accent); }
.post-meta .post-date { color: inherit; text-decoration: none; }
.post-meta .post-date:hover, .post-meta .post-date:focus-visible { color: var(--accent); text-decoration: underline; }
.post.is-hidden { opacity: 0.55; }

/* print-like white mat — echoes the white photo borders in the aesthetic */
.frame {
  background: #fffdf8;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 10px 28px -16px rgba(60,53,42,0.45);
}

.carousel { position: relative; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.slide img, .slide video { width: 100%; max-height: 80vh; object-fit: contain; display: block; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); color: #fff; font-size: 1rem; cursor: pointer; display: none; align-items: center; justify-content: center; }
.nav-btn:hover { background: rgba(0,0,0,.65); }
.nav-prev { left: 8px; } .nav-next { right: 8px; }
.carousel.multi .nav-btn { display: flex; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 0.7rem; }
.dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background 0.2s; }
.dots .dot.on { background: var(--accent); }

.caption {
  white-space: pre-wrap; line-height: 1.7; font-size: 0.98rem;
  margin-top: 1.15rem; word-wrap: break-word;
}
.caption a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-faint); }
.caption a:hover { border-bottom-color: var(--accent); }
.caption .spoiler { background: var(--text); color: var(--text); border-radius: 3px; padding: 0 3px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.caption .spoiler.revealed { background: var(--accent-faint); color: inherit; }

.admin-bar { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.btn { padding: 0.3rem 0.8rem; border-radius: 4px; font-family: inherit; font-size: 0.76rem; cursor: pointer; text-decoration: none; border: 1px solid var(--border); color: var(--dim); background: transparent; transition: color 0.2s, border-color 0.2s; }
.btn:hover { color: var(--accent); border-color: var(--accent); }
.btn-delete:hover { color: #d96a4a; border-color: #d96a4a; }
.inline { display: inline; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 0 0 2.5rem; font-size: 0.85rem; }
.post + .pager, .pager:last-child { margin: 1.5rem 0 0; }
.pager a { color: var(--accent); text-decoration: none; }
.pager .jump { color: var(--faint); }
.pager select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; font-family: inherit; font-size: 0.82rem; padding: 0.12rem 0.3rem;
  cursor: pointer; margin: 0 0.15rem;
}
.empty { color: var(--dim); font-size: 0.95rem; text-align: center; padding: 3rem 0; }

/* Below the width where a right-margin calendar fits, stack it above the feed. */
@media (max-width: 1080px) {
  .blog-layout { display: flex; flex-direction: column; align-items: center; }
  .cal-col { position: static; order: -1; width: 100%; max-width: 300px; margin: 1.5rem auto 0; }
  .feed { padding-top: 1.25rem; }
}
