/* ============================================
   THE GOLDEN RULE — Design Tokens
   ============================================ */
:root {
  /* Color */
  --gold-bright: #F2B705;
  --gold-mid: #E0A415;
  --gold-deep: #B8780C;
  --gold-glow: #FFD964;
  --indigo-deep: #4B2A8F;
  --royal-purple: #4B2A8F;
  --royal-purple-light: #6B42B8;
  --black-void: #0A0712;
  --gold-light-text: #F7E7B4;
  --gold-light-text-dim: #EAD9A0;
  --ink-on-gold: #1A1033;
  --ink-on-gold-soft: #2E2147;
  --shadow-ink: rgba(10, 7, 18, 0.55);
  --shadow-ink-soft: rgba(10, 7, 18, 0.35);
  --glow-on-ink: 0 0 18px rgba(255, 217, 100, 0.35);
  --card-border: rgba(247, 231, 180, 0.35);
  --card-border-hover: rgba(255, 217, 100, 0.85);
  --gloss-highlight: rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gold-bright);
  color: var(--ink-on-gold);
  overflow-x: hidden;
  cursor: default;
  position: relative;
}

/* ============================================
   AMBIENT GOLD BACKGROUND
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, var(--gold-glow) 0%, var(--gold-bright) 35%, var(--gold-mid) 70%, var(--gold-deep) 100%);
  background-image: url('assets/hero-bg.jpg'), linear-gradient(165deg, var(--gold-glow) 0%, var(--gold-bright) 35%, var(--gold-mid) 70%, var(--gold-deep) 100%);
  background-size: cover, cover;
  background-position: center top, center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
  background-size: 180px 180px, 240px 240px, 120px 120px;
  background-position: 0 0, 60px 90px, 130px 30px;
  pointer-events: none;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  0% { background-position: 0 0, 60px 90px, 130px 30px; }
  100% { background-position: 180px 180px, 300px 330px, 250px 150px; }
}

.edge-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(255, 255, 255, 0.95) 96%),
    linear-gradient(to right, rgba(255, 255, 255, 0.85) 0%, transparent 12%, transparent 88%, rgba(255, 255, 255, 0.85) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, transparent 10%, transparent 90%, rgba(255, 255, 255, 0.85) 100%);
}

main {
  position: relative;
  z-index: 1;
}

/* ============================================
   CUSTOM CARD CURSOR
   ============================================ */
.card:not(.card--blank) {
  cursor: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%202%20L3%2020%20L8%2016%20L11%2022%20L14%2020.5%20L11%2014.5%20L17%2014.5%20Z%22%20fill%3D%22%234B2A8F%22%20stroke%3D%22%23F7E7B4%22%20stroke-width%3D%221%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E') 3 2, pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
}

.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 217, 100, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1.05;
  color: var(--ink-on-gold);
  text-shadow: var(--glow-on-ink), 0 2px 6px rgba(255, 217, 100, 0.4);
  letter-spacing: 0.01em;
}

.hero__rule {
  width: 80px;
  height: 2px;
  margin: 1.75rem auto 2rem;
  background: linear-gradient(90deg, transparent, var(--ink-on-gold), transparent);
  opacity: 0.45;
}

.hero__text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink-on-gold-soft);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero__text p {
  margin-bottom: 1.25rem;
}

.hero__text p:last-child {
  margin-bottom: 0;
  font-size: 1.35rem;
}

/* ============================================
   QUOTE GRID
   ============================================ */
.grid-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}

.card {
  position: relative;
  padding: 2.25rem 2rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--royal-purple-light) 0%, var(--royal-purple) 35%, var(--black-void) 100%);
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 32px rgba(10, 7, 18, 0.35), 0 2px 8px rgba(10, 7, 18, 0.25);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, var(--gloss-highlight) 48%, transparent 62%);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: rotate(20deg);
  pointer-events: none;
}

.card--blank {
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.card--blank::before,
.card--blank::after {
  display: none;
}

.card:not(.card--blank):hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px rgba(10, 7, 18, 0.45), 0 0 0 1px rgba(255, 217, 100, 0.15), 0 0 32px rgba(255, 217, 100, 0.18);
  transform: translateY(-3px);
}

.card__quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--gold-light-text);
  margin-bottom: 1.25rem;
}

.card__source {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light-text-dim);
  opacity: 0.85;
}

.card--signature {
  border-color: var(--card-border);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.site-footer__inner {
  max-width: 600px;
  margin: 0 auto;
}

.site-footer__line {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-on-gold-soft);
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: var(--ink-on-gold);
  text-decoration: underline;
  text-decoration-color: rgba(26, 16, 51, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  font-style: normal;
  transition: text-decoration-color 0.3s ease, opacity 0.3s ease;
}

.site-footer a:hover {
  text-decoration-color: var(--ink-on-gold);
  opacity: 0.7;
}

.site-footer__copyright {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--ink-on-gold-soft);
  opacity: 0.75;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 700px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card--blank {
    display: none;
  }

  .hero {
    padding: 5rem 1.25rem 3.5rem;
  }

  .card {
    padding: 1.85rem 1.5rem;
  }

  .card__quote {
    font-size: 1.15rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible {
  outline: 2px solid var(--ink-on-gold);
  outline-offset: 3px;
}

.card:focus-visible {
  outline: 2px solid var(--gold-light-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after {
    animation: none;
  }

  .card {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
