:root {
  color-scheme: light;
  --background: #f6f6f3;
  --foreground: #171715;
  --secondary: #484844;
  --rule: #a8a8a1;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

main {
  width: min(100%, 54rem);
  padding: clamp(2rem, 8vw, 6rem);
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 11vw, 6rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

p {
  width: fit-content;
  margin: clamp(1.75rem, 5vw, 3rem) auto 0;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 5vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  color: var(--secondary);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 30rem) {
  main {
    padding-inline: 1.5rem;
  }
}

@media (forced-colors: active) {
  p {
    border-color: CanvasText;
  }
}
