:root {
  color-scheme: light;
  --duck-yellow: #ffd43b;
  --duck-ink: #211f17;
  --duck-brown: #5c5133;
  --beak-deep: #9c3a12;
  --water-deep: #064f67;
  --focus-blue: #004e89;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--duck-yellow);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--duck-ink);
  background: var(--duck-yellow);
  font-family: var(--font-mono);
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.75rem;
}

.wordmark {
  font-weight: 700;
  text-decoration: none;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 6rem;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(100%, 64rem);
  text-align: center;
}

.diff {
  width: fit-content;
  margin: 0 auto;
  text-align: left;
  font-size: clamp(1.65rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.diff > * {
  display: block;
  text-decoration: none;
}

.diff > *::before {
  display: inline-block;
  width: 1.25em;
  color: currentColor;
  font-weight: 400;
}

.context::before {
  content: "  ";
  white-space: pre;
}

.diff del {
  color: var(--beak-deep);
}

.diff del::before {
  content: "− ";
}

.diff del span {
  text-decoration: line-through;
  text-decoration-thickness: 0.055em;
}

.diff ins {
  color: var(--water-deep);
  font-weight: 700;
}

.diff ins::before {
  content: "+ ";
}

.intro {
  max-width: 42ch;
  margin: clamp(2rem, 5vw, 3.25rem) auto 0;
  color: var(--duck-brown);
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  text-wrap: balance;
}

@media (hover: hover) {
  .wordmark:hover {
    text-decoration: underline;
    text-decoration-color: var(--beak-deep);
    text-decoration-thickness: 0.35em;
    text-underline-offset: -0.12em;
  }
}

@media (max-width: 36rem) {
  .diff {
    font-size: clamp(1.45rem, 7.5vw, 2.25rem);
  }
}
