@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --red: #a80f38;
  --red-dark: #5c0820;
  --white: #ffffff;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--red);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

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

main:focus,
section:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.5rem 1rem;
  background: var(--red);
  color: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--white);
  transform: none;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
}

.wordmark,
.nav-link,
.email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.headline {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  /* The 15vw limit keeps whole words on one line when text is enlarged. */
  font-size: clamp(min(2.625rem, 15vw), 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.drawing {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}

.drawing svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.drawing path {
  fill: none;
  stroke: var(--red);
  stroke-linejoin: round;
  stroke-width: 10;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(2rem, 6vw, 5rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.details h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.details-text {
  max-width: 34rem;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-block: clamp(4.5rem, 9vw, 8rem) 2rem;
  font-size: 1rem;
}

@media (max-width: 44rem) {
  .details {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawing path {
    stroke-width: 14;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
