/* Hot Stars: /contract, the agreement annotated.
   Loaded only by contract.html, after styles.css and broadsheet.css (which bring the tokens, the drawn rules, the
   letters and the column reveal). Everything here is prefixed .ct-, so the home page can't change.
   Shape of the page: a folio and headline like an inside page, a short ledger of the terms beside the standfirst,
   the six clauses as numbered rows with a note in the margin, the checklist as a clip-out box on sand, a short
   two-column article, the letters, and an ink band that points back to the classified on the front page. */

/* ---------- Head: folio, headline, standfirst and the ledger ---------- */
.ct-head { padding: 0 0 44px; border-bottom: 1px solid var(--ink); }
.ct-folio {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: 6px;
  font: 700 .62rem/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ct-folio p:last-child { color: var(--red-ink); text-align: right; }
.ct-folio::after { /* the double rule, as on the front page */
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 7px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  pointer-events: none;
}
.ct-title {
  max-width: 15ch;
  padding: 34px 0 0;
  font-size: clamp(2.5rem, 11vw, 6.6rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.05em;
}
.ct-head__below { display: grid; gap: 32px; margin-top: 28px; }
.ct-dateline { margin-bottom: 14px; font: 700 .66rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-stand { max-width: 38rem; font-size: 1.24rem; line-height: 1.48; color: var(--ink-2); }
.ct-caveat {
  max-width: 38rem;
  margin-top: 22px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  font-size: 1.02rem;
  color: var(--ink-2);
}
.ct-caveat strong { font-family: var(--sans); font-weight: 700; color: var(--ink); }

.ct-ledger { border-top: 2px solid var(--ink); padding-top: 12px; }
.ct-ledger__title { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ct-ledger dl { margin-top: 4px; }
.ct-ledger dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .96rem;
}
.ct-ledger dt { flex: none; color: var(--muted); }
.ct-ledger dd { margin: 0; font-weight: 600; text-align: right; }

@media (min-width: 480px) {
  .ct-folio { font-size: .66rem; letter-spacing: .14em; }
}
@media (min-width: 1024px) {
  .ct-head { padding-bottom: 72px; }
  .ct-folio { margin-top: 18px; }
  .ct-title { padding-top: 52px; }
  .ct-head__below { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: end; margin-top: 44px; }
  .ct-stand { font-size: 1.36rem; }
}

/* ---------- Part labels ---------- */
.ct-kicker { margin-bottom: 14px; font: 700 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.ct-part .sec-head p.ct-kicker { max-width: none; justify-self: auto; color: var(--red-ink); font-size: .7rem; }

/* ---------- Part one: the clauses, each with a note in the margin ---------- */
.ct-clauses { --rl-w: 2px; }
.ct-clause {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.ct-clause__no { grid-row: span 2; font: 800 1.5rem/1.05 var(--sans); letter-spacing: -.03em; color: var(--red); }
.ct-clause__text h3 { font-size: 1.45rem; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.ct-clause__text p { margin-top: 8px; color: var(--ink-2); }
.ct-clause__note {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 1px solid var(--ink);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
}
.ct-clause__note span {
  display: block;
  margin-bottom: 4px;
  font: normal 700 .66rem/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 900px) {
  .ct-clause { grid-template-columns: 88px minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 40px; padding: 34px 0 36px; align-items: start; }
  .ct-clause__no { grid-row: auto; font-size: 2.3rem; }
  .ct-clause__text h3 { font-size: 1.7rem; }
  .ct-clause__note { margin-top: 4px; padding-left: 22px; border-left-color: var(--col-rule); }
}
@media (min-width: 1280px) {
  .ct-clause { grid-template-columns: 120px minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 56px; }
  .ct-clause__no { font-size: 2.8rem; }
}

/* ---------- Part two: the checklist as a clip-out box ---------- */
.ct-clip {
  position: relative;
  margin-top: 10px;
  padding: 34px 18px 10px;
  border: 1.5px dashed var(--ink);
  background: var(--paper);
}
.ct-clip__tab {
  position: absolute;
  top: 0;
  left: 18px;
  transform: translateY(-50%);
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  font: 700 .7rem/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ct-checks li {
  position: relative;
  padding: 16px 0 18px 40px;
  border-bottom: 1px solid var(--rule);
}
.ct-checks li:last-child { border-bottom: 0; }
.ct-checks li::before { /* an empty box to tick, as on a printed form */
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.ct-checks h3 { display: inline; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.ct-checks p { display: inline; color: var(--ink-2); }
@media (min-width: 900px) {
  .ct-clip { padding: 44px 40px 18px; }
  .ct-clip__tab { left: 40px; }
  .ct-checks { columns: 2; column-gap: 56px; }
  .ct-checks li { break-inside: avoid; }
  .ct-checks li:last-child { border-bottom: 1px solid var(--rule); }
}

/* ---------- The short article ---------- */
.ct-article { display: grid; gap: 22px; }
.ct-article h2 { font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.ct-article__copy p + p { margin-top: 14px; }
.ct-article__copy p { color: var(--ink-2); }
.ct-article__copy p:first-child::first-letter {
  float: left;
  margin: .08em .1em 0 0;
  font: 900 3.4em/.8 var(--sans);
  letter-spacing: -.04em;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .ct-article { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 72px; align-items: start; }
  .ct-article__copy { columns: 2; column-gap: 48px; column-rule: 1px solid var(--col-rule); }
  .ct-article__copy p { break-inside: avoid-column; }
}

/* ---------- The ink band at the end ---------- */
.ct-end { padding: 56px 0 64px; background: var(--ink); color: var(--paper); }
.ct-end__grid { display: grid; gap: 26px; }
.ct-end__kicker { margin-bottom: 14px; font: 700 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); }
.ct-end__title { font-size: clamp(2.4rem, 10vw, 5rem); line-height: .94; letter-spacing: -.05em; }
.ct-end__body p { max-width: 30rem; font-size: 1.15rem; color: rgba(243, 239, 230, .85); }
.ct-end__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }
.ct-end__actions .btn { flex: 1 1 100%; }
.ct-end__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(243, 239, 230, .35);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .ct-end__link:hover { text-decoration-color: var(--paper); }
}
@media (min-width: 640px) {
  .ct-end__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1024px) {
  .ct-end { padding: 96px 0 104px; }
  .ct-end__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; }
}

/* The page's footer sits straight under the ink band. */
.ct + .foot .foot__legal { padding-top: 22px; border-top: 0; }
