:root {
  --paper: #ffffff;
  --ink: #171717;
  --muted: #555555;
  --rule: #dddddd;
  --accent: #b42318;
  --quote-paper: #f4f4f4;
}

html {
  color: var(--ink);
  background: var(--paper);
}

body {
  max-width: 36em;
  padding: clamp(2rem, 6vw, 3.125rem);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.0625rem, 1rem + .15vw, 1.125rem);
  line-height: 1.68;
}

#title-block-header {
  margin: 0 0 2.2rem;
  text-align: left;
}

#title-block-header h1.title {
  max-width: 15ch;
  margin: 0 0 .55rem;
  color: var(--ink);
  font-size: clamp(2.65rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
}

#title-block-header p.author,
#title-block-header p.date {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.5;
}

#title-block-header p.author {
  color: var(--muted);
}

#title-block-header p.date {
  color: var(--accent);
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h2 {
  margin-top: 2.45em;
  margin-bottom: .75em;
  padding-top: .6em;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

h3, h4, h5, h6 {
  color: var(--ink);
  line-height: 1.3;
}

a, a:visited {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

a:hover {
  text-decoration-thickness: .13em;
}

a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

blockquote {
  margin: 1.5em 0;
  padding: .8em 1.1em;
  border-left: 3px solid var(--accent);
  background: var(--quote-paper);
  color: #3d3d3d;
}

figure {
  margin: 2rem 0;
}

figure .photo-credit {
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .78rem;
  line-height: 1.5;
}

img[src$=".svg"] {
  display: block;
  width: min(100%, 36em);
  margin: 1.75rem auto 2rem;
}

@media (max-width: 600px) {
  body {
    padding: 2.25rem 1rem;
    font-size: 1.05rem;
  }

  #title-block-header h1.title {
    font-size: clamp(2.5rem, 11vw, 3.35rem);
  }

  blockquote {
    padding-inline: .9em;
  }

  figure {
    margin-inline: 0;
  }
}
