@import url("./layout.css");
@import url("./components.css");

:root {
  --page-bg: #f7f7f3;
  --surface: #ffffff;
  --surface-alt: #eef5f3;
  --ink: #1e2931;
  --muted: #647178;
  --line: #d9dfdd;
  --teal: #2a9d8f;
  --teal-dark: #176d66;
  --gold: #f2a93b;
  --red: #c44d58;
  --blue: #355070;
  --shadow: 0 18px 45px rgba(30, 41, 49, 0.09);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-leave {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes view-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes view-fade-out {
  to {
    opacity: 0;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.is-page-ready body {
  animation: page-enter 220ms ease-out both;
}

.is-page-leaving body {
  animation: page-leave 140ms ease-in both;
}

::view-transition-old(root) {
  animation: view-fade-out 160ms ease-in both;
}

::view-transition-new(root) {
  animation: view-fade-in 220ms ease-out both;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

noscript {
  display: block;
  padding: 16px;
  color: var(--red);
  background: #fff4f4;
  border-top: 1px solid #f0c8c8;
}
