/* The Full Tables Project: campaign page, terms, and additions to the quiz for its application.
   Three colours per composition: Ink, Parchment and Lapis, with Lapis as an accent only
   (dots, numbers, the serif turn in a heading on Parchment, the primary button). Dark panels
   are Ink. html takes the footer's Ink so iOS overscroll below the footer shows Ink, not white;
   body keeps an explicit Parchment. */

html:has(body[data-page=campaign]), html:has(body[data-page=quiz]) { background: var(--ink); }
body[data-page=campaign] { background: var(--paper); color: var(--ink); }
body[data-page=campaign] .main { padding-top: 0; }

/* staging-only gap marker; the production build refuses to render while any remain */
.ft-tbc { background: transparent; color: inherit; border: 1px dashed currentColor; padding: 0 .35em; font-style: italic; opacity: .8; }

/* ---- header and footer (the landing chrome, styled here because vsl.css is not loaded) ---- */
body[data-page=campaign] .landing-header { padding: 22px var(--gutter); background: var(--ink); display: flex; }
body[data-page=campaign] .landing-header img { width: 112px; height: auto; filter: brightness(0) invert(.94); }
body[data-page=campaign] .landing-footer { background: var(--ink); color: var(--paper); padding: 26px var(--gutter); border-top: 1px solid rgba(238,230,216,.14); }
body[data-page=campaign] .landing-footer .inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; font-size: 10px; opacity: .6; }
body[data-page=campaign] .landing-footer img { width: 62px; height: auto; filter: brightness(0) invert(.94); }
body[data-page=campaign] .landing-footer .legal { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
body[data-page=campaign] .landing-footer a:hover { text-decoration: underline; }

/* ---- hero ---- */
.ft-hero { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px,5vw,80px); padding: clamp(40px,7vh,90px) var(--gutter) clamp(56px,8vh,100px); align-items: center; }
.ft-kicker { opacity: .8; margin-bottom: clamp(24px,4vh,40px); }
.ft-hero h1 { font-size: clamp(40px,5.2vw,84px); line-height: 1.03; letter-spacing: -.05em; max-width: 15ch; }
.ft-hero h1 .serif { display: block; margin-top: .12em; }
.ft-lede { margin-top: clamp(24px,3.4vh,36px); font-size: 17px; line-height: 1.6; max-width: 54ch; opacity: .86; }
.ft-hero .button, .ft-close .button.on-ink { background: var(--paper); color: var(--ink); }
.ft-hero .button:hover, .ft-close .button.on-ink:hover { background: var(--white); color: var(--ink); }
.ft-hero .text-link { border-color: rgba(238,230,216,.6); }
.ft-hero .text-link:hover { color: var(--white); }
.ft-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: clamp(32px,5vh,52px) 0 0; max-width: 680px; }
.ft-facts div { border-top: 1px solid rgba(238,230,216,.28); padding-top: 12px; min-width: 0; }
.ft-facts dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.ft-facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.35; }
.ft-note { margin-top: 22px; font-size: 13px; opacity: .7; }
.ft-hero-media { justify-self: end; width: 100%; max-width: 420px; }
.ft-hero-media .media-film { width: 100%; margin: 0; }
.ft-hero-media .film-window { border-radius: 14px; overflow: hidden; }
.ft-hero-media video { width: 100%; height: auto; display: block; }
.ft-hero strong { font-weight: 500; }

