:root {
  --ink: #000000;
  --paper: #ffffff;
  --accent: #8a1e1e;
  --accent-dark: #651515;
  --rule: #000000;
  --content: 72ch;
  --wide: 78rem;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 0.18rem solid var(--accent);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  transform: translateY(-180%);
  padding: 0.55rem 0.8rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding-block: 0.85rem;
}

.wordmark {
  width: fit-content;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.site-nav {
  grid-column: 1 / -1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  gap: 0.45rem 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  width: max-content;
}

.site-nav a {
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-main {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 62vh;
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.site-main > * + * {
  margin-top: clamp(4rem, 10vw, 8rem);
}

.site-main section:not(.hero) {
  scroll-margin-top: 2rem;
}

.hero,
.page-intro {
  max-width: 58rem;
}

.hero h1,
.page-intro h1 {
  max-width: 16ch;
  margin-block: 0.25rem 1.25rem;
  font-size: clamp(2.65rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-intro h1 {
  font-size: clamp(2.5rem, 7vw, 5.3rem);
}

h2,
h3,
p,
ul {
  max-width: var(--content);
}

h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  margin-block: 0.35rem 1.25rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  max-width: 46ch;
  margin-block: 0 1.7rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.eyebrow {
  margin-block: 0 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--paper);
}

.button-small {
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.text-link {
  font-weight: 800;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.card {
  min-height: 16rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.card h2,
.card h3 {
  margin-block: 0.5rem 0.8rem;
}

.card h2 a,
.card h3 a {
  text-decoration: none;
}

.card-large {
  min-height: 20rem;
}

.record-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.record-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.split > * {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper);
}

.program-page > section,
.site-main > section:not(.hero),
.site-main > article > section {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.program-page > * + * {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  padding-block: 2.5rem;
}

.site-footer ul {
  flex-wrap: wrap;
}

.site-footer p {
  margin-block: 0.75rem 0;
  font-size: 0.88rem;
}

.copyright {
  font-weight: 700;
}

@media (min-width: 58rem) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding-block: 1rem;
  }

  .site-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .book-button {
    grid-column: 3;
  }
}

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

