@import url("./v2/tokens.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--v2-font-body);
  background-color: var(--v2-bg);
  background-image: var(--v2-page-canvas-image);
  background-attachment: fixed;
  color: var(--v2-text);
  line-height: 1.66;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
textarea,
select {
  font-family: var(--v2-font-ui);
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--v2-ink);
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(138, 101, 63, 0.18);
  color: var(--v2-ink);
}

:focus-visible {
  outline: 2px solid rgba(138, 101, 63, 0.72);
  outline-offset: 4px;
  border-radius: 8px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--v2-font-body);
  font-weight: 720;
  letter-spacing: -0.03em;
  color: var(--v2-ink);
  text-wrap: balance;
}

.hero h1 {
  font-family: var(--v2-font-display);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
  font-size: clamp(3.2rem, 5.2vw, 5.3rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.23rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
}

.empty-state,
.error-state {
  color: var(--v2-muted);
  border-top: 1px solid var(--v2-rule-soft);
  padding-top: var(--v2-space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.625rem, 12.5vw, 3.125rem);
    line-height: 0.96;
    width: calc(100% - 12px);
    max-width: 12ch;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }
}
