/* === BASE === */
:root {
  --bg: #faf6ef;
  --fg: #1a1a1a;
  --fg-muted: #6b5f50;
  --accent: #c9a84c;
  --accent-dark: #a8863a;
  --forest: #1a2e1a;
  --forest-light: #2d4a2d;
  --brown: #4a3728;
  --cream: #f0e8d8;
  --cream-dark: #e2d5c0;
  --border: #d4c9b5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  --radius: 4px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

em { font-style: italic; color: var(--accent-dark); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--forest);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.section-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--space-lg);
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--forest); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 var(--space-lg);
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(26, 46, 26, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--bg) 50%, #f5f0e6 100%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: var(--space-2xl) 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 0.95;
}

.title-line-1, .title-line-2 { color: var(--forest); }
.title-line-3, .title-line-4 { color: var(--accent); }
.title-line-4 { font-style: italic; }

.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-ornament {
  position: relative;
  z-index: 1;
  width: 200px;
  opacity: 0.6;
  padding: var(--space-2xl) 0;
}

/* === STATS === */
.stats-row {
  background: var(--forest);
  padding: var(--space-lg) var(--space-lg);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* === SECTIONS === */
.section-inner, .robes-inner, .fantasy-inner, .worlds-inner, .closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === BREEDING === */
.breeding-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.breeding-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.breeding-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.breeding-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74, 55, 40, 0.1);
}

.breeding-card--main {
  background: var(--forest);
  color: white;
}

.breeding-card--main h3 { color: var(--accent); margin-bottom: 0.75rem; font-size: 1.3rem; }
.breeding-card--main p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; }

.card-visual {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.card-coat-swatch {
  flex: 1;
  height: 48px;
  border-radius: var(--radius);
}

.coat-swatch--bay { background: linear-gradient(135deg, #8B5E3C, #6B4226); }
.coat-swatch--grey { background: linear-gradient(135deg, #9E9E9E, #757575); }
.coat-swatch--black { background: linear-gradient(135deg, #3D3D3D, #1a1a1a); }

.card-icon { margin-bottom: 1rem; }
.breeding-card h3 { color: var(--forest); margin-bottom: 0.5rem; font-size: 1.1rem; }
.breeding-card p { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.6; }

/* === ROBES === */
.robes-section {
  padding: var(--space-2xl) 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.robes-header { margin-bottom: var(--space-xl); }

.robe-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.robe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.robe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74, 55, 40, 0.12);
}

.robe-swatch {
  height: 80px;
  width: 100%;
}

.robe-swatch--alezan { background: linear-gradient(135deg, #c67a31, #a85f20); }
.robe-swatch--isabelle { background: linear-gradient(135deg, #d4a44a, #b8862e); }
.robe-swatch--noir { background: linear-gradient(135deg, #2a2a2a, #111); }
.robe-swatch--arc { background: linear-gradient(135deg, #e05050, #9050c0, #4080e0, #40c080, #e0c040); }
.robe-swatch--dragon { background: linear-gradient(135deg, #6b1a1a, #c04020, #803010); }
.robe-swatch--chimere { background: linear-gradient(135deg, #1a3060, #3060a0, #60a0e0, #3060a0, #1a3060); }

.robe-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.robe-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}

.robe-tier {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier--common { color: #888; }
.tier--uncommon { color: #4a7c59; }
.tier--rare { color: #3a5a8a; }
.tier--legendary { color: #8a4a00; }
.tier--mythic { color: #6a2060; }

.robes-footnote {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
  text-align: center;
  opacity: 0.7;
}

/* === FANTASY === */
.fantasy-section {
  padding: var(--space-2xl) 0;
  background: var(--forest);
  color: white;
}

.fantasy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.fantasy-text .section-tag { color: var(--accent); }
.fantasy-text .section-title { color: white; }
.fantasy-text .section-body { color: rgba(255,255,255,0.65); }

.species-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.species-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.species-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.fantasy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.creature-ring {
  position: relative;
  width: 260px;
  height: 260px;
}

.ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-orbit {
  position: absolute;
  border: 1px dashed rgba(201, 168, 76, 0.25);
  border-radius: 50%;
}

.ring-orbit--1 {
  width: 260px;
  height: 260px;
  top: 0;
  left: 0;
}

.ring-orbit--2 {
  width: 180px;
  height: 180px;
  top: 40px;
  left: 40px;
}

.ring-orbit--3 {
  width: 100px;
  height: 100px;
  top: 80px;
  left: 80px;
}

.ring-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.ring-icon--pegasus {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a0c0e0, #7090b0);
  opacity: 0.6;
}

.ring-icon--unicorn {
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #d0b0f0, #9060c0);
  opacity: 0.6;
}

.ring-icon--donkey {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a09080, #706050);
  opacity: 0.5;
}

/* === WORLDS === */
.worlds-section {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.worlds-header { margin-bottom: var(--space-xl); }

.kingdoms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.kingdom-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  transition: transform var(--transition), box-shadow var(--transition);
}

.kingdom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(74, 55, 40, 0.1);
}

.kingdom-icon {
  margin-bottom: 1rem;
  color: var(--accent);
}

.kingdom-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.kingdom-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.kingdom-meta {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* === CLOSING === */
.closing-section {
  padding: var(--space-2xl) 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
}

.closing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.closing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.closing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest);
}

/* === FOOTER === */
.site-footer {
  background: var(--forest);
  padding: var(--space-lg) 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
}

.footer-meta p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-ornament { display: none; }
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
  .breeding-grid { grid-template-columns: 1fr 1fr; }
  .breeding-card--main { grid-column: span 2; }
  .robe-grid { grid-template-columns: repeat(3, 1fr); }
  .fantasy-inner { grid-template-columns: 1fr; }
  .fantasy-visual { display: none; }
  .kingdoms-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 3rem; }
  .breeding-grid { grid-template-columns: 1fr; }
  .breeding-card--main { grid-column: span 1; }
  .robe-grid { grid-template-columns: repeat(2, 1fr); }
  .kingdoms-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-meta p { text-align: left; }
}