:root {
  color-scheme: light;
  --paper: #f4ecd7;
  --paper-dark: #e7dcc0;
  --ink: #17130d;
  --soft-ink: #5b5143;
  --rule: #17130d;
  --accent: #b3362d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #2b261f;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.16)),
    #2b261f;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 9px);
  mix-blend-mode: soft-light;
}

.pamphlet {
  width: min(100% - 2rem, 58rem);
  margin: 1rem auto;
  padding: clamp(1.1rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 18rem),
    var(--paper);
  border: 2px solid var(--rule);
  box-shadow: 0.6rem 0.6rem 0 rgba(0, 0, 0, 0.34);
}

.masthead {
  display: grid;
  gap: 1rem;
  padding-bottom: clamp(1.8rem, 5vw, 3rem);
  border-bottom: 0.22rem solid var(--rule);
  text-align: center;
}

.issue,
.label,
footer {
  font-size: clamp(0.72rem, 1.7vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.issue {
  margin: 0 auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--paper-dark);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  display: grid;
  gap: 0.35rem;
  font-size: clamp(3.4rem, 11vw, 8.7rem);
  line-height: 0.86;
  text-transform: uppercase;
}

h1 span {
  color: var(--accent);
  font-size: 0.72em;
}

.standfirst {
  max-width: 45rem;
  margin: 0 auto;
  color: var(--soft-ink);
  font-size: clamp(1.05rem, 2.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
}

.notice {
  width: fit-content;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(0.78rem, 1.8vw, 0.98rem);
  font-weight: 600;
  text-transform: uppercase;
}

section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(23, 19, 13, 0.45);
}

.definition,
.closing {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
}

.label {
  margin: 0;
  color: var(--accent);
}

h2 {
  font-size: clamp(1.85rem, 5vw, 3.7rem);
  line-height: 0.98;
}

p {
  margin: 0;
}

section > p:not(.label),
section li,
blockquote cite {
  color: var(--soft-ink);
  font-size: clamp(0.98rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.definition p:not(.label),
.closing p:not(.label) {
  grid-column: 2;
}

.manifesto-list {
  counter-reset: pledge;
}

.manifesto-list h2,
.avot h2 {
  margin-top: 0.35rem;
}

ol {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

li {
  counter-increment: pledge;
  position: relative;
  min-height: 5.5rem;
  padding: 1rem 1rem 1rem 5.2rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.2);
}

li::before {
  content: counter(pledge, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 750;
  line-height: 1;
}

strong {
  color: var(--ink);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.35rem;
}

blockquote {
  min-height: 11rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper-dark);
}

blockquote p {
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  font-weight: 750;
  line-height: 1.05;
}

blockquote cite {
  display: block;
  font-style: normal;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.2rem;
}

footer p:nth-child(2) {
  text-align: right;
}

footer p:last-child {
  grid-column: 1 / -1;
  color: var(--accent);
  text-align: center;
}

@media (max-width: 700px) {
  .pamphlet {
    width: min(100% - 1rem, 58rem);
    margin: 0.5rem auto;
    box-shadow: 0.3rem 0.3rem 0 rgba(0, 0, 0, 0.34);
  }

  .definition,
  .closing,
  .quotes {
    grid-template-columns: 1fr;
  }

  .definition p:not(.label),
  .closing p:not(.label) {
    grid-column: auto;
  }

  li {
    padding-left: 4.5rem;
  }

  footer {
    display: grid;
  }

  footer p:nth-child(2),
  footer p:last-child {
    text-align: left;
  }

  footer p:last-child {
    grid-column: auto;
  }
}

@media print {
  html,
  body {
    background: var(--paper);
  }

  body::before {
    display: none;
  }

  .pamphlet {
    width: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
