/* GoldWatch — editorial dark theme. Palette per PRODUCT.md (OKLCH). */
:root {
  --bg: oklch(0.10 0 0);
  --surface: oklch(0.15 0.006 70);
  --ink: oklch(0.93 0.01 80);
  --muted: oklch(0.68 0.015 75);
  --gold: oklch(0.78 0.125 68);
  --gold-deep: oklch(0.62 0.11 68);
  --buy: oklch(0.75 0.14 150);
  --sell: oklch(0.66 0.19 25);
  --hairline: oklch(0.30 0.02 70);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-progress: 10;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.en { font-size: 0.62em; letter-spacing: 0.06em; color: var(--muted); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }

.buy { color: var(--buy); }
.sell { color: var(--sell); }
.wait { color: var(--gold); }

/* ---- scroll progress ---- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  z-index: var(--z-progress);
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transform-origin: right; /* RTL: grows from the right */
}

/* ---- hero ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  gap: 1.25rem;
}
.hero-brand {
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  color: var(--gold);
}
.hero-decision {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 6rem);
  line-height: 1.15;
  text-wrap: balance;
}
.hero-sub { font-size: 1.15rem; color: var(--ink); }
.hero-date { color: var(--muted); font-size: 0.95rem; }
.hero-scroll {
  margin-top: 3rem;
  color: var(--gold-deep);
  font-size: 1.4rem;
  animation: drift 2.6s var(--ease-out) infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ---- chapters ---- */
.chapters {
  max-width: 44rem;
  margin-inline: auto;
  padding: 0 1.5rem 6rem;
}
.chapter {
  padding-block: 6rem 4rem;
}
.chapter + .chapter { border-top: 1px solid var(--hairline); }

.chapter-date {
  font-family: 'Amiri', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}
.chapter-decision {
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.2;
  margin-block: 0.5rem 0.25rem;
}
.chapter-confidence { color: var(--muted); margin-bottom: 2.5rem; }

.prose p {
  font-size: 1.2rem;
  max-width: 65ch;
  text-wrap: pretty;
}

/* ---- trade setup: numbers as typography on a hairline grid ---- */
.trade-setup { margin-top: 3.5rem; }
.setup-title {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.setup-grid { border-top: 1px solid var(--hairline); }
.setup-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.setup-row dt { color: var(--muted); font-size: 0.95rem; }
.setup-row dd {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold);
}
.setup-reasoning {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 65ch;
}

/* ---- agent voices ---- */
.voices { margin-top: 3.5rem; }
.voices-title {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.voice-list { list-style: none; padding: 0; display: grid; gap: 2rem; }
.voice-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.voice-name { font-weight: 600; font-size: 1.05rem; }
.voice-meta { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.voice-dir { font-weight: 500; }
.voice-weight {
  display: block;
  height: 1px;
  margin-block: 0.5rem;
  background: linear-gradient(to left, var(--gold) var(--w), var(--hairline) var(--w));
}
.voice-text { color: var(--muted); font-size: 1.02rem; max-width: 65ch; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--hairline);
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-meta { margin-top: 0.5rem; font-size: 0.85rem; }

/* ---- motion: enhance-only reveals (content visible without JS) ---- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  html.js [data-reveal].in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
}
