:root {
  --paper: #faf7f1;
  --paper-strong: #fffdf8;
  --ink: #1c1915;
  --muted: #746d63;
  --rule: rgba(28, 25, 21, 0.16);
  --vermillion: #c8371e;
  --display: "Newsreader", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--paper-strong);
  border: 2px solid var(--vermillion);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

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

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-inner,
.hero-inner,
.section-inner,
.process-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.wordmark {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.masthead p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  padding: 72px 0 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--vermillion);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.collection {
  padding: 58px 0 72px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.site-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-strong);
}

.site-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--vermillion));
}

.card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ebe3d7;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.site-card:hover .card-thumb img {
  transform: scale(1.025);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.card-body .meta {
  color: var(--accent, var(--vermillion));
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.card-links a {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.card-links .primary-link {
  color: var(--accent, var(--vermillion));
}

.process {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-strong);
}

.process-inner {
  display: grid;
  gap: 0;
}

.process article {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.process article:first-child {
  border-top: 0;
}

.step {
  margin: 0 0 10px;
  color: var(--vermillion);
  font-size: 0.74rem;
  font-weight: 900;
}

.process h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
}

.process p:not(.step) {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .hero-inner {
    padding: 92px 0 104px;
  }

  .hero h1 {
    font-size: 5.1rem;
  }

  .collection {
    padding: 76px 0 96px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 460px));
  }

  .process-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .process article {
    min-height: 230px;
    padding: 34px 26px;
    border-top: 0;
    border-left: 1px solid var(--rule);
  }

  .process article:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .masthead-inner {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
