:root {
  color-scheme: light;
  --paper: #efe4d7;
  --paper-deep: #e1d1bf;
  --paper-line: #d9c5b0;
  --ink: #17100b;
  --ink-soft: #4f3927;
  --accent: #9e1f15;
  --accent-soft: rgba(158, 31, 21, 0.12);
  --gold: #9a6b25;
  --shadow: 10px 10px 0 rgba(48, 27, 9, 0.12);
  --radius: 0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171311;
  --paper-deep: #211a17;
  --paper-line: #4e4136;
  --ink: #f4ebdc;
  --ink-soft: #cfbea9;
  --accent: #ff5b47;
  --accent-soft: rgba(255, 91, 71, 0.12);
  --gold: #e0b14c;
  --shadow: 10px 10px 0 rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Rattle Ink", "Libre Baskerville", serif;
  background:
    radial-gradient(circle at top left, rgba(158, 116, 71, 0.06), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(142, 102, 62, 0.045), transparent 16%),
    radial-gradient(circle at 24% 72%, rgba(180, 139, 97, 0.08), transparent 24%),
    repeating-linear-gradient(
      0deg,
      rgba(112, 85, 60, 0.03) 0,
      rgba(112, 85, 60, 0.03) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(180deg, rgba(255, 248, 238, 0.34), transparent 14%),
    linear-gradient(135deg, rgba(187, 151, 113, 0.06), transparent 42%),
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background:
    radial-gradient(circle at 15% 20%, rgba(119, 88, 56, 0.07), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(143, 106, 68, 0.06), transparent 16%),
    radial-gradient(circle at 70% 70%, rgba(119, 89, 61, 0.1), transparent 22%),
    radial-gradient(circle at 30% 48%, rgba(158, 118, 82, 0.08), transparent 30%);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

.site-shell {
  width: min(1280px, calc(100% - 1.25rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.topbar {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  align-items: end;
  gap: 1rem;
  padding: 1rem 0 0.85rem;
  border-top: 4px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

.wordmark {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: "Clarendon", "Clarendon BT", "Bookman Old Style", serif;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.edition-meta {
  display: grid;
  gap: 0.2rem;
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-meta-right {
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--paper);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.section {
  padding: clamp(2.5rem, 5vw, 4.6rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 1.35rem;
  align-items: start;
}

.hero-copy {
  padding-right: 1.1rem;
  border-right: 1px solid var(--paper-line);
}

.inline-photo-card,
.hero-panel {
  display: grid;
  gap: 1rem;
}

.eyebrow,
.kicker,
.field-label,
.contact-label {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Rattle Ink", "Libre Baskerville", serif;
  font-weight: 700;
  line-height: 1;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.28rem, 4.4vw, 4.53rem);
  letter-spacing: -0.04em;
}

.hero-copy > h1 {
  line-height: 1.09;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-line {
  display: inline;
}

.hero-line + .hero-line::before {
  content: " ";
}

.lede,
.message-copy p,
.share-card p,
.card-intro p,
.story-card p,
.template-card p,
.demands-list,
.footer p,
.photo-card figcaption,
.lookup-status {
  color: var(--ink-soft);
  line-height: 1.72;
}

.lede {
  max-width: 45rem;
  font-size: 1.03rem;
}

.lede:first-of-type {
  margin-top: 1.4rem;
  font-size: 1.14rem;
}

.result-actions,
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.result-card .result-actions {
  margin-top: 0.32rem;
}

.action-card,
.inline-photo-card,
.photo-card,
.story-card,
.demands-card,
.template-card,
.share-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.action-card,
.template-card,
.share-card,
.demands-card {
  padding: 1.2rem;
}

.inline-photo-card {
  margin: 1.4rem 0 0;
  padding: 0.7rem;
}

.action-card::before {
  content: "Act now";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.41rem 0.8rem;
  border: 3px solid var(--accent);
  color: var(--accent);
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 1.21rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.action-card .card-intro h2 {
  max-width: 10ch;
  font-size: clamp(1.58rem, 2.95vw, 2.98rem);
}

.lookup-form {
  margin-top: 1.4rem;
}

.field-row {
  display: flex;
  gap: 0.65rem;
}

.field-row input,
.template-card textarea {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper-deep) 72%, transparent);
}

.field-row input {
  min-height: 2.95rem;
  padding: 0.78rem 0.9rem;
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 1rem;
}

.field-row input::placeholder {
  color: var(--ink-soft);
}

.lookup-status {
  margin: 0.8rem 0 0;
  font-size: 0.96rem;
}

.result-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--paper-line);
  background: var(--paper-deep);
}

.result-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: start;
}

.result-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0;
}

.result-identity {
  min-width: 0;
}

.result-identity .kicker {
  margin-bottom: 0.45rem;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#mp-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 148px;
  height: 184px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--ink);
  background: var(--paper);
  filter: grayscale(100%) contrast(1.04);
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: "Rattle Ink", "Archivo Narrow", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill {
  background: var(--paper);
}

.chip-confirmed {
  background: var(--ink);
  color: var(--paper);
}

.chip-concern {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.contact-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-bottom: 0;
}

.contact-grid a {
  word-break: break-word;
}

.inline-photo-card,
.photo-card {
  padding: 0.7rem;
}

.inline-photo-card img,
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  border: 1px solid var(--ink);
}

.inline-photo-card img {
  aspect-ratio: 5 / 3;
  object-position: center 34%;
}

.photo-card img {
  aspect-ratio: 5 / 4;
}

.inline-photo-card figcaption,
.photo-card figcaption {
  padding: 0.8rem 0.15rem 0.1rem;
  font-size: 0.95rem;
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink);
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.story-card {
  padding: 1.2rem 1rem 1.2rem 0;
  box-shadow: none;
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid var(--paper-line);
  background: transparent;
}

.story-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.story-card h3 {
  margin-top: 0.8rem;
}

.message-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.9fr);
  gap: 1rem;
  align-items: start;
  padding-top: 1.6rem;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--paper-line);
}

