:root {
  color-scheme: light;
  --font-sans: "Noto Sans SC";
  --page-bg: #f3eadf;
  --page-bg-deep: #ebdccb;
  --surface: rgba(255, 249, 241, 0.9);
  --surface-strong: #fff8ef;
  --surface-dark: #1b120f;
  --text-primary: #1f1713;
  --text-secondary: #6f5c54;
  --text-inverse: #fff6ef;
  --accent-red: #922a1d;
  --accent-orange: #c86a23;
  --accent-gold: #b78848;
  --accent-plum: #5b2f2f;
  --line-soft: rgba(57, 32, 23, 0.12);
  --line-strong: rgba(57, 32, 23, 0.22);
  --shadow-soft: 0 24px 60px rgba(58, 33, 25, 0.1);
  --shadow-strong: 0 36px 90px rgba(41, 22, 15, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 2rem));
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(195, 116, 44, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(145, 42, 29, 0.16), transparent 22%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
  font-family:
    var(--font-sans),
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  color: var(--text-inverse);
  background: rgba(146, 42, 29, 0.8);
}

:focus-visible {
  outline: 3px solid rgba(200, 106, 35, 0.4);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--text-inverse);
  background: var(--surface-dark);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
