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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--tc-color-canvas);
  color: var(--tc-color-text);
  font-family: var(--tc-font-interface);
  font-size: 1rem;
  line-height: 1.6;
}

body.tc-drawer-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--tc-color-accent);
}

h1,
h2,
h3,
h4,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--tc-color-ink);
  font-family: var(--tc-font-editorial);
  font-weight: var(--tc-title-weight);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  font-size: var(--tc-type-page-title);
  line-height: var(--tc-leading-page);
}

h2 {
  font-size: var(--tc-type-section-title);
  line-height: var(--tc-leading-section);
}

h3 {
  line-height: var(--tc-leading-card);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--tc-color-accent);
  outline-offset: 3px;
}

[hidden] {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.tc-skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--tc-radius-pill);
  background: var(--tc-color-ink);
  color: var(--tc-color-surface);
  transform: translate(-50%, -180%);
  transition: transform var(--tc-motion-fast) ease;
}

.tc-skip-link:focus {
  transform: translate(-50%, 0);
}

.tc-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--tc-universe-color);
  border-radius: var(--tc-radius-pill);
  background: var(--tc-universe-color);
  color: var(--tc-color-surface);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: filter var(--tc-motion-fast) ease, transform var(--tc-motion-fast) ease;
}

.tc-button:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.tc-button--secondary {
  background: transparent;
  color: var(--tc-universe-color);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