.message-copy {
  padding-right: 1rem;
}

.demands-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}

.demands-list li + li {
  margin-top: 0.75rem;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  gap: 1rem;
}

.template-card textarea {
  min-height: 18rem;
  margin: 1rem 0;
  padding: 1rem;
  resize: vertical;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 3px double var(--ink);
  font-size: 0.94rem;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .message-band,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .message-copy {
    padding-right: 0;
    border-right: 0;
  }

  .story-cards {
    grid-template-columns: 1fr;
  }

  .story-card {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--paper-line);
  }

  .story-card:last-child {
    border-bottom: 0;
  }

  .edition-meta,
  .edition-meta-right {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 0.35rem));
  }

  .topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.65rem 0.8rem;
    padding: 0.45rem 0 0.7rem;
    border-bottom: 0;
  }

  .wordmark {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 0.55rem;
    margin-bottom: 0.05rem;
    border-bottom: 3px double var(--ink);
  }

  .edition-meta-right {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  .edition-meta:not(.edition-meta-right) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
    justify-items: end;
  }

  .hero-copy,
  .hero-panel {
    display: contents;
  }

  .hero-copy.reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy > h1 {
    order: 1;
    max-width: none;
    width: 100%;
    margin-inline: auto;
    font-size: 1.94rem;
    text-align: center;
    text-wrap: unset;
    line-height: 1.08;
  }

  .hero-copy > h1 .hero-line {
    display: block;
  }

  .hero-copy > h1 .hero-line + .hero-line::before {
    content: none;
  }

  .hero-copy > .lede:first-of-type {
    order: 2;
    text-align: center;
  }

  .hero-panel > .action-card {
    order: 3;
    margin: 0.25rem 0;
  }

  .hero-copy > .lede:last-of-type {
    order: 4;
    padding-inline: 0.55rem;
  }

  .hero-copy > .inline-photo-card {
    order: 5;
  }

  .hero-panel > .photo-card {
    order: 6;
  }

  .message-copy {
    padding-inline: 0.55rem;
  }

  .result-overview {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 0.7rem;
    align-items: start;
  }

  #mp-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 74px;
    height: 92px;
  }

  .result-header,
  .result-meta {
    grid-column: 1;
    gap: 0.35rem;
  }

  .result-header {
    margin-bottom: 0;
  }

  .contact-grid {
    grid-column: 1;
    margin-top: -0.05rem;
  }

  .result-actions,
  .share-buttons,
  .contact-grid,
  .footer {
    flex-direction: column;
  }

  .field-row {
    display: grid;
  }

  .field-row input,
  .button {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button {
    transition: none;
  }
}
