/* Fonts */
@font-face {
  font-family: 'Bitter';
  src: url('../fonts/bitter-var.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}

:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e9e1d6;
  --ink: #1f1a18;
  --clay: #c4562f;
  --gold: #b8862b;
  --leaf: #2f7a5a;
}

* { font-family: 'Karla', system-ui, sans-serif; }
.font-display { font-family: 'Bitter', Georgia, serif; font-weight: 700; }

body {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

/* Warm light wash behind the hero */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(217, 154, 43, 0.16), transparent 70%),
    radial-gradient(700px 420px at 8% 4%, rgba(196, 86, 47, 0.12), transparent 70%),
    radial-gradient(600px 400px at 50% 108%, rgba(47, 122, 90, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 92px; }

h1, h2, h3, h4, h5, h6, a { overflow-wrap: break-word; word-break: break-word; }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

a, button, input[type="button"] { -webkit-tap-highlight-color: transparent; }
nav a, footer a, button { user-select: none; -webkit-user-select: none; }

/* Nav: burger below 1220px */
.nav-desktop { display: none; }
.nav-burger { display: block; }
.nav-drop { display: flex; }
@media (min-width: 1220px) {
  .nav-desktop { display: flex; }
  .nav-burger { display: none; }
  .nav-drop { display: none !important; }
}

.nav-bg {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(31, 26, 24, 0.04), 0 8px 24px rgba(31, 26, 24, 0.05);
}
.card-flat { background: #fffdf9; border: 1px solid var(--line); }

.clay-text {
  background: linear-gradient(100deg, #c4562f, #d9673d 55%, #b8862b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-clay {
  background: linear-gradient(180deg, #d9673d, #c4562f);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid #b04a27;
  box-shadow: 0 6px 16px rgba(196, 86, 47, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-clay:hover {
  background: linear-gradient(180deg, #e2764c, #c85a32);
  box-shadow: 0 10px 24px rgba(196, 86, 47, 0.32);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: #d9bda2; background: #fffaf3; }

/* Reel cells of the preview slot */
.reel-cell {
  background: linear-gradient(180deg, #fffdf9, #f4ece0);
  border: 1px solid var(--line);
  box-shadow: inset 0 -6px 12px rgba(31, 26, 24, 0.05);
}

.pulse-soft { animation: pulseSoft 3s ease-in-out infinite; }
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 6px 16px rgba(196, 86, 47, 0.24); }
  50% { box-shadow: 0 10px 28px rgba(196, 86, 47, 0.40); }
}

.float-anim { animation: floatAnim 5s ease-in-out infinite; }
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.spin-slot { animation: spinSlot 0.45s ease-in-out infinite alternate; }
@keyframes spinSlot {
  0% { transform: translateY(-4px); }
  100% { transform: translateY(4px); }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.rule-clay {
  height: 3px;
  width: 64px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4562f, #d99a2b);
}

.footer-link { transition: color 0.2s; }
.footer-link:hover { color: var(--clay); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f2ece2; }
::-webkit-scrollbar-thumb { background: #d9c3aa; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c4562f; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-soft, .float-anim, .spin-slot { animation: none; }
}
