/* ============================================================
   album.css — The family album · /grandfather/album/
   Loads AFTER ../../assets/css/keepsake.css.
   Uses keepsake.css custom properties where they exist, with
   fallbacks so the page still renders if loaded standalone.
   Base rules use :where() so keepsake.css always wins on
   anything it also styles.
   ============================================================ */

:where(body) {
  margin: 0;
  background: var(--paper, #F4EFE3);
  color: var(--ink, #2B2620);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

.album-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ---------- opening ---------- */
.album-open {
  border-top: 3px double var(--rule, #C4B99F);
  padding-top: 2.2rem;
  margin-bottom: 2.6rem;
}

.album-open .eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stamp, #A33B36);
  margin: 0 0 .6rem;
}

.album-open h1 {
  font-family: 'Bitter', serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.12;
  margin: 0 0 .9rem;
}

.album-open .intro {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft, #5A5248);
  margin: 0;
}

/* ---------- groups ---------- */
.album-group { margin: 3.2rem 0 0; }

.album-group .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule, #C4B99F);
  padding-bottom: .4rem;
  margin: 0 0 1.2rem;
}

.album-group blockquote.short {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
}

.album-group blockquote.short p {
  font-family: 'Bitter', serif;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 .2rem;
}

.album-group blockquote.short cite {
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  font-size: .82rem;
  color: var(--ink-soft, #5A5248);
}

/* ---------- grid ---------- */
.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.album-grid .wide { grid-column: 1 / -1; }

@media (max-width: 430px) {
  .album-grid { grid-template-columns: 1fr; }
}

.album-grid figure { margin: 0; }

.album-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule, #C4B99F);
}

.album-grid figcaption {
  font-size: .92rem;
  color: var(--ink-soft, #5A5248);
  line-height: 1.45;
  padding-top: .45rem;
}

/* ---------- placeholder frames ---------- */
.ph {
  border: 1px dashed var(--rule, #C4B99F);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px,
      rgba(0,0,0,.025) 14px, rgba(0,0,0,.025) 28px),
    var(--paper-deep, #EFE8D6);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.ph .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stamp, #A33B36);
  margin-bottom: .5rem;
}

.ph .tag.onfile { color: var(--pencil, #4A6B8A); }

.ph .want {
  font-size: .95rem;
  color: var(--ink-soft, #5A5248);
  line-height: 1.4;
}

/* ---------- footer ---------- */
.album-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--rule, #C4B99F);
  padding-top: 1.3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .82rem;
  line-height: 2;
  color: var(--ink-soft, #5A5248);
}

.album-foot a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
