:root {
  --ink: #303030;
  --muted: #5e5a54;
  --paper: #fffdf9;
  --sand: #f5eee3;
  --red: #c44745;
  --yellow: #f4cf35;
  --blue: #3d839a;
  --max-width: 72rem;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  max-width: 70ch;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: 0.6rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 3;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: white;
  border-bottom: 4px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 2;
}

.header-inner {
  align-items: center;
  display: flex;
  min-height: 5.5rem;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 11.5rem;
}

.navigation {
  align-items: center;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  justify-content: flex-end;
}

.navigation a {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.1rem;
  text-decoration: none;
}

.navigation a:hover,
.navigation a[aria-current='page'] {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--ink);
  display: none;
  font: inherit;
  margin-left: auto;
  padding: 0.45rem 0.7rem;
}

.hero {
  background: var(--sand);
  overflow: hidden;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  min-height: 30rem;
  padding-block: 3rem;
}

.eyebrow {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-image {
  border-radius: 0.35rem;
  box-shadow: 1.2rem 1.2rem 0 var(--yellow);
  width: 100%;
}

.button {
  background: var(--red);
  border: 2px solid var(--red);
  color: white;
  display: inline-block;
  font-weight: 700;
  margin: 0.7rem 0.7rem 0 0;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button:hover {
  background: #9d3433;
}

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

.section {
  padding-block: 4.5rem;
}

.section.tinted {
  background: var(--sand);
}

.section-heading {
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.card {
  background: white;
  border-top: 0.4rem solid var(--blue);
  box-shadow: 0 0.2rem 0.9rem #00000012;
  padding: 1.5rem;
}

.card:nth-child(2n) {
  border-color: var(--yellow);
}

.card:nth-child(3n) {
  border-color: var(--red);
}

.card a {
  color: var(--red);
  font-weight: 700;
}

.feature {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
}

.feature.reverse > :first-child {
  grid-column: 2;
}

.feature.reverse > :last-child {
  grid-column: 1;
  grid-row: 1;
}

.content-page {
  padding-block: 4rem 5rem;
}

.content-page > .container {
  max-width: 52rem;
}

.content-page h1 {
  color: var(--red);
  font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.content-page li {
  margin-bottom: 0.7rem;
}

.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  border-bottom: 1px solid #d8d0c5;
  padding: 1rem 0;
}

.resource-list a {
  color: var(--red);
  font-weight: 700;
}

.post-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.post-list a {
  background: var(--sand);
  display: block;
  padding: 1.3rem;
  text-decoration: none;
}

.post-list a:hover {
  background: #ebe0d0;
}

.post-list time {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

.notice {
  border-left: 0.4rem solid var(--yellow);
  background: #fff8d8;
  padding: 1rem 1.2rem;
}

.site-footer {
  background: #292725;
  color: white;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr;
}

.footer-grid h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.4rem;
}

.copyright {
  border-top: 1px solid #fff4;
  color: #e6e0d9;
  font-size: 0.85rem;
  margin: 2rem auto 0;
  padding: 1rem 0;
  width: min(calc(100% - 2.5rem), var(--max-width));
}

@media (width <= 48rem) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .menu-button {
    display: block;
  }

  .navigation {
    display: none;
    flex-basis: 100%;
    padding-top: 0.8rem;
  }

  .navigation.open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .navigation a {
    padding: 0.55rem 0;
  }

  .hero-grid,
  .feature,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 2.5rem;
  }

  .hero-image {
    box-shadow: 0.75rem 0.75rem 0 var(--yellow);
  }

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

  .feature.reverse > :first-child,
  .feature.reverse > :last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .section {
    padding-block: 3.5rem;
  }
}
