.sheet-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  margin-top: .65rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  text-underline-offset: .25em;
}
.sheet {
  background: var(--pale);
  border-top: 1px solid #b7cdd9;
}
.sheet-inner {
  max-width: 90rem;
  margin: auto;
  padding: clamp(2.75rem, 6vw, 6rem) clamp(1.25rem, 6vw, 7rem);
}
.sheet-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid #a9c1ce;
}
.sheet h2, .sheet h3, .sheet h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.sheet h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
.sheet h3 { font-size: clamp(1.75rem, 3.2vw, 3rem); }
.sheet h4 { font-size: 1.5rem; margin: 1.55rem 0 .6rem; }
.sheet-date { margin: 0; font-size: .9rem; color: var(--muted); }
.profile-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4.25rem);
  margin-top: clamp(1.6rem, 3vw, 3rem);
}
.portraits, .photo-grid, .story-photos {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portraits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.35rem, .7vw, .75rem); }
.sheet figure { margin: 0; }
.sheet .photo {
  display: block;
  background: #d1e0e7;
  color: var(--ink);
}
.sheet .photo:focus-visible, .sheet-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sheet .photo img { display: block; width: 100%; height: auto; }
.portraits .photo img { aspect-ratio: 0.53; object-fit: contain; background: #dde6ea; }
.sheet figcaption { margin-top: .48rem; font-size: .8rem; color: var(--muted); }
.facts h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.facts dl { margin: .8rem 0 0; }
.facts dl div {
  display: grid;
  grid-template-columns: minmax(6.2rem, .8fr) minmax(0, 1.4fr);
  gap: .8rem;
  border-top: 1px solid #c0d3df;
  padding: .55rem 0;
  line-height: 1.45;
  font-size: .95rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.sheet-story, .sheet-gallery {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: clamp(1.35rem, 2.5vw, 2rem);
  border-top: 1px solid #a9c1ce;
}
.sheet-story {
  display: grid;
  grid-template-columns: minmax(0, min(29%, 18rem)) minmax(0, 1fr);
  grid-template-areas: "photos title" "photos copy";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 1.2rem clamp(1.25rem, 4vw, 4rem);
}
.sheet-story h3 { grid-area: title; max-width: 24ch; }
.story-photos { grid-area: photos; gap: .65rem; }
.story-clip { grid-column: 1 / -1; }
.story-clip video { display: block; width: 100%; height: auto; }
.sheet-copy { grid-area: copy; max-width: 67ch; }
.sheet-copy p, .gallery-intro {
  margin: 0 0 .95rem;
  line-height: 1.65;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}
.sheet-copy p:last-child { margin-bottom: 0; }
.gallery-intro { color: var(--muted); margin: .5rem 0 1.3rem; }
.photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.45rem, 1vw, .95rem); }
.photo-grid .photo img { aspect-ratio: 16 / 10; object-fit: cover; }
.photo-viewer {
  width: min(65rem, calc(100vw - 1.5rem));
  max-width: 100%;
  max-height: calc(100dvh - 1.5rem);
  padding: .7rem;
  border: 1px solid #adc4ce;
  color: var(--ink);
  background: var(--pale);
}
.photo-viewer::backdrop { background: rgb(13 24 34 / 86%); }
.photo-viewer img { display: block; width: 100%; height: min(72vh, 52rem); height: min(72dvh, 52rem); object-fit: contain; }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.viewer-status { margin: 0 auto 0 0; padding-inline: .15rem; font-size: .9rem; }
.viewer-controls button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid #adc4ce;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  cursor: pointer;
}
.viewer-controls button:disabled { opacity: .45; cursor: default; }
.viewer-controls button:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 56rem) {
  .profile-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 41rem) {
  .sheet-heading { align-items: start; flex-direction: column; gap: .7rem; }
  .profile-spread, .sheet-story { grid-template-columns: minmax(0, 1fr); }
  .sheet-story { grid-template-areas: "title" "photos" "copy"; grid-template-rows: auto; }
  .story-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-photos .photo img { aspect-ratio: 4 / 3; object-fit: contain; }
  .portraits { gap: .9rem .55rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-controls { gap: .3rem; }
  .viewer-controls button { padding: .4rem .6rem; font-size: .85rem; }
}
