/* New Consensus AI: New Consensus colours and type. Mobile first; wider layouts at 700/900/1100px.
   The earlier risograph design still lives in tokens.css + site.css (served at /v1). */

:root {
  /* New Consensus palette, taken from newconsensus.com */
  --paper: #FAF9F6;      /* nc-cream */
  --paper-alt: #F2F3F5;  /* nc-smoke */
  --white: #FFFFFF;
  --ink: #191818;        /* nc-dark */
  --ink-light: #4C4949;
  --ink-muted: #7F7A7A;
  --border: #E3E4E6;
  --yellow: #E3FF04;     /* nc-yellow: the one bright accent */
  --periwinkle: #96A2FF; /* nc-blue */
  --violet: #7C3AED;     /* nc-violet */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --text: clamp(17px, 16px + 0.25vw, 19px);
  --gutter: clamp(20px, 4.5vw, 72px);
  --page-max: 1320px;
  --section: clamp(48px, 6vw, 88px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section); }
.band--white { background: var(--white); }
.band--alt { background: var(--paper-alt); }
.band--dark { background: var(--ink); color: var(--paper); }
.band--rule { border-top: 1px solid var(--border); }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* A phrase marked the way New Consensus underlines its headlines */
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); }

.eyebrow {
  display: inline-block;
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  padding-bottom: 6px;
  border-bottom: 3px solid var(--yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.band--dark .eyebrow { color: var(--paper); }

/* Slanted label, the shape of the New Consensus logo */
.tag {
  display: inline-block;
  padding: 5px 12px 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewY(-6deg);
}
.tag--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink-light); border-color: var(--ink-light); color: var(--paper); }
.btn--primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: #D2EC00; border-color: #D2EC00; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--paper); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: clamp(104px, 13vw, 132px); }
.brand__ai {
  padding: 3px 8px 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: skewY(-6deg);
}
.site-nav { order: 3; display: flex; flex-wrap: wrap; gap: 6px 20px; width: 100%; }
.site-nav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.site-header .btn { margin-left: auto; }
@media (min-width: 1000px) {
  .site-header__inner { flex-wrap: nowrap; gap: 32px; padding-block: 16px; }
  .site-nav { order: 0; width: auto; margin-left: auto; gap: 28px; }
  .site-header .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 4vw, 60px) clamp(40px, 5vw, 76px); }
.orb { position: absolute; border-radius: 50%; filter: blur(clamp(40px, 6vw, 96px)); pointer-events: none; }
.orb--yellow { top: -6vw; right: -6vw; width: clamp(240px, 36vw, 520px); aspect-ratio: 1; background: var(--yellow); opacity: 0.55; }
.orb--peri { top: 20vw; right: 16vw; width: clamp(180px, 26vw, 400px); aspect-ratio: 1; background: var(--periwinkle); opacity: 0.5; }
.orb--violet { top: 4vw; right: 30vw; width: clamp(140px, 20vw, 320px); aspect-ratio: 1; background: var(--violet); opacity: 0.22; }
.hero__inner { position: relative; }
/* Each line of the headline is its own block, so it breaks where the copy says it should. */
.hero h1 span { display: block; }
.hero h1 span + span { font-style: italic; }
.hero h1 {
  font-size: clamp(34px, 7.4vw, 88px);
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}
.hero__aside {
  margin-top: clamp(14px, 1.8vw, 22px);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__footer { display: grid; gap: clamp(20px, 2.4vw, 28px); margin-top: clamp(18px, 2.2vw, 26px); }
.hero__lede { max-width: 44ch; font-size: clamp(18px, 17px + 0.5vw, 22px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  /* Room on the right: the buttons sit centred in it, beside the paragraph */
  .hero__footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 4vw, 64px); }
  .hero__footer .actions { flex-direction: column; align-items: center; justify-content: center; }
  .hero__footer .actions .btn { width: 100%; max-width: 280px; }
}

/* ---------- Origin ---------- */
.origin__inner { display: grid; gap: clamp(16px, 2.2vw, 32px); }
.origin h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.06; }
.origin p { max-width: 46ch; color: var(--ink-light); }
@media (min-width: 900px) {
  .origin__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; column-gap: 64px; }
}

