/* An editorial album opening, followed by a service index. */
.album {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr);
  align-items: end;
  gap: 24px 36px;
  padding-block: clamp(32px, 6vw, 76px) 28px;
}
.album__heading { display: grid; gap: 10px; }
.album h1 { font-size: clamp(3.1rem, 7vw, 6.5rem); line-height: 1.04; }
.album h1 em {
  color: var(--color-accent);
  font-style: normal;
  text-decoration: underline var(--color-bougain);
  text-decoration-thickness: .05em;
  text-underline-offset: .12em;
}
.album__opening { display: grid; justify-items: start; gap: 16px; padding-bottom: 3px; }
.album__opening .btn { gap: 9px; }
.album__spread { grid-column: 1 / -1; margin-top: 8px; }
.album__photo {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 9px 9px 11px;
  border: 1px solid var(--surface-rim);
  border-radius: 8px;
  background: var(--color-paper);
  box-shadow: var(--surface-depth);
}
.album__spread .album__photo {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.album__photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 3px; }
.album__photo figcaption { padding-inline: 4px; color: var(--color-muted); font-size: .875rem; }
.album__scene {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.album__scene .album__landscape {
  aspect-ratio: 3 / 1;
  object-position: center 57%;
  border-radius: 0;
}
.album__scene .album__flowers {
  position: absolute;
  top: 0;
  right: 0;
  width: min(38%, 380px);
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  pointer-events: none;
}
.market-tape + .services-overview { padding-top: 0; }
.home-notes__promises { width: 100%; }
.home-notes__promises summary { min-height: 44px; cursor: pointer; color: var(--color-accent); }
.chapter { padding-block: clamp(28px, 4.5vw, 64px) var(--section-gap-s); }
.chapter__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.chapter__heading a, .home-notes a, .notebook-rail a { color: var(--color-accent); }
.chapter__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--surface-rim);
  border-radius: 12px;
  background: var(--surface-rim);
}
.chapter__list li { grid-column: span 2; min-width: 0; }
.chapter__list li:nth-last-child(-n + 2) { grid-column: span 3; }
.chapter__list a {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 100%;
  padding: clamp(15px, 3vw, 32px);
  background: var(--color-paper);
  text-decoration: none;
}
.chapter__list a:hover, .chapter__list a:focus-visible { background: var(--color-paper-2); }
.chapter__list a:focus-visible { outline-offset: -3px; }
.chapter__list h3 { margin-bottom: 8px; font-weight: 600; letter-spacing: 0; }
.chapter-number { color: var(--color-accent); font: 600 .9rem/1.15 var(--font-body); }
.chapter-arrow { justify-self: end; color: var(--color-accent); font-size: 1.2rem; }
.home-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  padding-bottom: var(--section-gap-s);
}
.home-notes > * { padding: clamp(18px, 4vw, 40px); border: 1px solid var(--surface-rim); border-radius: 12px; }
.home-notes h2 { font-size: 1.55rem; }
.home-notes__statement { display: grid; justify-items: start; gap: 16px; background: var(--color-paper-2); }
.home-notes__statement p { font: 500 clamp(1.3rem, 3vw, 2rem)/1.2 var(--font-display); }
.home-notes__archive { display: grid; gap: 8px; align-content: start; }
.home-notes__archive a { padding-block: 6px; border-bottom: 1px solid var(--color-rule); }

/* Individual pages share typography but have layouts shaped around their content. */
.notebook-page { padding-block: var(--section-gap-s); }
.notebook-title { display: grid; justify-items: start; gap: 15px; margin-bottom: 28px; }
.notebook-title h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.notebook-title .lead { max-width: 62ch; }
.catalogue, .archive-layout {
  display: grid;
  grid-template-columns: minmax(175px, .72fr) minmax(0, 2.3fr);
  align-items: start;
  gap: clamp(20px, 4vw, 56px);
}
.notebook-rail {
  position: sticky;
  top: 104px;
  border-top: 2px solid var(--surface-rim);
  padding-block: 12px;
}
.notebook-rail ol { margin: 0; padding-inline-start: 24px; }
.notebook-rail li { padding: 7px 0; }
.notebook-rail li::marker { color: var(--color-muted); font-size: .875rem; }
.notebook-rail a { font-weight: 600; }
.catalogue .catalogue__entry {
  position: relative;
  display: block;
  margin-bottom: 12px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--surface-rim);
  border-radius: 12px;
  background: var(--color-paper);
}
.catalogue__entry:target { background: var(--color-paper-2); }
.catalogue__entry h2 { margin-block: 8px 14px; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.catalogue__entry .ruled { border-top: 1px solid var(--color-rule); margin-top: 12px; }
.catalogue__entry .ruled li { padding-block: 8px; }
.catalogue__entry .ruled li:last-child { border: 0; }

.about-spread {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(18px, 5vw, 62px);
}
.about-spread .notebook-title { margin: 0; }
.about-spread .album__photo img { aspect-ratio: 3 / 2; }
.about-spread__year { color: var(--color-accent); font: 600 clamp(3.5rem, 11vw, 8rem)/.95 var(--font-display); }
.office-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.office-notes .textrow {
  display: block;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--surface-rim);
  border-radius: 12px;
  background: var(--color-paper-2);
}
.office-notes .textrow h2 { margin-bottom: 14px; font-size: 1.5rem; }
.office-notes .textrow p, .office-notes .textrow li { font-size: 1rem; }
.office-notes .textrow li { padding-block: 8px; }

.archive-layout__tools .knowledge__topics { display: grid; gap: 0; }
.archive-layout__entries .knowledge__group:first-child { margin-top: 0; }
.knowledge__group h2 { margin-top: 8px; }
.archive-layout__entries details[open] { background: var(--color-paper-2); }

.visit-spread {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  align-items: stretch;
  gap: clamp(16px, 4vw, 42px);
}
.visit-spread__address { display: grid; align-content: center; gap: 12px; min-width: 0; }
.visit-spread__house { width: min(100%, 220px); }
.visit-spread .contact-info__details > div { grid-template-columns: minmax(0, 1fr); }
.visit-spread .contact-map { display: flex; flex-direction: column; width: 100%; margin: 0; }
.visit-spread .contact-map__header { border: 0; padding: 0; }
.visit-spread .contact-map iframe { flex: 1; min-height: 315px; border: 1px solid var(--surface-rim); border-radius: 12px; }

@media (max-width: 46rem) {
  .album, .home-notes, .catalogue, .archive-layout, .about-spread, .office-notes, .visit-spread {
    grid-template-columns: minmax(0, 1fr);
  }
  .album__spread { margin-top: 0; }
  .album__scene .album__landscape { aspect-ratio: 16 / 9; }
  .album__scene .album__flowers { width: 45%; }
  .chapter__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter__list li, .chapter__list li:nth-last-child(-n + 2) { grid-column: auto; }
  .chapter__list li:last-child { grid-column: 1 / -1; }
  .chapter__list a { gap: 10px; }
  .notebook-rail { position: static; }
  .archive-layout__tools .knowledge__topics { display: flex; flex-wrap: wrap; column-gap: 12px; }
}
@media (max-width: 24rem) {
  .chapter__list { grid-template-columns: 1fr; }
}
