:root {
  --cover-red: #f73b29;
  --paper: #f7f4f0;
  --ink: #141414;

  --refusal: #c22a1d;
  --refusal-tint: rgba(194, 42, 29, 0.08);

  /* Spacing scale (8px base) */
  --space-1: 0.5rem; /* 8 */
  --space-2: 1rem;   /* 16 */
  --space-3: 1.5rem; /* 24 */
  --space-4: 2rem;   /* 32 */
  --space-5: 3rem;   /* 48 */
  --space-6: 4rem;   /* 64 */

  /* Single width system (cover and body aligned) */
  --wrap: 1320px;
  --pad-mobile: 18px;
  --pad-desktop: 20px;

  /* Grid gutter */
  --gutter: 22px;
}

* { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--cover-red);
  color: var(--ink);
  font-family: "Host Grotesk", sans-serif;
  font-feature-settings: "liga", "kern";
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 160ms ease-out;
}

::selection { background-color: #000; color: #fff; }

/* =========================
   STRUCTURE
   ========================= */

.cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--cover-red);
  color: var(--ink);
  transition: background-color 160ms ease-out;
}

#cover-meta { margin-top: auto; }

/* Body stage sits on paper */
.content-stage {
  background-color: var(--paper);
  color: var(--ink);
}

/* One wrapper for everything */
.wrapper {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-mobile);
}

@media (min-width: 768px) {
  .wrapper { padding-inline: var(--pad-desktop); }
}

/* Keep wrapper--cover from becoming a second system */
.wrapper--cover { max-width: var(--wrap); }

