@import "./site/header.css";
@import "./site/content.css";
@import "./site/player.css";
@import "./site/footer.css";
@import "./ui/btn.css";
@import "./ui/scroll-nav.css";

:root {
  --bg: #f2ead7;
  --bg-paper: #fbf6e9;
  --ink: #14110c;
  --ink-soft: #3a332a;
  --muted: #7a6e5d;
  --line: #d9cfb6;
  --accent: #b4261a;
  --accent-hover: #8e1a10;
  --accent-soft: #f0d7d3;
  --shadow-sm: 0 1px 2px rgba(20, 17, 12, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 17, 12, 0.12);
  --shadow-lg: 0 20px 60px rgba(20, 17, 12, 0.18);
  --radius: 14px;
  --ease: ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-color: var(--ink) var(--bg);
  scrollbar-width: thin;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  font-family: "PT Serif", "Noto Serif", Georgia, serif;
  font-size: 100%;
  font-weight: 400;
  line-height: 1.6;
  text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}

 @media (width >=1200px) {
  html {
    font-size: calc(max(0.5vw, 0.4rem) + max(0.55vh, 0.4rem));
  }
}

@media (width >=2600px) AND (height >=1000px) {
  html {
    font-size: calc(max(0.2vw, 0.4rem) + max(1.1vh, 0.3125rem));
  }
}

html, body {
  min-height: 100%;
  margin: 0;
  min-height: 100svh;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(180, 38, 26, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 17, 12, 0.06), transparent 60%),
    var(--bg);
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100svh;
}

.wrapper {
  max-width: 75rem;
  width: 100%;
  padding: 0 1.25rem;
}

::selection {
  background: var(--accent);
  color: #fff;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

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