/* photo strip: one row on desktop, a swipeable row on phones */
.ft-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; padding: 10px; background: var(--ink); }
.ft-strip .media-photo { margin: 0; }
.ft-strip .photo-window { aspect-ratio: 3/4; overflow: hidden; }
.ft-strip img { width: 100%; height: 100%; object-fit: cover; }
.ft-founder { margin-top: 32px; }
.ft-founder .media-photo, .ft-strip .media-photo { margin: 0; width: 100%; max-width: none; }
.ft-founder .photo-window { aspect-ratio: 3/2; overflow: hidden; }
.ft-founder img { width: 100%; height: 100%; object-fit: cover; }
.ft-founder .ft-small { margin-top: 12px; }
.ft-sub { font-size: 20px; margin: 40px 0 16px; }
.ft-films { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.ft-films .media-film { margin: 0; min-width: 0; }
.ft-films .film-window { border-radius: 10px; overflow: hidden; }
.ft-films video { width: 100%; height: auto; display: block; }
.ft-films figcaption { font-size: 11px; margin-top: 8px; display: flex; justify-content: space-between; opacity: .7; }
.ft-band { height: clamp(220px,38vw,520px); overflow: hidden; }
.ft-band .media-photo, .ft-band .photo-window { margin: 0; height: 100%; width: 100%; max-width: none; aspect-ratio: auto; }
.ft-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---- content blocks ---- */
.ft-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px,8vw,140px); padding: clamp(56px,9vh,96px) var(--gutter); border-bottom: 1px solid var(--line); }
.ft-block > header .eyebrow { margin-bottom: 20px; }
.ft-block > header .num { color: var(--lapis); margin-right: 14px; }
.ft-block h2 { font-size: clamp(32px,3.5vw,54px); max-width: 15ch; }
.ft-block h2 .serif, .ft-close h2 .serif { display: block; }
.ft-block h2 .serif { color: var(--lapis); }
.ft-body { min-width: 0; max-width: 760px; font-size: 16px; }
.ft-body > p + p { margin-top: 1em; }
.ft-list { list-style: none; padding: 0; margin: 0; }
.ft-list li { padding: 16px 0 16px 28px; border-top: 1px solid var(--line); margin: 0; position: relative; font-size: 15px; line-height: 1.55; }
.ft-list li:last-child { border-bottom: 1px solid var(--line); }
.ft-list li:before { content: ''; position: absolute; left: 2px; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--lapis); }
.ft-list strong { font-weight: 500; }
.ft-small { margin-top: 22px; font-size: 13px; opacity: .72; }
.ft-small a { text-decoration: underline; }
.ft-two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.ft-two h3 { font-size: 20px; margin-bottom: 16px; }
.ft-criteria { list-style: none; counter-reset: c; padding: 0; margin: 0 0 30px; }
.ft-criteria li { counter-increment: c; display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); margin: 0; }
.ft-criteria li:before { content: '0' counter(c); grid-row: 1 / 3; font-family: Georgia, serif; font-size: 26px; color: var(--lapis); line-height: 1; }
.ft-criteria h3 { font-size: 20px; margin: 0 0 6px; }
.ft-criteria p { font-size: 14px; }
.ft-timeline { margin: 34px 0 0; display: grid; gap: 0; }
.ft-timeline div { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ft-timeline div:last-child { border-bottom: 1px solid var(--line); }
.ft-timeline dt { opacity: .7; }
.ft-timeline dd { margin: 0; font-weight: 500; }
.ft-steps { list-style: none; padding: 0; margin: 0; }
.ft-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.ft-steps span { font-size: 12px; color: var(--lapis); padding-top: 3px; }
.ft-steps p { font-size: 15px; }
.ft-body details summary { font-size: 17px; }

/* ---- closing panel ---- */
.ft-close { background: var(--ink); color: var(--paper); padding: clamp(64px,11vh,120px) var(--gutter); }
.ft-close .eyebrow { opacity: .75; margin-bottom: 28px; }
.ft-close h2 { font-size: clamp(36px,4.6vw,72px); max-width: 18ch; }
.ft-close .ft-small { opacity: .65; }

/* ---- terms ---- */
.ft-terms { padding: clamp(40px,7vh,80px) var(--gutter) clamp(60px,9vh,110px); max-width: 980px; }
.ft-terms > .eyebrow { margin-bottom: 26px; }
.ft-terms h1 { font-size: clamp(36px,4.4vw,64px); line-height: 1.05; }
.ft-terms h1 .serif { color: var(--lapis); }
.ft-terms-list { list-style: none; counter-reset: t; padding: 0; margin: 46px 0 0; }
.ft-terms-list li { counter-increment: t; border-top: 1px solid var(--line); padding: 24px 0; margin: 0; }
.ft-terms-list h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.ft-terms-list h2:before { content: counter(t) '.'; color: var(--lapis); margin-right: 12px; }
.ft-terms-list p { font-size: 15px; max-width: 72ch; }
.ft-terms-list a { text-decoration: underline; }

/* ---- application additions (quiz.css does the rest) ---- */
.ft-quiz .quiz-field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(238,230,216,.34); background: transparent; color: var(--paper); padding: 12px 2px; font-size: 16px; resize: vertical; min-height: 84px; }
.ft-quiz .quiz-field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.ft-quiz .ft-wide { grid-column: 1 / -1; }
.ft-quiz .quiz-question .serif { display: block; }
.ft-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(26px,4vh,40px); max-width: 760px; }
.ft-numbers > div { border-top: 1px solid rgba(238,230,216,.3); padding-top: 16px; }
.ft-figure { display: block; font-family: Georgia, serif; font-size: clamp(44px,6vw,80px); line-height: 1; letter-spacing: -.04em; }
.ft-numbers p { margin-top: 10px; font-size: 14px; opacity: .75; max-width: 28ch; }
.ft-caveat { font-size: 13px; }
.ft-result .actions .button { background: var(--paper); color: var(--ink); }

@media (max-width: 900px) {
  .ft-hero { grid-template-columns: 1fr; }
  .ft-hero-media { justify-self: start; max-width: 360px; }
  .ft-strip { grid-template-columns: repeat(6, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .ft-strip .media-photo { scroll-snap-align: start; }
  .ft-block { grid-template-columns: 1fr; gap: 28px; }
  .ft-block h2 { max-width: 20ch; }
}
@media (max-width: 600px) {
  body[data-page=campaign] .landing-footer .legal { margin-left: 0; }
  .ft-hero h1 { font-size: clamp(36px,10.4vw,48px); }
  .ft-lede { font-size: 15px; }
  .ft-hero .actions { flex-direction: column; align-items: flex-start; }
  .ft-facts { grid-template-columns: 1fr; gap: 0; }
  .ft-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; }
  .ft-facts dd { margin: 0; text-align: right; font-size: 14px; }
  .ft-block h2 { font-size: 34px; }
  .ft-two { grid-template-columns: 1fr; }
  .ft-timeline div { grid-template-columns: 1fr; gap: 4px; }
  .ft-numbers { grid-template-columns: 1fr; }
  .ft-strip { grid-template-columns: repeat(6, 64vw); }
  .ft-films { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .ft-films .media-film { scroll-snap-align: start; }
  .ft-hero-media { max-width: 100%; }
  .ft-close h2 { font-size: 36px; }
}
