/* Printed stock, live editorial type and an independent credit below each photograph. */
.ed-slot {
  container: ed-slot / inline-size;
  min-width: 0;
  width: 100%;
  margin-block: 1.65rem;
}
.ed-slot--square { max-width: 27rem; margin-inline: auto; }
.ed-slot .cs-edition {
  --ed-serif: var(--serif, Georgia, "Times New Roman", serif);
  --ed-sans: var(--sans, Arial, sans-serif);
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ed-ink);
  text-align: left;
}
.ed-slot .cs-edition, .ed-slot .cs-edition * { box-sizing: border-box; }
.ed-slot .cs-edition :is(.ed-photo, .ed-signature) {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 0;
  max-height: none;
}
.ed-slot .cs-edition .ed-photo { object-fit: cover; }
.ed-slot .cs-edition .ed-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-content: center;
  align-items: center;
  min-width: 0;
}
.ed-slot .cs-edition :is(.ed-kicker, .ed-title) {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.ed-slot .cs-edition .ed-kicker {
  font: 500 var(--ed-label-size)/1.15 var(--ed-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ed-slot .cs-edition .ed-title {
  font: 400 var(--ed-title-size)/.98 var(--ed-serif);
  letter-spacing: -.045em;
}
.cs-edition .ed-title :is(span, em) { display: block; }
.cs-edition .ed-title em { font-weight: inherit; }
html body .ed-slot .cs-edition .ed-copy a.ed-link:any-link {
  position: static;
  justify-self: start;
  margin: 0;
  padding: 0;
  color: var(--ed-ink);
  background: transparent;
  font: 500 var(--ed-link-size)/1.22 var(--ed-sans);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 58%, transparent);
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.cs-edition .ed-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ed-slot .cs-edition:has(.ed-link:focus-visible) { outline: 3px solid #126796; outline-offset: 4px; }
.cs-edition .ed-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
html body .ed-slot .cs-edition:has(.ed-link:hover) .ed-copy a.ed-link { text-decoration-thickness: 2px; }
html[data-theme="dark"] .ed-slot .cs-edition:has(.ed-link:focus-visible) { outline-color: #ffe699; }
.ed-slot .cs-edition .ed-signature {
  justify-self: end;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #ecdfc4;
}
.ed-slot > p.ed-credit {
  margin: .5rem 0 0;
  color: var(--muted, #535c58);
  font: .78rem/1.45 var(--sans, Arial, sans-serif);
  text-align: left;
}

.ed-slot .cs-edition--ribbon {
  --ed-ink: #f6eddb;
  --ed-label-size: clamp(.66rem, 1.36cqw, 1.04rem);
  --ed-title-size: clamp(1.7rem, 3.9cqw, 3.45rem);
  --ed-link-size: clamp(.8rem, 1.55cqw, 1.16rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 6;
  background: #102a2b;
}
.ed-slot .cs-edition--ribbon .ed-photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100%;
  object-position: 50% 50%;
}
.ed-slot .cs-edition--ribbon .ed-copy {
  grid-column: 2;
  padding: 1.35cqw 3.4cqw 1.4cqw 2.65cqw;
  gap: .45cqw .75cqw;
  background: #102a2b url("assets/house-editions/ribbon-petrol.webp") center / 100% 100% no-repeat;
}
.ed-slot .cs-edition--ribbon .ed-signature {
  width: clamp(3.7rem, 10.1cqw, 8.25rem);
  padding: .16em .32em;
}

.ed-slot .cs-edition--square {
  --ed-ink: #31271f;
  --ed-label-size: clamp(.67rem, 2.75cqw, .85rem);
  --ed-title-size: clamp(1.5rem, 9.2cqw, 2.72rem);
  --ed-link-size: clamp(.8rem, 3.72cqw, 1.04rem);
  background: #e8dac2;
}
.ed-slot .cs-edition--square .ed-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2;
  object-position: 50% 35%;
}
.ed-slot .cs-edition--square .ed-copy {
  aspect-ratio: 2;
  padding: 7cqw 4.9cqw 6.6cqw;
  gap: 1.5cqw 1cqw;
  background: #e8dac2 url("assets/house-editions/maker-paper.webp") center / 100% 100% no-repeat;
}
.ed-slot .cs-edition--square .ed-kicker { color: #623a25; letter-spacing: .24em; }
.ed-slot .cs-edition--square .ed-signature { width: 25cqw; background: transparent; }

/* The Revere photograph and the invitation share a row only when both fit. */
.hp-tea-spread > .ed-slot--panel { flex: 1 1 100%; margin: 0; }
.ed-slot .cs-edition--panel {
  --ed-ink: #fbefd7;
  --ed-label-size: clamp(.69rem, 2.95cqw, .87rem);
  --ed-title-size: clamp(1.53rem, 8cqw, 2.24rem);
  --ed-link-size: clamp(.81rem, 3.5cqw, 1rem);
  display: grid;
  grid-template-columns: 23% minmax(0, 1fr);
  background: #482017;
}
.ed-slot .cs-edition--panel::before {
  content: "";
  background: #6a3422 url("assets/house-editions/tea-copper.webp") 12% top / auto 224% no-repeat;
}
.ed-slot .cs-edition--panel .ed-copy {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding: clamp(.75rem, 4cqw, 1.25rem);
  gap: clamp(.35rem, 1.9cqw, .65rem);
}
.ed-slot .cs-edition--panel .ed-kicker { letter-spacing: .04em; }
.ed-slot .cs-edition--panel .ed-title { font-style: italic; }
.ed-slot .cs-edition--panel .ed-signature {
  justify-self: start;
  width: clamp(4rem, 21cqw, 5.25rem);
  padding: .12em .26em;
}
@container hp-tea (min-width: 35rem) {
  .hp-tea-spread > .op-study { flex: 1 1 0; }
  .hp-tea-spread > .ed-slot--panel { flex: 0 0 clamp(12rem, 34%, 16rem); max-width: 16rem; }
  .ed-slot .cs-edition--panel {
    --ed-label-size: 7.6cqw;
    --ed-title-size: 14.7cqw;
    --ed-link-size: max(.83rem, 6.45cqw);
    display: flex;
    flex-direction: column;
    justify-content: end;
    aspect-ratio: 1 / 2;
    background: #482017 url("assets/house-editions/tea-copper.webp") center / 100% 100% no-repeat;
  }
  .ed-slot .cs-edition--panel::before { display: none; }
  .ed-slot .cs-edition--panel .ed-copy { padding: 0 7.2cqw 7.5cqw; gap: 3.2cqw; }
  .ed-slot .cs-edition--panel .ed-kicker { letter-spacing: .008em; }
  .ed-slot .cs-edition--panel .ed-signature {
    width: 45cqw;
    margin-top: 9.5cqw;
    padding: 1.1cqw 1.8cqw;
  }
}

@container ed-slot (max-width: 41rem) {
  .ed-slot .cs-edition--ribbon {
    --ed-title-size: clamp(1.5rem, 5.65cqw, 2.15rem);
    --ed-link-size: clamp(.8rem, 2.55cqw, .95rem);
    grid-template-columns: 33% minmax(0, 1fr);
    aspect-ratio: auto;
  }
  .ed-slot .cs-edition--ribbon .ed-photo { width: 33%; }
  .ed-slot .cs-edition--ribbon .ed-copy { padding: .9rem 3.9cqw; gap: .42rem .45rem; }
  .ed-slot .cs-edition--ribbon .ed-signature { width: clamp(3rem, 11.5cqw, 4.5rem); }
}
@container ed-slot (max-width: 26rem) {
  .ed-slot .cs-edition--ribbon { grid-template-columns: 28% minmax(0, 1fr); }
  .ed-slot .cs-edition--ribbon .ed-photo { width: 28%; }
  .ed-slot .cs-edition--ribbon .ed-copy { grid-template-columns: 1fr; row-gap: .4rem; }
  .ed-slot .cs-edition--ribbon .ed-signature { justify-self: start; }
}
@container ed-slot (max-width: 18rem) {
  .ed-slot .cs-edition--ribbon { grid-template-columns: 24% minmax(0, 1fr); }
  .ed-slot .cs-edition--ribbon .ed-photo { width: 24%; }
  .ed-slot .cs-edition--square .ed-copy { padding: 6.8cqw 4.8cqw 6cqw; }
  .ed-slot .cs-edition--square .ed-title { font-size: 9.3cqw; }
}
@media (forced-colors: active) {
  .ed-slot .cs-edition { outline: 1px solid CanvasText; }
  html body .ed-slot .cs-edition .ed-copy a.ed-link:any-link { color: LinkText; text-decoration-color: LinkText; }
  .ed-slot .cs-edition:has(.ed-link:focus-visible) { outline: 3px solid Highlight; }
}
