/* ============================================================
   Ambassador Programme — Letter-style landing page
   Reads top to bottom like a private document, not a marketing page.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: 'ss01', 'cv11';
}

::selection { background: var(--igl-blue-400); color: var(--igl-ink); }

a { color: inherit; }

/* Accent override knob -------------------------------------- */
[data-accent="none"] {
  --accent-line: var(--border-strong);
  --accent-mark: var(--fg);
  --accent-rule-h: 1px;
}
[data-accent="blue"] {
  --accent-line: var(--igl-blue-400);
  --accent-mark: var(--igl-blue-400);
  --accent-rule-h: 1px;
}

/* Theme bridges --------------------------------------------- */
[data-theme="light"] {
  /* slight paper warmth instead of dead grey */
  --bg: #f3f1ea;
  --bg-elevated: #ffffff;
  --fg: #14132a;
  --fg-muted: #5a5874;
  --fg-subtle: #8a8aa3;
}
[data-theme="light"][data-accent="blue"] {
  --accent-line: var(--igl-blue-500);
  --accent-mark: var(--igl-blue-500);
}
[data-theme="light"][data-accent="none"] {
  --accent-line: rgba(20,19,42,0.18);
  --accent-mark: var(--fg);
}

/* Page frame ------------------------------------------------- */
.page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
}

.folio {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.folio__left { display: flex; align-items: center; gap: 16px; }
.folio__logo { height: 18px; display: block; opacity: 0.9; }
.folio__center { color: var(--fg); }
.folio__right { text-align: right; }
.folio__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-mark); margin-right: 8px; vertical-align: middle;
}

/* Letter container ------------------------------------------ */
.letter {
  width: 100%;
  max-width: 760px;       /* keeps 60–75 char measure on body */
  margin: 0 auto;
  padding: 88px 48px 120px;
  flex: 1;
}

/* Eyebrow on hero ------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent-line);
  flex-shrink: 0;
}

/* Hero ------------------------------------------------------ */
.hero {
  padding-top: 32px;
  padding-bottom: 72px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 36px;
  color: var(--fg);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--fg);
}
.hero__accent {
  color: var(--accent-mark);
}
[data-accent="none"] .hero__accent { color: var(--fg); }
.hero__sub {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 48px;
  max-width: 56ch;
  text-wrap: pretty;
}

/* CTA button ------------------------------------------------ */
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--igl-blue-400);
  color: var(--igl-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 16px 26px;
  border-radius: 4px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}
.cta:hover { background: var(--igl-blue-300); }
.cta:active { opacity: 0.85; }
[data-accent="none"] .cta {
  background: var(--fg);
  color: var(--bg);
}
[data-accent="none"] .cta:hover { background: var(--fg-muted); }

.cta__arrow {
  display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 180ms var(--ease-standard);
}
.cta__arrow::after {
  content: '';
  position: absolute; right: -1px; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}
.cta:hover .cta__arrow { width: 22px; }

.cta__meta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 0; }

/* Section -------------------------------------------------- */
.sec {
  padding: 72px 0;
  position: relative;
}
.sec + .sec { border-top: 1px solid var(--border); }

.sec__label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 36px;
}
.sec__num {
  color: var(--accent-mark);
}
.sec__rule {
  flex: 1; height: 1px;
  background: var(--border);
}

.sec__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 40px;
  color: var(--fg);
  text-wrap: balance;
  max-width: 22ch;
}

/* Prose body ----------------------------------------------- */
.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 24px;
  max-width: 64ch;
  text-wrap: pretty;
  font-feature-settings: 'kern', 'liga';
}
.prose p:last-child { margin-bottom: 0; }
.prose .muted {
  color: var(--fg-muted);
}

.prose__intro {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 32px;
  max-width: 38ch;
}

/* Numbered items (What you'd be doing / What you get) ------- */
.items {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px 28px;
  align-items: baseline;
}
.item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-subtle);
  padding-top: 6px;
  grid-row: span 2;
}
.item__title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0;
  line-height: 1.3;
}
.item__title::after {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent-line);
  vertical-align: middle;
  margin: 0 0 4px 14px;
}
.item__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}

/* Criteria list (Who this is for) --------------------------- */
.crit {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 24px;
}
.crit li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 62ch;
}
.crit li::before {
  content: '';
  width: 14px; height: 1px;
  background: var(--accent-line);
  position: relative; top: -4px;
}

/* Closing CTA ---------------------------------------------- */
.close {
  padding-top: 88px;
}
.close .sec__h {
  margin-bottom: 32px;
}
.close__cta-row { margin-top: 16px; }

/* Signature ------------------------------------------------ */
.sig {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  max-width: 32ch;
}
.sig__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 16px;
}
.sig__name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.sig__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Bottom rail --------------------------------------------- */
.colophon {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.colophon a { color: inherit; text-decoration: none; }
.colophon a:hover { color: var(--fg); }

/* Mobile -------------------------------------------------- */
@media (max-width: 720px) {
  .folio { padding: 20px 24px; grid-template-columns: 1fr 1fr; font-size: 10px; gap: 12px; }
  .folio__center { display: none; }
  .letter { padding: 56px 24px 88px; }
  .colophon { padding: 24px; font-size: 10px; }
  .hero { padding-top: 8px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero__sub { font-size: 17px; margin-bottom: 36px; }
  .sec { padding: 56px 0; }
  .sec__h { font-size: clamp(26px, 7vw, 32px); margin-bottom: 32px; }
  .item { grid-template-columns: 1fr; gap: 8px; }
  .item__num { padding-top: 0; }
  .item__title::after { display: none; }
  .items { gap: 44px; }
  .crit li { grid-template-columns: 1fr; gap: 4px; }
  .crit li::before { display: none; }
  .cta__meta { margin-left: 0; width: 100%; }
}

/* Print --------------------------------------------------- */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .folio, .colophon, .tweaks-fab, .tweaks-panel { display: none !important; }
  .letter { padding: 24px 0; max-width: 100%; }
  .cta { background: #000 !important; color: #fff !important; }
  .sec + .sec { border-top-color: rgba(0,0,0,0.2); }
}
