/* Fonts, reset, type. Inter comes from design/fonts (config/initializers/assets.rb). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2");
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-ink);
  background: var(--color-paper);
  overflow-wrap: break-word;
}

svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 0.1875rem solid var(--color-ink);
  outline-offset: 0.125rem;
}

h1 {
  font-size: var(--text-2xl);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  font-weight: 700;
}

p,
li {
  max-width: var(--measure);
}

a {
  color: var(--color-ink);
  text-decoration-thickness: var(--border);
  text-underline-offset: var(--underline-offset);
}

a:hover {
  text-decoration-thickness: calc(var(--border) * 1.5);
}

.text-soft {
  color: var(--color-ink-soft);
}

.text-sm {
  font-size: var(--text-sm);
}

.visually-hidden {
  position: absolute;
  inline-size: 0.0625rem;
  block-size: 0.0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

legend {
  padding: 0;
}
