.life-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.55rem;
  border-bottom: 1px solid var(--rule);
  padding: .3rem 0;
}
.life-nav a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  padding: .38rem 0;
  text-decoration: none;
}
.life-nav a:hover, .life-nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: .3em;
}
.life-home { padding-block: 2.6rem 3rem; border-bottom: 1px solid var(--rule); }
.life-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(1.75rem, 4.5vw, 4.5rem);
  align-items: start;
}
.life-intro h1 { max-width: 15ch; }
.life-intro p {
  max-width: 50ch;
  color: var(--muted);
  margin-block: .85rem 1.5rem;
  font-size: 1.05rem;
}
.life-directory { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.life-directory li { border-bottom: 1px solid var(--rule); }
.life-directory a {
  display: grid;
  grid-template-columns: minmax(6rem, .6fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .4rem 1rem;
  padding: .9rem 0;
  color: var(--ink);
  text-decoration: none;
}
.life-directory a:hover { color: var(--green); background: var(--faint); }
.life-directory a:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.life-directory strong { font: 400 clamp(1.55rem, 3vw, 2.2rem)/1.1 var(--serif); }
.life-directory span { color: var(--muted); font-size: .88rem; }
.life-photo { margin: 0; }
.life-photo img { aspect-ratio: 4 / 4.65; object-fit: cover; object-position: 52% 49%; }
.life-photo .credit { margin-bottom: 0; }
.life-page-intro, .archive-tools, .archive-entry-top, .archive-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .65rem 1.15rem;
}
.life-page-intro, .archive-entry-top { justify-content: space-between; }
.archive-content { max-width: 55rem; padding-block: 1.55rem 2.4rem; }
.archive-tools { margin-bottom: 1rem; }
.archive-tools label, .archive-dialog label { font-size: .88rem; font-weight: 650; }
.archive-tools input, .archive-tools select, .archive-dialog input, .archive-dialog select, .archive-dialog textarea {
  padding: .48rem .63rem;
  color: var(--ink);
  border: 1px solid var(--control);
  background: white;
  font: inherit;
}
.archive-tools input { width: min(100%, 21rem); }
.archive-tools select { margin-inline-start: .45rem; }
.shelf-heading-year { color: var(--green); font-size: .58em; white-space: nowrap; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { border-top: 1px solid var(--rule); padding: .95rem 0; }
.archive-entry-top { align-items: start; }
.archive-entry-top h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); overflow-wrap: anywhere; }
.archive-entry-top p { margin: .28rem 0 0; }
.archive-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin: .65rem 0 .3rem; }
.archive-actions button:not(.button), .archive-edit {
  color: var(--green);
  background: transparent;
  border: 0;
  padding: .12rem 0;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
#entry-delete { color: #8a392a; }
.archive-data { margin-top: 1.3rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.archive-feedback {
  border-inline-start: 3px solid var(--green);
  background: var(--faint);
  padding: .55rem .75rem;
  font-size: .88rem;
}
.archive-dialog {
  width: min(35rem, calc(100% - 2rem));
  max-height: 90vh;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1rem, 4vw, 1.6rem);
}
.archive-dialog::backdrop { background: rgb(17 34 30 / .66); }
.archive-dialog h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.archive-dialog label { display: grid; gap: .2rem; margin-block: .77rem; }
.archive-dialog input, .archive-dialog textarea, .archive-dialog select { min-width: 0; width: 100%; }
.archive-dialog textarea { resize: vertical; }
.archive-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .85rem; }
.archive-fields label { margin-top: 0; }
.archive-content--shelves { max-width: none; }
.archive-shelves { display: grid; gap: 1.75rem; }
.archive-shelf h2 { margin-bottom: .65rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.shelf-items {
  --case-height: clamp(9.5rem, 16vw, 13.25rem);
  --shelf-row: calc(var(--case-height) + 5.35rem);
  --shelf-back: #e6d4bb;
  --shelf-shadow: #a77d56;
  --shelf-edge: #714729;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  grid-auto-rows: var(--shelf-row);
  column-gap: clamp(.55rem, 1.5vw, 1.1rem);
  margin: 0;
  padding: 0 clamp(.6rem, 2vw, 1.4rem);
  border: 1px solid var(--shelf-shadow);
  list-style: none;
  background:
    repeating-linear-gradient(to bottom,
      transparent 0 calc(var(--shelf-row) - .75rem),
      var(--shelf-shadow) calc(var(--shelf-row) - .75rem) calc(var(--shelf-row) - .53rem),
      var(--shelf-edge) calc(var(--shelf-row) - .53rem) var(--shelf-row)),
    linear-gradient(100deg, rgb(0 0 0 / .08), transparent 24%, rgb(0 0 0 / .05)),
    var(--shelf-back);
}
.shelf-items li { min-width: 0; }
.shelf-entry {
  --case: #30594a;
  --case-ink: #fff4d9;
  display: grid;
  grid-template-rows: var(--case-height) 1.28rem 1.15rem 1.3rem;
  gap: .12rem;
  width: 100%;
  margin-top: .45rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.shelf-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  min-width: 0;
  overflow: hidden;
  padding: .65rem .65rem .65rem 1.05rem;
  color: var(--case-ink);
  background:
    linear-gradient(90deg, rgb(0 0 0 / .28) .55rem, rgb(255 255 255 / .22) .59rem, transparent .64rem),
    linear-gradient(138deg, rgb(255 255 255 / .12), transparent 50%, rgb(0 0 0 / .12)),
    var(--case);
  border: 1px solid rgb(0 0 0 / .4);
  border-radius: 2px 5px 5px 2px;
  box-shadow: 2px 4px 0 rgb(0 0 0 / .19);
}
.shelf-cover::after {
  content: "";
  position: absolute;
  inset: .4rem .35rem .4rem .76rem;
  border: 1px solid currentColor;
  opacity: .25;
  pointer-events: none;
}
.shelf-entry:hover .shelf-cover { box-shadow: 2px 4px 0 rgb(0 0 0 / .3), inset 0 0 0 2px rgb(255 255 255 / .3); }
.shelf-entry[data-palette="1"] { --case: #79394a; }
.shelf-entry[data-palette="2"] { --case: #29496c; }
.shelf-entry[data-palette="3"] { --case: #795025; }
.shelf-entry[data-palette="4"] { --case: #4e405c; }
.shelf-entry[data-palette="5"] { --case: #70513b; }
.shelf-title, .shelf-credit {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}
.shelf-title { font: 400 clamp(1rem, 1.8vw, 1.32rem)/1.11 var(--serif); -webkit-line-clamp: 5; }
.shelf-credit { font-size: .71rem; line-height: 1.25; -webkit-line-clamp: 2; }
.shelf-artwork {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 .6rem;
  width: calc(100% - .6rem);
  height: 100%;
  object-fit: contain;
  background: var(--case);
}
.shelf-name {
  overflow: hidden;
  font-size: .8rem;
  font-weight: 680;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shelf-stars { color: #603911; font-size: .91rem; letter-spacing: .07em; }
.shelf-review { overflow: hidden; color: #483724; font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
[data-archive="movies"] .shelf-items { --shelf-back: #ddd7ce; --shelf-shadow: #76685c; --shelf-edge: #4a3b34; }
[data-archive="movies"] .shelf-cover {
  padding-inline: 1rem .65rem;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 5px) left / .55rem 100% no-repeat,
    linear-gradient(90deg, #1f2023 .6rem, transparent .64rem),
    linear-gradient(155deg, rgb(255 255 255 / .19), transparent 50%, rgb(0 0 0 / .2)),
    var(--case);
  border: 3px solid #26252a;
  border-radius: 3px;
}
[data-archive="movies"] .shelf-artwork { background: #26252a; }
.archive-extra { margin-block: .85rem; }
.archive-rating { margin: .2rem 0 .65rem; padding: 0; border: 0; }
.archive-rating legend { padding: 0; font-size: .88rem; font-weight: 650; }
.rating-options { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.archive-dialog .rating-option { display: inline-grid; position: relative; margin: 0; cursor: pointer; }
.archive-dialog .rating-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.rating-option span { padding: .12rem .26rem; color: #766351; font-size: 1.4rem; }
.rating-option--empty span { margin-right: .35rem; font-size: .83rem; }
.rating-option--empty input:checked + span { color: var(--green); background: var(--faint); }
.rating-option:not(.rating-option--empty):is(:has(input:checked), :has(~ .rating-option input:checked)) span { color: #805011; }
.rating-option input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }
@media (max-width: 740px) {
  .life-overview { grid-template-columns: 1fr; }
  .life-photo img { aspect-ratio: 4 / 3; }
  .life-home { padding-block: 1.8rem 2rem; }
}
@media (max-width: 400px) {
  .archive-fields { grid-template-columns: 1fr; }
  .shelf-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.music-picks { padding: 1.2rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.35rem; }
.music-picks h2 { font-size: clamp(1.85rem, 3vw, 2.8rem); }
.music-picks > p { max-width: 68ch; color: var(--muted); }
.music-pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.2rem; }
.music-pick-grid article { min-width: 0; border-top: 2px solid var(--green); padding-top: .7rem; }
.music-pick-grid h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
.music-pick-grid .music-performer { font-weight: 650; margin: .42rem 0 .35rem; color: var(--green); }
.music-pick-grid p:last-child { margin: 0; }
@media (max-width: 740px) {
  .music-pick-grid { grid-template-columns: minmax(0,1fr); }
}
