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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-body);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.simbo-heading {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-heading);
}

h1 {
  margin-bottom: var(--space-4);
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
}

h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-3xl);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-md);
  background: var(--color-heading);
  color: var(--simbo-white);
  padding: var(--space-2) var(--space-3);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.simbo-display {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
}

.simbo-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-body);
}

.simbo-ui-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-ui);
}

code,
pre,
.simbo-code,
.simbo-id {
  font-family: var(--font-mono);
}

.simbo-id {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 560px) {
  h1,
  .simbo-display {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-lg);
  }
}
