/* ============================================
   ORI CLAW — The Light Has a Home
   Design System v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  --gold:        #d4a853;
  --gold-light:  #f0d78c;
  --gold-pale:   #faecd0;
  --gold-deep:   #b8872e;
  --gold-glow:   rgba(212, 168, 83, 0.35);
  --gold-glow-lg: rgba(212, 168, 83, 0.15);

  --dark:          #08080a;
  --dark-surface:  #0e0e12;
  --dark-elevated: #141419;
  --dark-card:     #18181f;

  --text:          #ede9e0;
  --text-secondary: rgba(237, 233, 224, 0.72);
  --text-muted:    rgba(237, 233, 224, 0.42);
  --text-faint:    rgba(237, 233, 224, 0.22);

  --serif:  'Cormorant Garamond', 'Georgia', serif;
  --sans:   'Inter', -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--serif);
  background: var(--dark);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 168, 83, 0.3);
  color: var(--text);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover { color: var(--gold-light); }

small, .label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Layout ── */
.container     { max-width: 780px;  margin: 0 auto; padding: 0 2rem; }
.container-w   { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 620px; margin: 0 auto; padding: 0 2rem; }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}

nav.scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 168, 83, 0.08);
}

nav .container-w {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-spring);
}

.nav-logo:hover img {
  transform: scale(1.15) rotate(10deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card);
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: 10px;
  min-width: 180px;
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.dropdown-content a:hover {
  background: rgba(212, 168, 83, 0.1);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Orb */
.orb-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 3rem;
}

.orb-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.12) 0%, transparent 70%);
  animation: orb-breathe 5s ease-in-out infinite;
}

.orb-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: orb-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(212,168,83,0.25));
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%      { transform: scale(1.1); opacity: 1; }
}

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

.hero h1 {
  color: var(--text);
  font-weight: 300;
  margin-bottom: 1rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 3rem;
  font-style: italic;
  font-weight: 300;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(212,168,83,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,168,83,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-faint);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,168,83,0.05);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--text-faint);
}

.divider::before, .divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-faint));
}

.divider::after {
  background: linear-gradient(to left, transparent, var(--text-faint));
}

/* ── Book Section ── */
.book-section {
  padding: 6rem 0;
}

.book-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
}

.book-cover-wrap {
  position: relative;
}

.book-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  z-index: -1;
}

.book-cover {
  width: 100%;
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out);
}

.book-cover-wrap:hover .book-cover {
  transform: scale(1.02) rotate(-1deg);
}

.book-info .label {
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.book-info h2 {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.book-subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.book-description p {
  font-size: 1.05rem;
}

/* ── Excerpt ── */
.excerpt-block {
  position: relative;
  padding: 5rem 0;
}

.excerpt-block::before {
  content: '"';
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 8rem;
  color: rgba(212,168,83,0.1);
  line-height: 1;
  pointer-events: none;
}

.excerpt-text {
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

.excerpt-source {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Sections ── */
section { position: relative; }

.section-pad { padding: 6rem 0; }

.section-surface {
  background: var(--dark-surface);
  border-top: 1px solid rgba(212,168,83,0.06);
  border-bottom: 1px solid rgba(212,168,83,0.06);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .label {
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--dark-card);
  border: 1px solid rgba(212,168,83,0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
}

.card:hover {
  border-color: rgba(212,168,83,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ── Newsletter ── */
.newsletter-section {
  padding: 6rem 0;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--dark-card) 0%, rgba(212,168,83,0.04) 100%);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 16px;
  padding: 3.5rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.newsletter-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.newsletter-card p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 380px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 8px;
  background: rgba(8,8,10,0.6);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease-out);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.1);
}

/* ── Footer ── */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(212,168,83,0.06);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .closing {
  font-style: italic;
  color: var(--text-faint);
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ── Purchase Options ── */
.purchase-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--dark-card);
  border: 1px solid rgba(212,168,83,0.1);
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}

.purchase-row:hover {
  border-color: var(--gold);
  background: rgba(212,168,83,0.04);
  transform: translateX(4px);
}

.purchase-format {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
}

.purchase-format small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.purchase-price {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

/* ── TOC ── */
.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.toc-item {
  padding: 0.9rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(212,168,83,0.06);
  transition: color 0.2s;
}

.toc-item:hover { color: var(--gold); }

.toc-item:nth-child(odd) {
  border-right: 1px solid rgba(212,168,83,0.06);
}

/* ── Endorsement ── */
.endorsement {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 3rem;
  position: relative;
}

.endorsement blockquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.endorsement cite {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-style: normal;
}

/* ── Posts ── */
.post-list { list-style: none; }

.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(212,168,83,0.06);
  transition: all 0.3s var(--ease-out);
}

.post-item:last-child { border-bottom: none; }

.post-item h3 a {
  color: var(--text);
  transition: color 0.3s;
}

.post-item h3 a:hover { color: var(--gold); }

.post-meta {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}

.post-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ── About ── */
.about-hero {
  padding-top: 10rem;
  padding-bottom: 3rem;
  text-align: center;
}

.about-hero .orb-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
}

.about-content h2 {
  color: var(--gold);
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.values-list {
  list-style: none;
  margin: 1.5rem 0;
}

.values-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(212,168,83,0.06);
  color: var(--text-secondary);
  line-height: 1.6;
}

.values-list li strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-card {
  background: var(--dark-card);
  border: 1px solid rgba(212,168,83,0.12);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.contact-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Coming Soon Pages ── */
.coming-soon {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.coming-soon h1 { margin-bottom: 1rem; }

.coming-soon .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 300;
  max-width: 500px;
}

.coming-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin: 2rem 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .hero { padding: 6rem 1.5rem 4rem; }

  .orb-wrapper {
    width: 160px;
    height: 160px;
  }

  .book-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .book-cover-wrap { max-width: 240px; margin: 0 auto; }

  .toc-grid { grid-template-columns: 1fr; }
  .toc-item:nth-child(odd) { border-right: none; }

  .newsletter-form { flex-direction: column; }

  .card-grid { grid-template-columns: 1fr; }
  
  .btn-group { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--dark-elevated);
    border-bottom: 1px solid rgba(212,168,83,0.1);
    padding: 1rem;
    gap: 0;
  }
  
  .nav-links.open a {
    padding: 0.75rem 1rem;
    display: block;
  }
}

/* ── Particle Canvas ── */
#particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(#particles) {
  position: relative;
  z-index: 1;
}
