/* =========================================================
   BTC HUNTER TEA — BASE STYLESHEET
   Design tokens, reset, typography, animation primitives
   ========================================================= */

:root {
  /* ---- Colour tokens ---- */
  --tea-950: #0E2419;
  --tea-900: #163C2C;
  --tea-800: #1E4E38;
  --tea-700: #29684A;
  --tea-600: #357E5C;
  --tea-tint: #EAF1EC;

  --leaf-600: #4C8A54;
  --leaf-500: #5FA267;
  --leaf-400: #7DB884;
  --leaf-100: #E3EEE1;

  --gold-700: #8F6A24;
  --gold-600: #B8862E;
  --gold-500: #CB9B3E;
  --gold-400: #DFB65E;
  --gold-200: #F0D99A;
  --gold-100: #FAEDCE;

  --white: #FFFFFF;
  --cream-50: #FDFBF6;
  --cream-100: #F7F1E2;
  --cream-200: #F0E6CC;

  --charcoal-900: #262420;
  --charcoal-700: #4A443B;
  --charcoal-500: #756E5F;
  --charcoal-300: #A69E8B;
  --border: #E7DFC9;

  /* ---- Type ---- */
  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-wide: 1360px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(22, 60, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 60, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 60, 44, 0.16);
  --ease: cubic-bezier(.25,.8,.25,1);
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  color: var(--charcoal-900);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--tea-900);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

p { color: var(--charcoal-700); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--charcoal-700); line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tea-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}
.eyebrow--light { color: var(--gold-300, var(--gold-200)); }
.eyebrow--light::before { background: var(--gold-400); }

em, .accent-italic { font-family: var(--font-display); font-style: italic; color: var(--leaf-600); font-weight: 500; }

/* ---------------- Layout helpers ---------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--cream { background: var(--cream-100); }
.section--tea { background: var(--tea-900); color: var(--cream-100); }
.section--tea h2, .section--tea h3, .section--tea h4 { color: var(--white); }
.section--tea p { color: rgba(247,241,226,0.8); }

.grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------------- Reveal-on-scroll ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="zoom"].is-visible { transform: scale(1); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Keyframes ---------------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes steamRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  15% { opacity: .55; }
  100% { transform: translateY(-46px) scaleX(1.4); opacity: 0; }
}
@keyframes infuse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes leafDrift {
  0% { transform: translate(0,0) rotate(0deg); }
  100% { transform: translate(var(--dx,40px), var(--dy,60px)) rotate(var(--dr,40deg)); }
}
@keyframes ripple {
  to { transform: scale(3.2); opacity: 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--cream-200) 0px, var(--cream-50) 40px, var(--cream-200) 80px);
  background-size: 800px 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--radius-sm);
}

/* ---------------- Scrollbar niceties ---------------- */
::selection { background: var(--gold-300, var(--gold-400)); color: var(--tea-950); }