/* ---------- Two futures ---------- */
.futures { display: grid; gap: 20px; }
.future { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.6vw, 36px); border: 1px solid var(--border); background: var(--white); }
.future h3 { font-size: clamp(25px, 2.8vw, 36px); font-weight: 700; }
.future p:not(.tag) { color: var(--ink-light); }
.future > .tag { align-self: flex-start; }
.future--dark { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.future--dark p:not(.tag) { color: #D8D6D2; }
@media (min-width: 900px) { .futures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }

/* ---------- The argument: the text, with the refusals beside it on desktop ---------- */
.argument h2 { max-width: 20ch; font-size: clamp(28px, 4.2vw, 52px); font-weight: 800; }
.letter {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: clamp(20px, 2.6vw, 32px);
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid var(--border);
  background: var(--white);
}
.letter__text { display: flex; flex-direction: column; gap: 14px; }
.letter p { font-size: clamp(17px, 16px + 0.4vw, 19px); line-height: 1.62; }
@media (min-width: 900px) {
  .letter { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; column-gap: clamp(32px, 4vw, 56px); }
}

.refusals { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.refusal { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--border); }
.refusal__icon { display: flex; align-items: center; justify-content: center; width: 38px; aspect-ratio: 1; background: var(--yellow); color: var(--ink); }
.refusal__icon svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.refusal b { display: block; font-weight: 700; }
.refusal span { color: var(--ink-light); }

/* ---------- Dark band: the danger, the demand, the questions ---------- */
.danger h2 { max-width: 16ch; font-size: clamp(30px, 5.2vw, 66px); font-weight: 800; text-transform: uppercase; }
.danger h2 em { font-style: normal; color: var(--yellow); }
.danger__text { max-width: 46ch; margin-top: clamp(16px, 2vw, 24px); font-size: clamp(18px, 17px + 0.4vw, 21px); color: #D8D6D2; }

.demand { max-width: 40ch; margin-top: clamp(32px, 4vw, 56px); font-size: clamp(22px, 15px + 1.4vw, 32px); font-weight: 600; line-height: 1.26; }
.demand__if { float: left; margin: 0.04em 0.12em 0 0; color: var(--yellow); font-size: 2.4em; font-weight: 800; line-height: 0.86; }

.questions { margin-top: clamp(36px, 4.4vw, 64px); }
.questions h2 { font-size: clamp(23px, 2.8vw, 36px); font-weight: 700; }
.question-list { display: grid; margin: clamp(18px, 2.4vw, 28px) 0 0; padding: 0; list-style: none; column-gap: 56px; }
.question-list li {
  padding-block: clamp(12px, 1.6vw, 18px);
  border-top: 1px solid rgba(250, 249, 246, 0.2);
  font-size: clamp(17px, 16px + 0.4vw, 20px);
  line-height: 1.35;
}
.question-list li:last-child { border-bottom: 1px solid rgba(250, 249, 246, 0.2); }
@media (min-width: 900px) {
  .question-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
  .question-list li:nth-child(5) { border-bottom: 1px solid rgba(250, 249, 246, 0.2); }
}

/* ---------- Cards, forms ---------- */
.card { max-width: 900px; padding: clamp(20px, 2.8vw, 44px); border: 1px solid var(--border); background: var(--white); }
.card--wide { max-width: 1000px; }
.signup h2 { font-size: clamp(28px, 4.2vw, 52px); font-weight: 800; text-transform: uppercase; }
.signup__lede { margin-top: 14px; max-width: 46ch; color: var(--ink-light); }
.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: clamp(18px, 2.2vw, 28px) 0 0; }
.facts dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.facts dd { margin: 5px 0 0; font-size: clamp(19px, 17px + 0.6vw, 25px); font-weight: 700; }
.facts dd a { overflow-wrap: anywhere; }
.facts--stack { flex-direction: column; gap: 14px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(20px, 2.6vw, 32px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label span, .field__optional { font-weight: 400; color: var(--ink-muted); }
.field__hint { font-size: 14px; color: var(--ink-muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-muted);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
}
.field input { min-height: 50px; padding-block: 0; }
.field select { min-height: 50px; padding-block: 0; }
.field textarea { min-height: 130px; line-height: 1.5; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.form .btn { align-self: flex-start; margin-top: 4px; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; font-weight: 700; }
.form__done { font-size: clamp(20px, 18px + 0.8vw, 28px); font-weight: 700; }
@media (min-width: 700px) {
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Format chips on the session proposal form */
.choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
}
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Inner pages ---------- */
.hero--page h1 { font-size: clamp(32px, 6vw, 72px); }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 46ch; }
.prose h2 { margin-top: 18px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-light); }
.prose a { color: var(--ink); }
.about__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.details { padding: clamp(20px, 2.6vw, 36px); border: 1px solid var(--border); background: var(--paper); }
.details h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
.details .actions { margin-top: clamp(20px, 2.4vw, 28px); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .details .actions { flex-direction: column; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-block: 24px 32px; }
.site-footer__host { display: flex; align-items: center; gap: 14px; }
.site-footer__host span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.site-footer__host img { width: 132px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
.site-footer nav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
