:root {
  --paper: #f7f4ee;
  --card: #fffdf9;
  --ink: #1c1a17;
  --ink-soft: #57524a;
  --rule: #ddd6c9;
  --red: #c0271c;
  --red-dark: #9e1f16;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --wide: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.topbar__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

a.topbar__brand {
  text-decoration: none;
}

.topbar__dot {
  color: var(--red);
}

.topbar__cta {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--red-dark);
  text-decoration: none;
  padding: 0.5rem 0;
}

.topbar__cta:hover {
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2.5rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero__line1,
.hero__line2 {
  display: block;
  text-wrap: balance;
}

.hero__line1 {
  color: var(--red);
}

.hero__line2 {
  margin-top: 0.08em;
}

.hero__kicker {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

@property --strike-color {
  syntax: "<color>";
  inherits: false;
  initial-value: transparent;
}

/* Someone tried to edit the plea, then gave up.
   A background line (not a pseudo-element) so it follows each wrapped line. */
.hero__plea {
  --strike-color: var(--ink);
  background-image: linear-gradient(var(--strike-color), var(--strike-color));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: 0% max(3px, 0.06em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: strike 3.6s cubic-bezier(0.65, 0, 0.35, 1) 1s both;
}

@keyframes strike {
  0%   { background-size: 0% max(3px, 0.06em);   --strike-color: var(--ink); }
  22%  { background-size: 100% max(3px, 0.06em); --strike-color: var(--ink); }
  55%  { background-size: 100% max(3px, 0.06em); --strike-color: var(--ink); }
  100% { background-size: 100% max(3px, 0.06em); --strike-color: transparent; }
}

.hero__to {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

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

/* ---------- Layout ---------- */

.layout {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
}

/* On small screens, pull the sign card up right under the exhibit. */
.main {
  display: contents;
}

.exhibit { order: 1; }
.sidebar { order: 2; margin-bottom: 3rem; }
.letter, .stats, .reasons, .updates { order: 3; }

@media (min-width: 60rem) {
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 4rem;
    align-items: start;
  }
  .main {
    display: block;
    min-width: 0;
  }
  .sidebar {
    position: sticky;
    top: 1.5rem;
    margin-bottom: 0;
  }
}

.section-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
}

/* ---------- Exhibit: Daylit at work ---------- */

.exhibit {
  margin: 0 0 2.5rem;
}

.exhibit__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dso {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(28, 26, 23, 0.35);
  padding: 1.5rem 1.25rem 1.25rem;
}

.dso__claim {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dso__pct {
  color: var(--red);
}

.dso__ask {
  margin: 0.375rem 0 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  line-height: 1.1;
  color: var(--red-dark);
}

.dso__chart {
  display: grid;
  gap: 0.875rem;
}

.dso__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name val"
    "track track";
  gap: 0.3rem 0.75rem;
  align-items: center;
}

.dso__name {
  grid-area: name;
  font-size: 0.875rem;
  font-weight: 600;
}

.dso__val {
  grid-area: val;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.dso__track {
  grid-area: track;
  position: relative;
  display: block;
  height: 2.25rem;
}

.dso__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
}

.dso__bar--before {
  width: 100%;
  background: #5b544a;
}

.dso__bar--after {
  width: 60%;
  background: var(--red);
  animation: dso-shrink 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.8s both;
}

.dso__gap {
  position: absolute;
  inset: 0 0 0 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 2px dashed var(--red);
  border-left: 0;
  border-radius: 0 3px 3px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red-dark);
  animation: dso-fade 0.6s ease 2s both;
}

@keyframes dso-shrink {
  from { width: 100%; }
  to   { width: 60%; }
}

@keyframes dso-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dso__foot {
  margin: 1.25rem 0 0;
  padding-top: 0.875rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .dso {
    padding: 1.75rem 1.75rem 1.5rem;
  }
  .dso__row {
    grid-template-columns: 7.5rem 1fr 4.5rem;
    grid-template-areas: "name track val";
  }
  .dso__val {
    text-align: right;
  }
}

.exhibit figcaption {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ---------- Sign card ---------- */

.sign-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px -24px rgba(28, 26, 23, 0.4);
}

.count {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.count__num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 0.5rem;
  margin: 0.875rem 0 0.5rem;
  background: #ece6da;
  border-radius: 999px;
  overflow: hidden;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 71%;
  background: var(--red);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.goal {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.goal s {
  text-decoration-thickness: 2px;
}

.sign-card__heading {
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.sign__form {
  display: grid;
  gap: 0.625rem;
}

.sign__label {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.sign__input,
.sign__button {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.3;
  border-radius: 4px;
  min-height: 3rem;
}

.sign__input {
  padding: 0.75rem 0.875rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a39c90;
}

.sign__input::placeholder {
  color: #6f685e;
}

.sign__button {
  padding: 0.875rem 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  border: 0;
  cursor: pointer;
  text-wrap: balance;
  transition: background-color 0.15s ease;
}

.sign__button:hover {
  background: var(--red-dark);
}

.sign__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.sign__status {
  min-height: 1.5em;
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
}

.sign__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sign__status:empty {
  display: none;
}

.sign__form.is-signed .sign__label,
.sign__form.is-signed .sign__input,
.sign__form.is-signed .sign__button {
  display: none;
}

.sign__form.is-signed .sign__status {
  font-size: 1.25rem;
}

.sign__fine {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.recent {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.recent__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.recent__list li {
  color: var(--ink-soft);
}

.recent__list li strong {
  color: var(--ink);
  margin-right: 0.25rem;
}

.recent__list li span {
  display: block;
  font-size: 0.75rem;
}

.recent__list li.is-new {
  animation: slide-in 0.5s ease both;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Letter ---------- */

.letter {
  max-width: 40rem;
  margin-bottom: 3.5rem;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
}

.letter .section-title {
  margin-bottom: 1.5rem;
}

.letter p {
  margin: 0 0 1.25em;
}

.letter__date {
  color: var(--ink-soft);
}

.letter__pull {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 1.5em 0 !important;
}

.letter__faq {
  margin: 0 0 1.25em;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--red);
  list-style: none;
}

.letter__faq li + li {
  margin-top: 0.6em;
}

.letter__signoff {
  font-style: italic;
  font-size: 1.4em;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-bottom: 3.5rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.stat {
  background: var(--paper);
  padding: 1.25rem 1.25rem 1.375rem;
}

.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 40rem) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Quotes ---------- */

.reasons {
  margin-bottom: 3.5rem;
}

.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.quote {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  flex: 1 0 auto;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.quote__who > span:last-child span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.avatar {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.quote:nth-child(3n + 2) .avatar { background: var(--red-dark); }
.quote:nth-child(3n + 3) .avatar { background: #5b544a; }

.quote__meta {
  margin: 0.875rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.agree {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Updates ---------- */

.updates__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.updates__list li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.updates__list time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.updates__list h3 {
  margin: 0.25rem 0 0.375rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.updates__list p {
  margin: 0;
  max-width: 40rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #d9d3c7;
  padding: 3rem var(--gutter);
  text-align: center;
}

.footer__reveal {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.footer__reveal strong {
  color: #fff;
}

.footer__cta {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  text-decoration: none;
}

.footer__cta:hover {
  background: #fff;
}

.footer__cta:focus-visible {
  outline-color: var(--paper);
}

.footer__copy {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: #a39c90;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__plea {
    animation: none;
    background-image: none;
  }
  .recent__list li.is-new {
    animation: none;
  }
  .progress__bar {
    transition: none;
  }
  .dso__bar--after,
  .dso__gap {
    animation: none;
  }
}
