/* Khaldora — brand stylesheet */

:root {
  --bg: #0b0a09;
  --bg-elev: #121010;
  --gold: #c9a063;
  --gold-soft: #dcc298;
  --gold-dim: #7d6845;
  --text: #e9e3d8;
  --muted: #948b7d;
  --rule: rgba(201, 160, 99, 0.18);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Warm ambient glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 50% 22%, rgba(201, 160, 99, 0.10), transparent 65%),
    radial-gradient(40rem 40rem at 50% 100%, rgba(201, 160, 99, 0.05), transparent 70%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  gap: 1.75rem;
}

.hero__logo {
  width: 168px;
  max-width: 46vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 42px rgba(201, 160, 99, 0.22));
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding-left: 0.42em; /* optical balance for the trailing letter-space */
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: min(340px, 70vw);
  color: var(--gold-dim);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
}
.rule__mark {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.75;
}

.hero__lede {
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  max-width: 30ch;
}

.hero__text {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 2;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin: 0 1.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.15rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--gold-soft); }

.footer__mail { color: var(--gold-soft); letter-spacing: 0.02em; }

.footer__legal { margin: 0; color: #6e675c; font-size: 0.75rem; }

/* ---------- Inner / legal pages ---------- */

.topbar {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  margin: 0 1.5rem;
}
.topbar img { width: 64px; height: auto; display: inline-block; }

.doc {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.doc h1 {
  font-size: 1.9rem;
  font-weight: normal;
  line-height: 1.25;
  color: var(--gold-soft);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.doc .updated {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2.75rem;
}

.doc h2 {
  font-size: 1.08rem;
  font-weight: normal;
  color: var(--gold);
  margin: 2.75rem 0 0.65rem;
  letter-spacing: 0.02em;
}

.doc p, .doc li { color: #c4bcae; }
.doc p { margin: 0 0 1.1rem; }
.doc ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc strong { color: var(--text); font-weight: normal; }

.callout {
  border-left: 2px solid var(--gold-dim);
  padding: 0.25rem 0 0.25rem 1.15rem;
  margin: 0 0 1.6rem;
}

.back {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.back:hover { color: var(--gold-soft); text-decoration: none; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.22s; }
.reveal:nth-child(3) { animation-delay: 0.34s; }
.reveal:nth-child(4) { animation-delay: 0.46s; }
.reveal:nth-child(5) { animation-delay: 0.58s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 4.5rem; gap: 1.4rem; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.34em; }
  .hero__lede { font-size: 1.14rem; }
  .doc h1 { font-size: 1.6rem; }
}
