/* Class sheet: the starting mark, then what stands around it. Loads after site.css. */

/* The opening spread: name on its tape strip, picture beside it */
.debut {
  padding-top: calc(var(--measure-edge) + 1.5rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
  align-items: end;
}
.footing { width: fit-content; max-width: 100%; margin-bottom: 1.1rem; }
.footing h1 {
  margin: 0 0 0.3em;
  font-size: clamp(1.4rem, 0.6rem + 3.4vw, 4rem);
  overflow-wrap: anywhere;
}
.footing::after {
  content: ""; display: block; height: 0.9rem;
  background: var(--tone-tape);
  box-shadow: inset 0 0 0 0.1rem var(--tone-soil);
  clip-path: polygon(1% 20%, 0 48%, 1% 74%, 0 100%, 98% 90%, 100% 62%, 99% 34%, 100% 0);
  transform: rotate(-0.8deg);
}
.debut-kind {
  margin: 0 0 0.6rem;
  font: 600 clamp(1.15rem, 1rem + 0.6vw, 1.5rem)/1.25 var(--face-text);
}
.debut-line { margin: 0; max-width: 34rem; font-size: calc(var(--step-body) * 1.15); }
.debut-shot img { object-position: 50% 40%; }

/* The picture as a press-to-open control (the script wraps it) */
.lens {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in;
}

/* Lead with its initial, body in short columns */
.phrasing { align-items: start; padding-top: clamp(1.5rem, 5vh, 3rem); }
.phrase { margin: 0; font-size: calc(var(--step-body) * 1.3); line-height: 1.45; }

/* Specs: the list on the left seven columns, the price sentence on the right five */
.facts { align-items: start; }
.fee { margin: 0; max-width: 46rem; font-size: calc(var(--step-body) * 1.2); line-height: 1.45; }
.notes.facts-list {
  grid-template-columns: minmax(9rem, 3fr) 9fr;
  gap: 0.9rem 2rem;
  font-size: calc(var(--step-body) * 1.1);
}
.facts-list dt { font-weight: 600; }
@container (max-width: 34rem) {
  .notes.facts-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts-list dd { margin-bottom: 0.9rem; }
}

/* Ask first: the one question, closing the facts block as a light-ink pull line */
.ask {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.3rem 1.6rem;
}
.ask-label { margin: 0; }
.ask .pull { min-width: 0; overflow-wrap: anywhere; }
.ask .pull a {
  text-decoration: underline; text-decoration-color: var(--tone-tape);
  text-decoration-thickness: 0.1em; text-underline-offset: 0.18em;
  transition: text-decoration-thickness var(--step-turn) ease-out;
}
.ask .pull a:hover { text-decoration-thickness: 0.2em; }

/* Other classes: two unequal widths, one shared top and one shared bottom */
.understudy { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.understudy img { display: block; width: 100%; height: auto; object-fit: cover; }
.understudy-wide img { aspect-ratio: 16 / 9; }
.understudy-room img { aspect-ratio: 4 / 3; }
@container (min-width: 48rem) {
  /* the wide picture sets the row; the narrow one fills the same height */
  .understudy-wide img { flex: none; }
  .understudy-room img { flex: 1 1 0; height: 0; min-height: 0; aspect-ratio: auto; }
}
.understudy-name {
  margin: 0.7rem 0 0.15rem;
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 0.12em; text-underline-offset: 0.2em;
  transition: text-decoration-color var(--step-turn) ease-out;
}
.understudy:hover .understudy-name,
.understudy:focus-visible .understudy-name { text-decoration-color: var(--tone-tape); }
.understudy-fee { margin: 0; font-size: var(--step-small); }

/* Hand-off: two bare links, a sentence on the first link's baseline, then the email close under */
.turnout { align-items: baseline; row-gap: 0.6rem; padding-top: clamp(1.5rem, 5vh, 3rem); }
.turnout h2 { margin-bottom: 0.6rem; }
.turnout-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.turnout-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font: 800 clamp(1.1rem, 0.8rem + 1.2vw, 1.5rem)/1.2 var(--face-display);
  text-decoration: none;
}
.turnout-links a:hover { text-decoration: underline; text-decoration-color: var(--tone-tape); text-decoration-thickness: 0.14em; }
.turnout-said { margin: 0; max-width: 30rem; font-size: calc(var(--step-body) * 1.15); }
.turnout-mail { margin: 0; }
.turnout .ask-link { overflow-wrap: anywhere; font-size: clamp(1rem, 0.55rem + 1.9vw, 1.9rem); }
.turnout .ask-link .spike { flex: none; }

/* The large picture: a dialog the script writes */
.looking {
  width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: 0; overflow: auto;
  background: var(--tone-olive); color: var(--tone-soil);
}
.looking::backdrop { background: rgb(7 10 5 / 0.84); }
.looking-photo { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: var(--tone-soil); }
.looking-line { margin: 0; padding: 0.7rem 1rem; font-size: var(--step-small); }
.looking-shut {
  display: block; margin: 0 0 0 auto; min-height: 2.75rem; padding: 0 1rem;
  border: 0; background: none; cursor: pointer;
  font: 600 1rem/1 var(--face-text);
  text-decoration: underline; text-decoration-color: var(--tone-tape);
  text-decoration-thickness: 0.14em; text-underline-offset: 0.25em;
}