/* Grid */
.page-grid {
  display: grid;
  grid-auto-rows: min-content;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* =========================
   COVER
   ========================= */

.manifesto-header {
  height: 72vh;
  height: 72dvh;
  display: grid;
  align-content: start;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .manifesto-header {
    height: 78vh;
    height: 78dvh;
  }
}

.hero-title {
  grid-column: 1 / -1;
  font-size: clamp(56px, 7.6vw, 240px);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* =========================
   SUBTITLE ROW
   ========================= */

.subtitle-block {
  grid-column: 1 / -1;
  padding-top: var(--space-2);
  padding-bottom: var(--space-1);
}

.subtitle-content {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: inherit;
  row-gap: var(--space-1);
  align-items: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: var(--space-2);
}

.subtitle-text {
  grid-column: 1 / -1;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.012em;
}

.subtitle-date {
  grid-column: 1 / -1;
  font-weight: 400;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* =========================
   BODY TYPOGRAPHY
   ========================= */

.section-title {
  grid-column: 1 / -1;
  font-size: clamp(46px, 5.9vw, 150px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;

  /* Give titles more air before body */
  margin-bottom: calc(var(--space-3) + 0.15em);
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: calc(var(--space-4) + 0.1em);
  }
}

/* Body copy: stable block */
.paragraph {
  grid-column: 1 / -1;
  margin-top: 0; /* title owns the gap */
  max-width: none;
  font-weight: 400;
  font-size: clamp(20px, 2.35vw, 36px); /* slightly less “bulky” than 38 */
  letter-spacing: -0.012em;
  line-height: 1.24;
}

/* Titleless preamble needs breathing */
.manifesto-section-titleless .paragraph { margin-top: var(--space-3); }

.paragraph p + p { margin-top: 1.05em; }

.paragraph a {
  color: inherit;
  text-decoration-line: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.05rem;
}

/* =========================
   STATEMENT BLOCK — “LIST” MODE (what you already liked)
   ========================= */

.paragraph > p + .statement-group { margin-top: 0.95em; }
.paragraph > .statement-group + p { margin-top: 1.05em; }

.statement-group {
  border-left: 1px solid currentColor;
  padding-left: var(--gutter);
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

@media (max-width: 767px) {
  .statement-group { padding-left: var(--space-2); }
}

.statement-line {
  margin: 0;
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.statement-line + .statement-line { margin-top: 0.28em; }

/* =========================
   REJECTION BLOCK — animated strike band behind text
   ========================= */

.paragraph > p + .reject-group { margin-top: 0.9em; }
.paragraph > .reject-group + p { margin-top: 1.05em; }

.reject-group { margin-left: 0; }

.reject-line {
  margin: 0;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.24;
  letter-spacing: -0.012em;
}

.reject-fragment {
  display: inline;
  padding: 0 0.01em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(
    rgba(247, 59, 41, 0.82),
    rgba(247, 59, 41, 0.82)
  );
  background-repeat: no-repeat;
  background-position: left 58%;
  background-size: 0% 0.17em;
  transition: background-size 1800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reject-fragment.is-visible {
  background-size: 100% 0.17em;
}

.reject-line + .reject-line { margin-top: 0.35em; }

.reject-group.is-short .reject-fragment {
  background-size: 0% 0.21em;
}

.reject-group.is-short .reject-fragment.is-visible {
  background-size: 100% 0.21em;
}

/* =========================
   UNDERLINE BLOCK — separate element, same color/animation language
   ========================= */

.paragraph > p + .underline-group { margin-top: 0.9em; }
.paragraph > .underline-group + p { margin-top: 1.05em; }

.underline-group { margin-left: 0; }

.underline-line {
  margin: 0;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.24;
  letter-spacing: -0.012em;
  position: relative;
  display: inline-block;
  padding-right: 0.06em;
  padding-bottom: 0.08em;
  background-image: linear-gradient(
    rgba(247, 59, 41, 0.82),
    rgba(247, 59, 41, 0.82)
  );
  background-repeat: no-repeat;
  background-position: left 96%;
  background-size: 0% 0.12em;
  transition: background-size 1800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.underline-line.is-visible,
.underline-fragment.is-visible {
  background-size: 100% 0.12em;
}

/* If inline underline fragments are present, avoid also underlining the whole line */
.underline-line.has-fragment {
  background-image: none;
  background-size: 0 0;
}

.underline-fragment {
  position: relative;
  display: inline-block;
  padding-right: 0.03em;
  padding-bottom: 0.08em;
  background-image: linear-gradient(
    rgba(247, 59, 41, 0.82),
    rgba(247, 59, 41, 0.82)
  );
  background-repeat: no-repeat;
  background-position: left 96%;
  background-size: 0% 0.12em;
  transition: background-size 1800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  background-color: var(--paper);
  border-top: 1px solid currentColor;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
}

.site-footer .wrapper {
  max-width: var(--wrap);
}

.site-footer p {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.site-footer p + p {
  margin-top: 0.35em;
}

/* =========================
   SECTION RHYTHM
   ========================= */

.manifesto-section {
  grid-column: 1 / -1;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  padding-bottom: var(--space-2);
  border-top: 1px solid currentColor;
}

#manifesto-root > .manifesto-section:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: var(--space-5);
}

/* =========================
   TABLET+
   ========================= */

@media (min-width: 768px) {
  .manifesto-header {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .hero-title { grid-column: 1 / span 11; }
  .section-title { grid-column: 1 / span 11; }

  .subtitle-text { grid-column: 1 / span 9; }
  .subtitle-date  {
    grid-column: 10 / span 3;
    align-self: end;
    text-align: right;
  }

  .paragraph { grid-column: 1 / span 10; }
}

/* Late-section downshift */
#manifesto-root .manifesto-section:nth-of-type(n + 4) .section-title {
  font-size: clamp(42px, 5.2vw, 130px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

/* =========================
   RESEARCH & CONTEXT
   ========================= */

#manifesto-root .manifesto-section.section-research {
  margin-top: calc(var(--space-6) + var(--space-2));
  padding-top: var(--space-3);
}

#manifesto-root .manifesto-section.section-research .section-title {
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-transform: none;
  margin-bottom: var(--space-2);
}

#manifesto-root .manifesto-section.section-research .paragraph {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: clamp(12px, 1.05vw, 14px);
  line-height: 1.35;
  letter-spacing: -0.002em;
}

.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 0.7em;
}

.references-item {
  margin: 0;
  padding-left: 1.35em;
  text-indent: -1.35em;
}

.references-citation {
  margin: 0;
  line-height: 1.32;
}

.references-url {
  display: inline-block;
  margin-top: 0.12em;
  font-size: 0.92em;
  line-height: 1.2;
  opacity: 0.9;
  word-break: break-word;
}

.references-item a {
  color: inherit;
  text-decoration-line: underline;
  text-underline-offset: 1px;
  text-decoration-thickness: 0.04rem;
}

/* =========================
   FAQ
   ========================= */

.faq-subsection {
  margin-top: calc(var(--space-6) + var(--space-2));
  padding-top: var(--space-3);
  border-top: 1px solid currentColor;
}

.faq-subtitle {
  margin-bottom: calc(var(--space-3) + 0.05em);
}

.faq-body {
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.34;
  letter-spacing: -0.008em;
}

.faq-item {
  border-top: 1px solid currentColor;
  padding-top: 0.55em;
  padding-bottom: 0.55em;
}

.faq-item:last-child {
  border-bottom: 1px solid currentColor;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-size: 1.06em;
  font-weight: 650;
  line-height: 1.24;
  padding-right: 2.2em;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 500;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  margin-top: 0.55em;
  display: grid;
  row-gap: 0.45em;
  font-size: 0.98em;
  line-height: 1.3;
}

.faq-answer p {
  margin: 0;
}

.faq-bullets {
  margin: 0.1em 0 0 1.2em;
  padding: 0;
}

.faq-bullets li {
  margin: 0;
}

/* =========================
   SIGNUP FORM
   ========================= */

.signup-form {
  margin-top: 0.6em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5em;
  width: min(100%, 680px);
}

.signup-input {
  width: 100%;
  min-height: 2.2em;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.2;
  letter-spacing: inherit;
  padding: 0.45em 0.6em;
}

.signup-input::placeholder {
  color: rgba(20, 20, 20, 0.62);
}

.signup-input:focus-visible {
  outline: 2px solid rgba(247, 59, 41, 0.45);
  outline-offset: 1px;
}

.signup-button {
  min-height: 2.2em;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.2;
  letter-spacing: inherit;
  padding: 0.45em 0.9em;
  white-space: nowrap;
  cursor: pointer;
}

.signup-button:hover,
.signup-button:focus-visible {
  background: rgba(20, 20, 20, 0.05);
}

.signup-status {
  margin: 0.45em 0 0;
  font-size: 0.72em;
  line-height: 1.3;
  letter-spacing: -0.002em;
  display: none;
  opacity: 0.8;
}

.signup-form.is-submitted + .signup-status {
  display: block;
}

@media (max-width: 640px) {
  .signup-form {
    grid-template-columns: 1fr;
  }

  .signup-button {
    width: fit-content;
  }
}
