@font-face {
  font-family: "crimson-text";
  src: url("/fonts/CrimsonPro-VariableFont_wght.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "crimson-text";
  src: url("/fonts/CrimsonPro-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #000000;
  --measure: 900px;
  --bleed: 40px;
  --gutter: 1.5rem;
}

body {
  font-family: "crimson-text", system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 1.25rem;
  margin: 0;
  padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "crimson-text", serif;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }

a {
  color: var(--foreground);
}

ul { padding-left: 1.5em; }
ol { padding-left: 1.5em; }

.two-col-layout {
  display: flex;
  gap: var(--gutter);
  align-items: flex-start;
  margin: 10px auto;
  padding: 0 var(--gutter);
}
.two-col-layout__text {
  flex: 1 1 0;
  min-width: 0;
}
.two-col-layout__image {
  flex: none;
  width: fit-content;
}
.two-col-layout__image img {
  max-width: 50vw;
  height: auto;
  display: block;
}
@media (max-width: 640px) {
  .two-col-layout {
    flex-direction: column;
  }
  .two-col-layout__image {
    flex: none;
  }
  body {
    font-size: 1.1rem;
  }
}
