/* Restore the Original Editions
   Layout, scale and palette taken from safe.ai/work/statement-on-ai-risk.
   Their typefaces (Seasonsans, Seasonmix, Jjannon) are licensed and not public;
   substituted with the closest open equivalents. Their system:
   body copy sans, headings serif at weight 400, white ground, grey scale below,
   containers at 48 / 60 / 70rem. */

:root {
  /* their grey scale, verbatim */
  --gray-900: #1a1c1f;
  --gray-800: #2b2e33;
  --gray-700: #3c4047;
  --gray-600: #515761;
  --gray-500: #727885;
  --gray-400: #b2b7c2;
  --gray-300: #d2d6dd;
  --gray-200: #ebedf0;
  --gray-100: #f5f5f7;
  --gray-25:  #fafbfd;
  --white:    #ffffff;

  --bg:     var(--white);
  --bg-2:   var(--gray-100);
  --ink:    var(--gray-900);
  --ink-2:  var(--gray-700);
  --ink-3:  var(--gray-500);
  --line:   var(--gray-200);
  --line-2: var(--gray-300);
  --accent: #8c1c13;
  --ok:     #2c5c3a;

  /* headings serif · body sans · data mono */
  --display: 'Source Serif 4', Georgia, serif;
  --text:    'Inter', Arial, -apple-system, system-ui, sans-serif;
  --ui:      'Inter', Arial, -apple-system, system-ui, sans-serif;
  --mono:    'Inconsolata', ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #0d0e10;
    --bg-2:   #17191c;
    --ink:    #f0f1f3;
    --ink-2:  #b2b7c2;
    --ink-3:  #838996;
    --line:   #26282c;
    --line-2: #3a3d43;
    --accent: #e0705c;
    --ok:     #7fb98f;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--text);
  font-size: 17px; line-height: 1.65;
  letter-spacing: -.003em;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--accent); }
::selection { background: rgba(140,28,19,.14); }

/* ── containers ─────────────────────────────────────── */

.container { max-width: 70rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.narrow    { max-width: 48rem;  margin-left: auto; margin-right: auto; }

/* ── masthead ───────────────────────────────────────── */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ui); font-size: .8125rem;
}
.nav a { text-decoration: none; }
.nav .brand { font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-right .item { color: var(--ink-3); }
.nav-right .item:hover { color: var(--ink); }

.lang { display: inline-flex; border: 1px solid var(--line-2); }
.lang a { padding: .3rem .55rem; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.lang a + a { border-left: 1px solid var(--line-2); }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.lang a:hover:not([aria-current="true"]) { color: var(--ink); }

/* ── hero ───────────────────────────────────────────── */

.hero { text-align: center; padding: clamp(3.5rem, 9vw, 6.5rem) 0 0; }

h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 1.7rem + 3vw, 3.75rem);
  line-height: 1.08; letter-spacing: 0;
  text-wrap: balance;
}

.subhead {
  font-family: var(--ui); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  color: var(--ink-3); margin-top: 1.1rem; line-height: 1.5;
  max-width: 34rem; margin-left: auto; margin-right: auto;
  text-wrap: balance;
}

/* ── the statement, isolated in its own container ───── */

.statement-box {
  max-width: 60rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.statement {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.6rem);
  line-height: 1.1; letter-spacing: 0;
  text-wrap: balance;
}
.statement-meta {
  margin-top: 1.5rem; padding-top: 1.15rem; border-top: 1px solid var(--line);
  font-family: var(--ui); font-size: .6875rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.9;
}
.statement-meta .hash { text-transform: none; letter-spacing: 0; word-break: break-all; }

.cta-row {
  display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* ── buttons ────────────────────────────────────────── */

.btn {
  font-family: var(--ui); font-size: .875rem; font-weight: 600;
  padding: .78rem 1.5rem; border-radius: 2px; cursor: pointer;
  color: var(--bg); background: var(--ink); border: 1px solid var(--ink);
  text-decoration: none; display: inline-block; transition: background .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-ghost { color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--ink); }

/* ── section rhythm ─────────────────────────────────── */

section { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }

.section-title {
  font-family: var(--ui); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: .75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

h2.big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);
  line-height: 1.1; letter-spacing: 0; margin-bottom: 1.25rem;
  text-wrap: balance;
}

