/* Landing page only — panel-grid dark theme. Scoped here so /css/style.css
   (shared by every other page) stays untouched. */

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

:root {
  --bg: #0A0908;
  --surface: #141210;
  --surface-hover: #1B1814;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --accent: #E8A15E;
  --accent-grad: linear-gradient(135deg, #F2A65A, #F6C89A);
  --text: #F5F3EF;
  --text-muted: #9AA0B4;
  --radius: 18px;
  --radius-pill: 9999px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.6s ease-out both; }
  .hero .reveal:nth-child(2) { animation-delay: 0.06s; }
  .hero .reveal:nth-child(3) { animation-delay: 0.12s; }
  .hero .reveal:nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #14100A;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- nav ---------- */

.site-nav { padding: 1.4rem 2rem; }

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #14100A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.primary-nav {
  display: flex;
  gap: 1.6rem;
  margin: 0 auto;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--text); }

.nav-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-icon:hover, .nav-icon:focus-visible { color: var(--text); border-color: var(--border-strong); }
.nav-icon svg { width: 18px; height: 18px; }

/* ---------- main / shared section rhythm ---------- */

main {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  flex: 1;
}

main > section { margin: 5rem 0; }

.section-heading { max-width: 60ch; margin-bottom: 1.6rem; }

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  max-width: 100vw;
  background: radial-gradient(circle, rgba(232, 161, 94, 0.16), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

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

.badge {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.hero-photo {
  max-width: 720px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: right;
}

.hero-headline {
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 26ch;
  margin: 0 auto;
}

.hero-headline .muted {
  color: var(--text-muted);
  font-weight: 800;
}

.hero-sub {
  margin: 1.4rem auto 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- buttons ---------- */

.btn-primary,
.btn-outline,
.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.2s, background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent-grad);
  color: #14100A;
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-1px); opacity: 0.92; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--border-strong); background: var(--surface-hover); }

.btn-outline-accent {
  border: 1px solid rgba(232, 161, 94, 0.4);
  color: var(--accent);
}
.btn-outline-accent:hover, .btn-outline-accent:focus-visible { border-color: var(--accent); background: rgba(232, 161, 94, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.link-arrow::after { content: '→'; font-size: 0.85rem; transition: transform 0.2s; }
.link-arrow:hover, .link-arrow:focus-visible { color: var(--accent); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: translateX(2px); }

/* ---------- panels (generic) ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- showcase (book) ---------- */

.book-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.book-body { display: flex; flex-direction: column; }

.eyebrow-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.book-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.byline {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.book-body p.description {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.panel-cta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

/* ---------- about ---------- */

.about-panel {
  padding: 2.4rem;
}

.about-panel h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.about-panel p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 68ch;
}

.about-panel p + p { margin-top: 1.1rem; }

.pull-quote {
  margin: 1.6rem 0;
  padding: 1rem 0 1rem 1.3rem;
  border-left: 3px solid var(--accent);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  max-width: 60ch;
}

/* ---------- feature grid (elsewhere) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s ease;
}

.feature-card:hover, .feature-card:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(232, 161, 94, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.icon-badge svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-card .link-arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.footer-nav {
  display: flex;
  gap: 1.4rem;
  margin-right: auto;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--text); }

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero-headline { font-size: 2.3rem; max-width: none; }
  .book-panel { grid-template-columns: 120px 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
}

@media (max-width: 560px) {
  .book-panel { grid-template-columns: 1fr; }
  .book-cover { max-width: 140px; margin: 0 auto; }
  main > section { margin: 3.2rem 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { margin-right: 0; }
}
