:root {
  color-scheme: light;
  --white: #fffdfb;
  --paper: #f6f1f2;
  --paper-violet: #f2eef8;
  --ink: #1c1820;
  --muted: #675e64;
  --line: #d8cdd1;
  --wine: #7b2435;
  --wine-soft: #f1dfe3;
  --violet: #6750a4;
  --violet-soft: #eee8fa;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.back-link {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  border-color: currentColor;
}

.page {
  padding: 64px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 76px;
  align-items: center;
  margin-bottom: 76px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.message-sequence {
  position: relative;
  padding-left: 58px;
}

.message-sequence::before {
  position: absolute;
  top: -24px;
  bottom: -24px;
  left: 20px;
  width: 2px;
  background: var(--wine);
  content: "";
}

.message {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.message::before {
  position: absolute;
  top: 30px;
  left: -39px;
  width: 37px;
  height: 1px;
  background: var(--wine);
  content: "";
}

.message::after {
  position: absolute;
  top: 24px;
  left: -47px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
  content: "";
}

.message.reply {
  margin-left: 32px;
  background: var(--violet-soft);
  border-color: #cfc3e7;
}

.message.reply::before {
  background: var(--violet);
}

.message.reply::after {
  background: var(--violet);
  box-shadow: 0 0 0 1px var(--violet);
}

.message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
}

.message-meta strong {
  font-size: 13px;
}

.message-meta time {
  color: var(--muted);
  font-size: 11px;
}

.message p {
  margin-bottom: 0;
}

.report {
  border-top: 1px solid var(--ink);
}

.report-section {
  display: grid;
  grid-template-columns: 70px minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 22px;
}

.report-section > div {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: subgrid;
}

.report-section h2 {
  margin-bottom: 0;
  padding-right: 20px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.15;
}

.report-section p,
.report-section ul,
.report-section ol {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
}

.report-section ul,
.report-section ol {
  padding-left: 20px;
}

.report-section li + li {
  margin-top: 8px;
}

.boundary {
  margin-top: 42px;
  padding: 26px 30px;
  border-left: 2px solid var(--violet);
  background: var(--paper-violet);
}

.boundary h2 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.boundary p {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--wine);
  background: var(--paper);
}

.footer-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer a {
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .message-sequence {
    max-width: 680px;
  }

  .report-section {
    grid-template-columns: 46px 1fr;
  }

  .report-section > div {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .topbar-inner,
  .page,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .page {
    padding: 46px 0 60px;
  }

  h1 {
    font-size: 46px;
  }

  .message-sequence {
    padding-left: 38px;
  }

  .message-sequence::before {
    left: 10px;
  }

  .message::before {
    left: -29px;
    width: 27px;
  }

  .message::after {
    left: -37px;
  }

  .message.reply {
    margin-left: 10px;
  }

  .footer-inner,
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }
}

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