/* Diary page — Notebook look: lined paper, the date written in the margin, a photo taped beside
   (Anne chose "A · Notebook", options/diary.html, 2026-11-06) */

.d-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px) 0;
  text-align: center;
}
.d-intro h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(44px, 6vw, 80px); line-height: 1.04; }
.d-lede { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* The notebook page */
.d-book {
  max-width: 1000px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(59, 47, 39, .08);
  background:
    linear-gradient(90deg, transparent 158px, rgba(217, 139, 132, .45) 158px 160px, transparent 160px), /* the margin line */
    repeating-linear-gradient(180deg, #fffdf8 0 31px, #e8ddcb 31px 32px);                           /* the ruled lines */
}
.d-entry { display: grid; grid-template-columns: 110px 1fr 180px; gap: 28px; padding: 22px 0 30px; align-items: start; }
.d-date { font-family: "Caveat", cursive; font-size: 28px; line-height: 1.05; color: var(--clay); text-align: right; padding-right: 10px; }
.d-date span { display: block; font-size: 20px; color: var(--muted); }
.d-entry h2 { font-family: var(--serif); font-weight: 450; font-size: 24px; line-height: 1.25; margin: 2px 0 6px; }
.d-entry p:not(.meta):not(.d-date) { max-width: 52ch; }
.d-see { display: inline-block; margin-top: 6px; color: var(--clay); font-size: 15px; }

/* A photo taped to the page, tilted a little; the tape takes turns being butter, duck-egg and rose */
.d-photo { position: relative; aspect-ratio: 1; padding: 8px; background: #fff; box-shadow: 0 4px 12px rgba(59, 47, 39, .14); transform: rotate(2deg); }
.d-entry:nth-child(even) .d-photo { transform: rotate(-2.5deg); }
.d-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.d-photo::before { content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 62px; height: 20px; transform: translateX(-50%) rotate(-4deg); background: rgba(236, 208, 143, .8); }
.d-entry:nth-child(3n+2) .d-photo::before { background: rgba(169, 198, 194, .8); }
.d-entry:nth-child(3n) .d-photo::before { background: rgba(217, 139, 132, .65); }
a.d-photo:hover { box-shadow: 0 8px 18px rgba(59, 47, 39, .22); }

@media (max-width: 760px) {
  .d-book { background: repeating-linear-gradient(180deg, #fffdf8 0 31px, #e8ddcb 31px 32px); }
  .d-entry { grid-template-columns: 1fr; gap: 10px; }
  .d-date { text-align: left; }
  .d-photo { max-width: 220px; margin-top: 8px; }
}
.d-credit { margin-top: 6px; font-size: 14px; color: var(--muted); }
