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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(120% 55% at 84% -14%, rgba(255, 107, 0, 0.09), transparent 60%),
    radial-gradient(90% 45% at -6% -4%, rgba(28, 24, 18, 0.7), transparent 55%);
  background-attachment: fixed;
  color: var(--c-ink);
  font-family: var(--font-ui);
  font-size: var(--fs-300);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* SECTION: Faint dark treeline behind the main column */
body::after {
  content: "";
  position: fixed;
  inset-block-start: var(--topbar-h);
  inset-inline: 0;
  block-size: 44vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%23151511' d='M0 260V150l38 16 16-66 22 70 30-40 18-58 22 72 34 20 22-62 26 66 30-30 20-52 26 70 40 18 22-64 30 58 26-24 22 56 34 14 20-60 28 62 30-26 22 54 36 16 24-58 26 60 30-22 22 52 34 14 22-56 28 58 30V260z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom center;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 88%);
  mask-image: linear-gradient(#000 0%, transparent 88%);
}

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

img {
  height: auto;
}

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

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: break-word;
}

/* SECTION: Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-surface-3) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--c-surface-3);
  border-radius: 10px;
}

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