:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #292321;
  --muted: #655b52;
  --wine: #5b282e;
  --wine-dark: #34181d;
  --line: #ddd5c8;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
}

a {
  color: var(--wine);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--wine-dark);
}

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  max-width: 1200px;
  margin-inline: auto;
  padding: 28px 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.875rem;
}

.site-header nav a {
  padding-block: 8px;
}

.site-header [aria-current="page"] {
  font-weight: 700;
}

main {
  max-width: 1000px;
  padding: 64px 40px 80px;
  margin-inline: auto;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  max-width: 800px;
  margin: 16px 0 24px;
  font-size: clamp(2.3rem, 5.4vw, 4.25rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.2;
}

p {
  margin: 0 0 20px;
}

cite {
  font-style: italic;
}

.eyebrow {
  color: var(--wine);
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

.page-intro {
  max-width: 780px;
}

.draft-note {
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 3px solid var(--wine);
  background: #f0eae0;
  font-size: 0.9375rem;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 28px;
  font-size: 0.9375rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid var(--wine);
  border-radius: 4px;
  color: white;
  background: var(--wine);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--wine-dark);
}

.sample-contents {
  padding-block: 48px;
  margin-top: 32px;
}

.sample-contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  padding: 0;
  list-style: none;
}

.sample-contents li {
  border-top: 1px solid var(--line);
}

.sample-contents a {
  display: block;
  padding: 16px 0;
  line-height: 1.5;
}

.sample-contents span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.sample-page {
  padding: 48px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  background: #fffdf9;
  scroll-margin-top: 24px;
}

.page-heading {
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  tab-size: 2;
}

.back-to-contents {
  display: inline-block;
  padding-block: 8px;
  margin-top: 20px;
  font-size: 0.875rem;
}

.closing-note {
  max-width: 760px;
  margin-top: 64px;
}

.editorial-sections {
  max-width: 780px;
}

.editorial-sections section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    padding: 24px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header nav {
    gap: 8px 18px;
  }

  main {
    padding: 40px 24px 56px;
  }

  .sample-contents ol {
    grid-template-columns: 1fr;
  }

  .sample-page {
    padding: 28px 20px;
    margin-inline: -8px;
  }

  .page-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .transcript {
    font-size: 1rem;
  }
}

@media print {
  :root {
    color: black;
    background: white;
  }

  .site-header nav,
  .skip-link,
  .page-actions,
  .back-to-contents,
  .site-footer a {
    display: none;
  }

  main,
  .site-header,
  .site-footer {
    max-width: none;
    padding: 20px 0;
  }

  .sample-page {
    padding: 24px 0;
    border-inline: 0;
    break-before: page;
    background: white;
  }

  a {
    color: inherit;
  }
}