p + p { margin-top: 1em; }
.lede { color: var(--ink-2); }
.doc { font-family: var(--display); font-size: 1.1875rem; line-height: 1.55; }
.doc p { text-wrap: pretty; }
.doc .undersigned { margin-top: 1.8em; font-style: italic; color: var(--ink-2); }

.fine {
  font-family: var(--ui); font-size: .78125rem; line-height: 1.7; color: var(--ink-3);
}
.fine a { color: var(--ink-2); }
.fine .hash { word-break: break-all; font-size: .9em; }

/* ── tally ──────────────────────────────────────────── */

.tally { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.tally .n {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1;
  letter-spacing: -.03em; display: block;
}
.tally .of {
  font-family: var(--ui); font-size: .875rem; color: var(--ink-3);
  margin-top: .85rem; display: block; line-height: 1.6;
  max-width: 32rem; margin-left: auto; margin-right: auto;
}

/* ── signatory grid, grouped, with affiliations ─────── */

.group { margin-bottom: 2.75rem; }
.group-head {
  display: flex; align-items: baseline; gap: .75rem;
  border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.25rem;
}
.group-name {
  font-family: var(--ui); font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
.group-n {
  font-family: var(--ui); font-size: .75rem; color: var(--ink-3);
  margin-left: auto; font-variant-numeric: tabular-nums;
}

.names {
  display: grid; gap: 1.15rem 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.names li { list-style: none; }
.names .who { font-size: .9375rem; font-weight: 500; line-height: 1.3; display: block; }
.names .aff {
  display: block; font-family: var(--ui); font-size: .75rem;
  color: var(--ink-3); margin-top: .18rem; line-height: 1.4;
}

.show-more { margin-top: 1.5rem; text-align: center; }

/* ── record tables ──────────────────────────────────── */

.scroll { overflow-x: auto; }

table.ledger { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: .8125rem; }
table.ledger th {
  text-align: left; font-weight: 600; font-size: .6875rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 1.25rem .6rem 0; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.ledger td {
  padding: .85rem 1.25rem; padding-left: 0; border-bottom: 1px solid var(--line);
  vertical-align: top; color: var(--ink-2); line-height: 1.55;
}
table.ledger td:first-child { color: var(--ink); font-weight: 500; }
table.ledger .d { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.ledger .pending {
  font-family: var(--text); font-size: 1rem; color: var(--ink-3);
  padding-top: 1.25rem; line-height: 1.55;
}

.st { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; }
.st.signed { color: var(--ok); }
.st.declined, .st.silent { color: var(--accent); }
.st.waiting { color: var(--ink-3); }

.criterion {
  border-left: 3px solid var(--accent); padding-left: 1.1rem;
  margin: 1.5rem 0; color: var(--ink-2);
}

/* ── sign-up block ──────────────────────────────────── */

.signup {
  max-width: 48rem; border: 1px solid var(--line-2); background: var(--bg-2);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 auto;
}
.signup h2 {
  font-family: var(--display); font-weight: 400; font-size: 1.75rem;
  line-height: 1.2; margin-bottom: 1.25rem;
}
.row { display: flex; flex-wrap: wrap; gap: .625rem; }
.row > .f { flex: 1 1 12rem; }
.stack { display: grid; gap: .625rem; }

input[type="text"], input[type="email"], select {
  width: 100%; font-family: var(--ui); font-size: .9375rem;
  padding: .72rem .85rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 2px; appearance: none;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
input::placeholder { color: var(--ink-3); }

.more > summary {
  font-family: var(--ui); font-size: .8125rem; color: var(--ink-3);
  cursor: pointer; list-style: none; padding: .6rem 0 .2rem;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+ "; color: var(--accent); }
.more[open] > summary::before { content: "– "; }
.more > summary:hover { color: var(--ink); }
.more-body { display: grid; gap: .625rem; padding-top: .625rem; }

.check {
  display: flex; gap: .55rem; align-items: flex-start;
  font-family: var(--ui); font-size: .8125rem; color: var(--ink-2); line-height: 1.45;
}
.check input { margin-top: .2em; accent-color: var(--accent); }

.attest {
  margin-top: 1.15rem; padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: var(--ui); font-size: .75rem; line-height: 1.7; color: var(--ink-3);
}
.attest a { color: var(--ink-2); }

.form-msg {
  margin-top: 1rem; padding: .85rem 1rem;
  border-left: 3px solid var(--ink-3); background: var(--bg);
  font-family: var(--ui); font-size: .875rem; line-height: 1.5;
}
.form-msg[data-state="ok"]  { border-left-color: var(--ok); }
.form-msg[data-state="err"] { border-left-color: var(--accent); }

/* ── questions ──────────────────────────────────────── */

.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1rem 0;
  font-family: var(--display); font-size: 1.1875rem; display: flex; gap: 1rem; align-items: baseline;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--accent); font-family: var(--ui); }
.qa details[open] summary::after { content: "–"; }
.qa .a { padding-bottom: 1.25rem; color: var(--ink-2); font-size: 1rem; }
.qa .a p + p { margin-top: .85em; }

/* ── verification page ──────────────────────────────── */

.plain h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.5rem;
  line-height: 1.2; margin: 2.5rem 0 .5rem;
}
.plain p { color: var(--ink-2); }

.tech { margin-top: 3.5rem; border-top: 1px solid var(--line-2); padding-top: 1.2rem; }
.tech > summary {
  cursor: pointer; list-style: none;
  font-family: var(--ui); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::before { content: "+ "; color: var(--accent); }
.tech[open] > summary::before { content: "– "; }
.tech-body { padding-top: 1.75rem; }
.tech-body h4 {
  font-family: var(--ui); font-size: .8125rem; font-weight: 600;
  margin: 2rem 0 .5rem; color: var(--ink);
}
.tech-body p { font-size: .9375rem; color: var(--ink-2); }

.mono, code {
  font-family: var(--mono);
  font-size: .78em; word-break: break-all;
}
pre {
  background: var(--bg-2); border: 1px solid var(--line);
  padding: .9rem 1rem; overflow-x: auto; margin: 1rem 0; border-radius: 2px;
}
pre code { font-size: .8125rem; word-break: normal; }

dl.facts { margin: 1.25rem 0; }
dl.facts dt {
  font-family: var(--ui); font-size: .6875rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 1.1rem;
}
dl.facts dd { margin-top: .15rem; font-size: 1rem; }

/* ── footer ─────────────────────────────────────────── */

footer {
  margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line);
  padding: 1.75rem 0 4rem;
  font-family: var(--ui); font-size: .78125rem; color: var(--ink-3); line-height: 1.8;
}
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: .9rem; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* visible, labelled connection field — never buried in a disclosure */
.field-label {
  font-family: var(--ui); font-size: .8125rem; font-weight: 500;
  color: var(--ink-2); display: block; margin-top: .35rem;
}
.field-note {
  font-family: var(--ui); font-size: .75rem; line-height: 1.55; color: var(--ink-3);
}


/* ── the change itself: 1972 against the revision ──── */

.compare {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin-top: 2rem;
}
.ed {
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--gray-400);
  background: var(--bg);
  padding: 1.5rem 1.5rem 1.65rem;
}
.ed-orig { border-top-color: var(--gray-900); }
.ed-rev  { border-top-color: var(--accent); }
.ed figcaption {
  font-family: var(--ui); font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.ed-orig figcaption { color: var(--ink); }
.ed-rev  figcaption { color: var(--accent); }
.ed blockquote {
  font-family: var(--display); font-size: 1.1875rem; line-height: 1.45;
}
.ed blockquote em { font-style: normal; box-shadow: inset 0 -.55em 0 rgba(140,28,19,.1); }
.ed-orig blockquote em { box-shadow: inset 0 -.55em 0 var(--gray-200); }
@media (prefers-color-scheme: dark) {
  .ed blockquote em { box-shadow: inset 0 -.55em 0 rgba(224,112,92,.18); }
  .ed-orig blockquote em { box-shadow: inset 0 -.55em 0 rgba(255,255,255,.09); }
}

/* discreet terms link, and the long legal document */
footer .tiny { font-size: .6875rem; color: var(--ink-3); margin-left: .5rem; }
footer .tiny:hover { color: var(--accent); }

.legal h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.125rem;
  line-height: 1.3; margin: 2.75rem 0 .85rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.legal p { font-size: .96875rem; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: .85em; }
.legal strong { color: var(--ink); font-weight: 600; }

/* signing sits at the top, in the hero, as on the petition sites */
.hero-signup { margin: clamp(1.75rem,4vw,2.5rem) auto 0; text-align: left; }
.hero-signup h2 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.read-it {
  font-family: var(--ui); font-size: .8125rem; margin-top: 1.25rem; color: var(--ink-3);
}
.read-it a { color: var(--ink-2); }
.statement-meta a { color: var(--ink-2); }

/* the author, beside the text of the demand */
.portrait { float: right; width: 12.5rem; margin: .35rem 0 1.25rem 2rem; }
.portrait img {
  display: block; width: 100%; height: auto;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid var(--line-2);
}
.portrait figcaption {
  font-family: var(--ui); font-size: .6875rem; line-height: 1.55;
  color: var(--ink-3); margin-top: .6rem;
}
@media (max-width: 44rem) {
  .portrait { float: none; width: 10rem; margin: 0 auto 1.75rem; }
  .portrait figcaption { text-align: center; }
}
.doc::after { content: ""; display: block; clear: both; }

/* the short account, for a reader who arrives knowing nothing */
.what { text-align: left; max-width: 40rem; margin: 0 auto; padding-top: clamp(2.5rem,6vw,4rem); }
.what h2.big { margin-bottom: 1rem; }
#evidence { padding-top: clamp(2rem,5vw,3rem); }

/* ── hero, tightened ────────────────────────────────── */

.hero { padding-top: clamp(2.25rem, 5vw, 3.5rem); }

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  line-height: 1.06;
}

.statement-box {
  max-width: 44rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: clamp(1.6rem, 3.5vw, 2.25rem) clamp(1.4rem, 3.5vw, 2.5rem) clamp(1.25rem, 3vw, 1.6rem);
}
.statement {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.125rem);
  line-height: 1.18;
  max-width: 26ch; margin: 0 auto;
}
.statement-meta {
  margin-top: 1.15rem; padding-top: .85rem;
  font-size: .75rem; letter-spacing: 0; text-transform: none;
  line-height: 1.6;
}
.statement-meta a { color: var(--ink-2); text-decoration-color: var(--line-2); }

.hero-signup { margin-top: clamp(1.5rem, 3.5vw, 2.25rem); }

/* the short account sits closer to what precedes it */
.what { padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.what h2.big { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); margin-bottom: .85rem; }

/* ── press kit ──────────────────────────────────────── */

.kit-h {
  font-family: var(--display); font-weight: 600; font-size: 1.25rem;
  margin: 3rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}

.kit-link {
  display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.kit-link > div { flex: 1 1 14rem; }
.kit-link .url {
  font-family: var(--display); font-size: 1.5rem; line-height: 1.2; word-break: break-all;
}
.qr { width: 10.5rem; }
.qr img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); }
.qr figcaption {
  font-family: var(--ui); font-size: .6875rem; color: var(--ink-3);
  margin-top: .5rem; text-align: center;
}

.btn.small { font-size: .75rem; padding: .45rem .9rem; width: auto; margin-top: .9rem; }

.snippet { margin: 1.5rem 0; }
.snippet-label {
  font-family: var(--ui); font-size: .6875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: .5rem;
}
.snippet blockquote {
  border-left: 3px solid var(--line-2); background: var(--bg-2);
  padding: 1rem 1.15rem; white-space: pre-wrap;
  font-size: .96875rem; line-height: 1.6; color: var(--ink-2);
}

.kit-imgs { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.kit-imgs figure { width: 10rem; }
.kit-imgs img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); }
.kit-imgs figcaption {
  font-family: var(--ui); font-size: .6875rem; color: var(--ink-3); margin-top: .5rem;
}

.openers { margin: 1.25rem 0 1rem; padding: 0; list-style: none; }
.openers li {
  font-family: var(--display); font-size: 1.125rem; line-height: 1.4;
  padding: .7rem 0 .7rem 1.15rem; border-left: 3px solid var(--line-2);
  margin-bottom: .5rem; color: var(--ink);
}
.openers li:nth-child(odd) { border-left-color: var(--accent); }
