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

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--color-hero-background);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-synthesis: none;
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-default);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

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

img {
  height: auto;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  line-height: var(--line-height-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-body);
}

.site-main {
  flex-direction: column;
  min-height: 60vh;
  overflow: clip;
}

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

.scrollbar-hidden {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

.pupil-logo {
  display: block;
  width: 108px;
  aspect-ratio: 108 / 32;
  background: url("../img/pupil-logo.svg") center / contain no-repeat;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-md);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  line-height: initial;

  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button--text-animated {
  overflow: hidden;
}

.button__text {
  display: flex;
  height: 1.3em;
  flex-direction: column;
  gap: 0.25em;
  overflow: hidden;
}

.button__icon {
  flex: 0 0 auto;
}

.button__text > span {
  display: block;
  min-height: 1.3em;
  transform: translateY(0);
  transition: transform 450ms cubic-bezier(0.69, 0, 0.47, 1);
}

.button__text > span > :first-child {
  margin-top: 0;
}

.button__text > span > :last-child {
  margin-bottom: 0;
}

.button--text-animated:hover .button__text > span,
.button--text-animated:focus-visible .button__text > span {
  transform: translateY(calc(-100% - 0.25em));
}

@media (prefers-reduced-motion: reduce) {
  .button__text > span {
    transition: none;
  }

  .button--text-animated:hover .button__text > span,
  .button--text-animated:focus-visible .button__text > span {
    transform: none;
  }
}

.button--secondary {
  border-color: var(--color-neutral-0);
  background: var(--color-neutral-0);
  color: var(--color-text);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--color-neutral-200);
  background: var(--color-neutral-100);
}

.button:hover,
.button:focus-visible {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}

.button--secondary:hover {
  border-color: var(--color-neutral-0);
  background: var(--color-neutral-0);
}

.button:focus-visible,
a:focus-visible {
  outline: var(--focus-ring-width) solid rgb(var(--color-primary-rgb) / 0.28);
  outline-offset: var(--focus-ring-offset);
}

.page-content,
.not-found {
  padding-block: var(--space-18);
}

.entry__title,
.not-found__title {
  margin-bottom: var(--space-6);
  font-size: clamp(36px, 5vw, var(--font-size-5xl));

  letter-spacing: var(--letter-spacing-default);
}

.entry__content {
  max-width: var(--container-content);
}

.not-found__eyebrow {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.not-found__description {
  max-width: 560px;
  color: var(--color-muted);
}

@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-4);
  }
}
