/* ============================================================
   One pager: a single US Letter sheet (8.5 by 11 inches).
   Dark on screen and in the dark PDF. data-theme="print" on
   <html> swaps the role tokens for the Bone background variant.
   The sheet has a fixed size so the PDFs and the PNG are exact;
   on narrow screens the web version reflows instead.
   ============================================================ */

@page { size: 8.5in 11in; margin: 0; }

.op-page { background: #060606; }
[data-theme="print"] .op-page { background: #d9d5cc; }

.op-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; max-width: 816px; margin: 0 auto; padding: 1.25rem 1rem; }
.op-bar__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.op-sheet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 816px;
  height: 1056px;
  margin: 0 auto 3rem;
  padding: 30px 44px 20px;
  background: var(--ia-bg);
  color: var(--ia-text);
  font-size: 12.7px;
  line-height: 1.4;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}

.op-sheet h1, .op-sheet h2, .op-sheet h3 { font-family: var(--ia-font-display); font-weight: 400; text-transform: uppercase; }
.op-sheet h2 { margin-bottom: 6px; font-size: 20px; letter-spacing: 0.07em; line-height: 1; }
.op-sheet h2::before { content: ""; display: inline-block; width: 26px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--ia-accent); }

.op-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 10px; border-bottom: 1px solid var(--ia-line-strong); }
.op-brand { display: flex; align-items: center; gap: 12px; font-family: var(--ia-font-display); font-size: 26px; letter-spacing: 0.1em; line-height: 1; text-transform: uppercase; }
.op-brand img { width: auto; height: 30px; }
[data-theme="print"] .op-brand img { filter: invert(1) brightness(0.1); }
.op-kicker { font-family: var(--ia-font-display); font-size: 17px; letter-spacing: 0.1em; line-height: 1; text-transform: uppercase; }

.op-hook { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 20px; }
.op-hook h1 { font-size: 57px; line-height: 0.9; letter-spacing: 0.004em; }
.op-sub { margin-top: 8px; font-size: 14.8px; font-weight: 500; color: var(--ia-text); }
.op-chair img { width: 100px; height: auto; }
.op-chair__print { display: none; }
[data-theme="print"] .op-chair__dark { display: none; }
[data-theme="print"] .op-chair__print { display: block; }

.op-stats { display: grid; grid-template-columns: 0.72fr 1.5fr 1.12fr; gap: 14px; }
.op-stat { padding-top: 7px; border-top: 3px solid var(--ia-accent); }
.op-stat__num { font-family: var(--ia-font-display); font-size: 45px; line-height: 0.92; letter-spacing: 0.01em; color: var(--ia-accent); white-space: nowrap; }
.op-stat__label { margin-top: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.op-stat__src { margin-top: 3px; font-size: 9.5px; line-height: 1.3; color: var(--ia-text-muted); }

.op-offers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.op-offer { padding: 11px 15px 10px; border: 1px solid var(--ia-line-strong); border-radius: 8px; background: var(--ia-surface); }
.op-offer h3 { font-size: 27px; line-height: 1; letter-spacing: 0.01em; }
.op-offer__meta { margin: 4px 0 6px; font-weight: 700; }
.op-offer__for { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ia-line); }

.op-ticks { display: grid; gap: 2px; }
.op-ticks li { position: relative; padding-left: 17px; }
.op-ticks li::before { content: ""; position: absolute; left: 1px; top: 0.36em; width: 8px; height: 4px; border-left: 2.5px solid var(--ia-accent); border-bottom: 2.5px solid var(--ia-accent); transform: rotate(-45deg); }

.op-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.op-about p + p { margin-top: 3px; }

.op-cta { display: flex; align-items: center; gap: 16px; margin-top: auto; padding: 10px 14px; border-radius: 8px; background: var(--ia-accent); color: var(--ia-bone); }
.op-cta__qr { flex: none; width: 90px; height: 90px; border-radius: 4px; }
.op-cta__copy h2 { margin-bottom: 3px; font-size: 31px; letter-spacing: 0.03em; }
.op-cta__copy h2::before { display: none; }
/* Bone on Ember only at 18.66px bold and up (4.17:1, large text). */
.op-cta__copy p { font-size: 18.8px; font-weight: 700; line-height: 1.22; }
.op-cta__copy strong { font-weight: 800; }

.op-sources { font-size: 8.3px; line-height: 1.32; color: var(--ia-text-muted); }

/* ---------- print and PDF ---------- */
@media print {
  .op-page { background: none !important; }
  .op-page::before { display: none; }
  .op-bar { display: none; }
  .op-sheet { margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- narrow screens: reflow the web version ---------- */
@media screen and (max-width: 860px) {
  .op-sheet { width: auto; height: auto; margin: 0 0.75rem 2rem; padding: 26px 20px; font-size: 15px; gap: 22px; overflow: visible; }
  .op-top { flex-direction: column; align-items: flex-start; }
  .op-hook { grid-template-columns: 1fr; }
  .op-hook h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .op-chair { display: none; }
  .op-stats, .op-offers__grid, .op-lower { grid-template-columns: 1fr; }
  .op-stat__num { white-space: normal; }
  .op-stat__label { font-size: 15px; }
  .op-stat__src { font-size: 15px; }
  .op-sources { font-size: 15px; }
  .op-cta { flex-direction: column; align-items: flex-start; }
  .op-cta__copy { min-width: 0; max-width: 100%; }
  /* The size stays at 18.8px bold: that is what lets Bone on Ember pass contrast. */
  .op-cta__copy p { overflow-wrap: anywhere; }
}
