/* ─── CSS VARIABLES ──────────────────────────────────────────────────────── */
:root {
  --bg: #f5efe7;
  --panel: rgba(255, 251, 245, 0.93);
  --panel-strong: #fffaf4;
  --text: #201913;
  --muted: #6c6258;
  --line: rgba(64, 50, 38, 0.12);
  --accent: #b85f3d;
  --green: #24584a;
  --blue: #2767a5;
  --yellow: #a56b1f;
  --shadow: 0 24px 70px rgba(44, 32, 22, 0.12);
  --radius: 24px;
  --radius-sm: 12px;
  --topbar-h: 64px;
  --nav-w: 240px;
  --transition: 0.22s ease;
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  background: radial-gradient(circle at top left, rgba(184,95,61,0.14), transparent 26%),
              radial-gradient(circle at top right, rgba(36,88,74,0.12), transparent 24%),
              linear-gradient(180deg, #f9f4ec 0%, #ece0d2 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(64,50,38,0.25);
}

/* ─── UTILITY ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
