/* Hallmark · Oria landing page base rules · v2.0.0 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-3xl);
  scrollbar-color: var(--color-muted) var(--color-paper);
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--color-accent);
}

::selection {
  background: var(--color-paper-3);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: var(--text-display);
}

h2 {
  max-width: 26ch;
  font-size: var(--text-section);
}

h3 {
  max-width: 38ch;
  font-size: var(--text-title);
  line-height: 1.2;
}

p {
  max-width: 68ch;
  text-wrap: pretty;
}

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

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

.shell {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: var(--z-toast);
  top: calc(-1 * var(--space-3xl));
  left: var(--gutter);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 60rem) {
  :root {
    --gutter: 24px;
    --section-gap-s: 80px;
    --section-gap: 96px;
    --section-gap-l: 120px;
    --gap-columns: 24px;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: 16px;
    --section-gap-s: 56px;
    --section-gap: 72px;
    --section-gap-l: 96px;
    --gap-columns: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
