/* About - the intake sheet. Order: layout, type, colour, motion. The sheet's rules are ruled in by .ruling_set in site.js. */

/* ============ LAYOUT ============ */

.opening_title { overflow-wrap: anywhere; }

.trade_split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--measure-space) calc(var(--measure-space) * 1.5); align-items: start; }
.trade_mount { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; }
.refusal_mount { position: relative; width: 100%; aspect-ratio: 3 / 2; }
.trade_mount img, .refusal_mount img { position: absolute; inset: 0; width: 100%; height: 100%; }

.shelf_head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0.75rem calc(var(--measure-space) * 1.5); align-items: end; }
.shelf_head .shelf_title { max-inline-size: 11ch; }

/* The sheet: three lines, each question | why | what we write down. */
.sheet_list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.sheet_line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.75rem calc(var(--measure-space) * 1.25); align-items: start; padding-bottom: var(--measure-entry); }
.sheet_ask { display: flex; gap: 0.75rem; align-items: flex-start; }
.sheet_ask .tick_marker { flex: none; margin-top: 0.625rem; }
.sheet_note { align-self: start; max-width: none; }
.sheet_note p + p { margin-top: 0.25rem; }

/* Who sends us parts: one ledger row, cells spanning 2-2-2 then 3-3. */
.sender_list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 1.5rem 0 0; padding: 0; }
.sender_item { grid-column: span 2; border-top: var(--measure-rule) solid; padding: 0.875rem 1rem 1.25rem 0; }
.sender_item:nth-child(n+4) { grid-column: span 3; }
.sender_item:nth-child(2), .sender_item:nth-child(3), .sender_item:nth-child(5) {
  border-left: var(--measure-rule) solid; padding-left: 1rem; }
.sender_item p { margin-top: 0.375rem; max-width: 52ch; }

/* What we won't say */
.refusal_split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--measure-space) calc(var(--measure-space) * 1.5); align-items: start; }
.refusal_text .shelf_title { max-inline-size: 11ch; }
.refusal_text .shelf_line { margin-top: 0.75rem; }
.refusal_entry { margin-top: 1.25rem; border-top: var(--measure-rule) solid; padding-top: 0.875rem; }
.refusal_entry:first-of-type { margin-top: 1.5rem; }

/* The owner's words: a plain ruled entry. */
.owner_quote { margin: 1rem 0 0; padding: 0; columns: 2; column-gap: calc(var(--measure-space) * 2);
  column-rule: var(--measure-rule) solid; }
.owner_quote p { break-inside: avoid; }
.owner_quote p + p { margin-top: 0.875rem; }

.closing_row { border-bottom: 0; }
.closing_row .action_row { margin-top: 0; }

@container entry_column (max-width: 62rem) {
  .sheet_line { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .sheet_note { grid-column: 2; }
}
@container entry_column (max-width: 48rem) {
  .sender_list { grid-template-columns: 1fr; }
  .sender_item:nth-child(n) { grid-column: auto; border-left: 0; padding-left: 0; }
  .refusal_split { grid-template-columns: 1fr; }
  .owner_quote { columns: 1; }
}
@container entry_column (max-width: 40rem) {
  .trade_split { grid-template-columns: 1fr; }
  .trade_figure { order: -1; }
  .trade_mount { aspect-ratio: 1; }
  .shelf_head { grid-template-columns: 1fr; }
  .sheet_line { grid-template-columns: 1fr; }
  .sheet_note { grid-column: auto; }
}

/* ============ TYPE ============ */

.trade_note { font-size: clamp(1.375rem, 1rem + 1.3vw, 1.875rem); font-weight: 500; line-height: 1.3; }
.shelf_line { font-size: var(--step-entry); line-height: 1.4; max-width: 52ch; }
.sheet_question { font-family: var(--face-slab); font-weight: 900; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  line-height: 1.1; letter-spacing: -0.01em; }
.sheet_label { font-size: var(--step-small); font-weight: 600; line-height: 1.3; }
.sheet_note p:last-child { font-size: 1rem; line-height: 1.45; }
.sheet_why { max-width: 60ch; }
.sender_item p, .refusal_entry .entry_text { font-size: var(--step-body); line-height: 1.5; }
.owner_quote { font-size: var(--step-entry); line-height: 1.45; }
#owner_heading { font-size: var(--step-title); }

/* ============ COLOUR ============ */

.sheet_question { color: var(--tone-paper); }
.sender_item, .refusal_entry, .owner_quote { border-color: var(--tone-aubergine); }

/* Pinned things stand on their own solid ground, so the page passes beneath them.
   The site sheet clears these grounds with !important and paints them on a pseudo-element only,
   so each is set here with a stronger selector. The ground is clipped to the content box:
   the punched scallops in the padding stay cut by the masked pseudo-element beneath. */
html nav.bookmark_strip { background-color: var(--tone-cyan) !important; background-clip: content-box !important; }
html nav.bookmark_strip .bookmark_pull,
html nav.bookmark_strip .bookmark_links,
html nav.bookmark_strip .bookmark_links a { background-color: var(--tone-cyan) !important; color: var(--tone-aubergine); }

/* The consent sheet is pinned on the phone only: there it and every piece of text it carries
   stand on opaque plum. On the desk it is a band in the flow and keeps its paper plate. */
@media (max-width: 40rem) {
  html #storage { background-color: var(--tone-plum) !important; background-clip: content-box !important; }
  html #storage .consent_text,
  html #storage .consent_text span,
  html #storage .consent_text a,
  html #storage .consent_choices { background-color: var(--tone-plum) !important; }
}

/* The phone's call tag is pinned over the number rail: an opaque cyan ground of its own,
   so the footer's text passes beneath it and never shows through. */
.call_tag { background-color: var(--tone-cyan); color: var(--tone-aubergine); }

/* ============ MOTION ============ */

/* Mechanical only: a line's tick shows up in the same step as its rule (state set by .ruling_set in site.js). */
.js .sheet_line[data-state="blank"] .tick_marker { visibility: hidden; }
