/* ===== COLOR PALETTE ===== */
:root {
  /* Background Colors */
  --bg-darkest: #1c1a16;
  --bg-darker: #181614;
  --bg-dark: #2a2722;
  --bg-medium: #2e2b27;
  --bg-light: #3b3831;

  /* Text Colors */
  --text-primary: #e8e0cf;
  --text-secondary: #d0c8b5;
  --text-muted: #a8a090;
  --text-lightest: #f2eee3;
  --text-shadow: #0e0b06e6;

  /* Accent Colors */
  --accent-primary: #a67c52;
  --accent-secondary: #8a6642;
  --accent-tertiary: #c1a77b;
  --accent-subtle: #5c4c3a;

  /* UI Element Colors */
  --border-color: #3b3831;
  --divider-color: #4a4639;
  --shadow-color: rgba(0, 0, 0, 0.5);

  /* Game-specific colors */
  --grace-color: #3d6078;
  --spirit-color: #627457;
  --courage-color: #8a3638;
  --yellow-shiny: #d19536;

  /* Primary Color */
  --primary-color: var(--courage-color);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset and body styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-darkest);
  font-family: "EB Garamond", serif;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Headings */
h1,
h2,
h3 {
  font-family: "Cormorant SC", serif;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  font-variant: small-caps;
  text-shadow: 0.5rem 0.5rem 1.15rem var(--text-shadow);
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

/* Links */
a {
  color: var(--yellow-shiny);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Button Styling */
button,
.btn {
  border-radius: 8px;
  border: 1px solid var(--accent-secondary);
  padding: 0.75rem 1.5rem;
  font-size: 1em;
  font-weight: 600;
  font-family: "EB Garamond", serif;
  background-color: var(--accent-primary);
  color: var(--text-lightest);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 8px var(--shadow-color);
}

button:hover,
.btn:hover {
  border-color: var(--yellow-shiny);
  background-color: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

button:focus,
.btn:focus {
  outline: none;
  box-shadow: none;
}

button:focus-visible,
.btn:focus-visible {
  outline: 4px auto var(--yellow-shiny);
  outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f5c96b, #c78b2e);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f7d17d, #d49840);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #d19536, #a67528);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #d19536 rgba(255, 255, 255, 0.06);
}
