:root {
  --ink: #171717;
  --paper: #F2F0EB;
  --panel: #ffffff;
  --text: #232323;
  --muted: #6f6b66;
  --red: #B31F2A;
  --blue: #2D4F9E;
  --line: rgba(23, 23, 23, 0.14);
  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  padding: 0.6rem 0.9rem;
}

.site-header,
.site-mobile-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-topbar,
.site-mobile-bar {
  max-width: 1280px;
  margin: 0 auto;
}

.site-topbar {
  background: transparent;
  padding: 0.85rem 1.25rem;
}

.site-brand__link,
.site-brand__link:hover,
.site-brand__link:focus {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
}

.site-brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0;
}

.site-brand__kicker,
.site-kicker {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-menu a,
.site-footer__menu a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-menu a:hover,
.site-menu a:focus,
.site-footer__menu a:hover,
.site-footer__menu a:focus {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.25em;
}

.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
  border-color: rgba(255, 255, 255, 0.8) transparent transparent;
}

.submenu {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-hero,
.site-page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.site-hero {
  min-height: 68vh;
}

.site-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.site-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 23, 23, 0.95), rgba(23, 23, 23, 0.56), rgba(23, 23, 23, 0.18));
}

.site-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 18vh;
  padding-bottom: 8vh;
}

.site-hero h1,
.site-page-hero h1 {
  max-width: 920px;
  margin: 0.35rem 0 1rem;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.site-hero .lead,
.site-page-hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.site-page-hero {
  padding: 5rem 0 4rem;
}

.site-page-hero--compact {
  padding: 3.8rem 0 3rem;
}

.site-page-hero--listing {
  background: linear-gradient(135deg, var(--ink), #2b2a2a);
}

.site-section {
  padding: 4.5rem 0;
}

.site-prose {
  max-width: 980px;
}

.site-prose--narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-prose--media {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.site-prose h2,
.site-prose h3,
.site-prose h4,
.site-heading {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
}

.site-heading {
  margin: 2.2rem 0 1rem;
  font-size: 1.75rem;
}

.site-heading--small {
  font-size: 1.35rem;
}

.site-heading--xsmall {
  font-size: 1.05rem;
}

.site-block {
  margin-bottom: 1.4rem;
}

.site-block--paragraph {
  color: var(--text);
}

.site-prose a,
.site-block--paragraph a,
.site-table a,
.site-list a,
.site-listing-links a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(45, 79, 158, 0.35);
  text-underline-offset: 0.18em;
}

.site-prose a:hover,
.site-block--paragraph a:hover,
.site-table a:hover,
.site-list a:hover,
.site-listing-links a:hover {
  color: var(--red);
  text-decoration-color: rgba(179, 31, 42, 0.55);
}

.site-block--image {
  margin: 2rem auto;
  text-align: center;
}

.site-block--image img,
.site-gallery img,
.site-main-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.site-main-image {
  float: right;
  width: min(33%, 320px);
  margin: 0 0 1.5rem 2rem;
}

.site-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.site-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
}

.site-table td,
.site-table th {
  vertical-align: top;
  border: 1px solid rgba(23, 23, 23, 0.08);
}

.site-table img {
  max-width: 100%;
  height: auto;
}

.site-list {
  margin-left: 1.25rem;
}

.site-list-card,
.site-card,
.site-link-panel,
.site-listing-links,
.site-sidebar,
.site-toc {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 1.25rem;
}

.site-list-card__link,
.site-card h2 a {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
}

.site-list-card__link:hover,
.site-card h2 a:hover {
  color: var(--red);
  text-decoration: underline;
}

.site-link-panel,
.site-listing-links {
  display: grid;
  gap: 0.75rem;
}

.site-listing-links a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  font-weight: 700;
}

.site-sidebar {
  margin-bottom: 1.5rem;
}

.site-sidebar a {
  color: var(--ink);
  font-weight: 700;
}

.site-breadcrumbs {
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--blue);
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-toc {
  margin-bottom: 2rem;
}

.site-toc--sticky {
  position: sticky;
  top: 1rem;
}

.site-toc ul {
  margin: 0.65rem 0 0;
}

.site-quote {
  border-left: 4px solid var(--red);
  color: var(--muted);
  font-family: var(--font-head);
  font-style: italic;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
}

.site-code {
  background: var(--ink);
  color: #fff;
  padding: 1rem;
  overflow-x: auto;
}

.site-card {
  min-height: 100%;
  margin-bottom: 1.5rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: rgba(179, 31, 42, 0.35);
}

.site-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.site-card__body {
  padding: 1.1rem;
}

.site-card h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.site-card--minimal {
  border-left: 3px solid var(--red);
}

.site-action {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0;
}

.site-footer__brand {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 900;
  text-decoration: none;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-topbar {
    display: block;
  }

  .site-hero {
    min-height: 58vh;
  }

  .site-hero__content {
    padding-top: 12vh;
  }

  .site-section {
    padding: 3rem 0;
  }

  .site-main-image {
    float: none;
    width: 100%;
    margin: 0 0 1.5rem;
  }
}
