:root {
  --font-serif: "Newsreader", serif;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-num:
    "Newsreader",
    Georgia,
    serif;
  --glass-blur: 18px;
  --panel-radius: 12px;
  --radius-sharp: 2px;
  --radius-soft: 4px;
  --radius-card: 6px;
  --bg-color: #F5F4F0;
  --bg-secondary: #ECEAE4;
  --text-color: #1E1E1C;
  --text-muted: rgba(30, 30, 28, .65);
  --text-subtle: rgba(30, 30, 28, .58);
  --accent: #1E1E1C;
  --accent-muted: rgba(30, 30, 28, .14);
  --border-color: rgba(30, 30, 28, .16);
  --border-subtle: rgba(30, 30, 28, .09);
  --particle-color:
    30,
    30,
    28;
  --glass-bg: color-mix(in srgb, var(--bg-color) 84%, transparent);
  --glass-blur: blur(16px) saturate(1.08);
  --glass-bg: rgba(245, 244, 240, .88);
  --glass-border: rgba(30, 30, 28, .1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, .04);
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, .3);
  --accent-blue: #5c6e7e;
  --accent-blue-strong: #465663;
  --accent-blue-soft: rgba(92, 110, 126, .08);
  --accent-warn: #8c5c50;
  --accent-warn-soft: rgba(140, 92, 80, .07);
  --accent-good: #5f7265;
  --accent-good-soft: rgba(95, 114, 101, .08);
  --rating-star: #b07d18;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .03), 0 4px 16px rgba(0, 0, 0, .03);
  --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, .06), 0 12px 34px rgba(0, 0, 0, .06);
}
body.dark-mode {
  --bg-color: #1A1A18;
  --bg-secondary: #242422;
  --text-color: #F0EEE6;
  --text-muted: rgba(240, 238, 230, .78);
  --text-subtle: rgba(240, 238, 230, .5);
  --accent: #F0EEE6;
  --accent-muted: rgba(240, 238, 230, .16);
  --border-color: rgba(240, 238, 230, .16);
  --border-subtle: rgba(240, 238, 230, .1);
  --particle-color:
    240,
    238,
    230;
  --glass-bg: rgba(26, 26, 24, .9);
  --glass-border: rgba(240, 238, 230, .12);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, .3);
  --accent-blue: #8fa8b8;
  --accent-blue-strong: #a7bdca;
  --accent-blue-soft: rgba(143, 168, 184, .12);
  --accent-warn: #c09080;
  --accent-warn-soft: rgba(192, 144, 128, .1);
  --accent-good: #8aaa95;
  --accent-good-soft: rgba(138, 170, 149, .12);
  --rating-star: #d9a521;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .25), 0 4px 18px rgba(0, 0, 0, .22);
  --shadow-card-hover: 0 2px 10px rgba(0, 0, 0, .35), 0 14px 38px rgba(0, 0, 0, .34);
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
img,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s ease, color .4s ease;
}
::-moz-selection {
  background: var(--accent);
  color: var(--bg-color);
}
::selection {
  background: var(--accent);
  color: var(--bg-color);
}
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 72ch;
}
.container--tight {
  max-width: 48ch;
}
.serif {
  font-family: var(--font-serif);
}
.mono {
  font-family: var(--font-mono);
}
.section-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.stagger.visible > *:nth-child(1) {
  transition-delay: 0ms;
}
.stagger.visible > *:nth-child(2) {
  transition-delay: .1s;
}
.stagger.visible > *:nth-child(3) {
  transition-delay: .2s;
}
.stagger.visible > *:nth-child(4) {
  transition-delay: .3s;
}
.stagger.visible > *:nth-child(5) {
  transition-delay: .4s;
}
.stagger.visible > *:nth-child(6) {
  transition-delay: .5s;
}
.stagger.visible > * {
  opacity: 1;
  transform: none;
}
.text-link {
  color: var(--text-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--border-color);
  transition: text-decoration-color .2s ease, opacity .2s ease;
}
.text-link:hover {
  text-decoration-color: var(--text-color);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--bg-color);
  background: var(--text-color);
  border: 1px solid var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover {
  opacity: .85;
}
.btn:active {
  transform: scale(.98);
}
.btn--ghost {
  color: var(--text-color);
  background: transparent;
  border-color: var(--border-color);
}
.btn--ghost:hover {
  border-color: var(--text-color);
  opacity: 1;
}
@media (prefers-reduced-motion:reduce) {
  .fade-up,
  .stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
  body {
    transition: none;
  }
}
