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

:root {
  --col-bg:          #FAFAF9;
  --col-header-bg:   #111827;
  --col-gold:        #C9A96E;
  --col-gold-light:  #E8D5B7;
  --col-navy:        #1A1A2E;
  --col-dark:        #111827;
  --col-text:        #1F2937;
  --col-muted:       #6B7280;
  --col-card:        #FFFFFF;
  --col-border:      #E5E7EB;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.13);
  --ease:       0.22s ease;
  --max-w:      1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--col-bg);
  color: var(--col-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--col-header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.logo-rfai {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--col-gold);
  letter-spacing: 0.02em;
}

.logo-pub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-left: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav > a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.site-nav > a:hover { color: var(--col-gold); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  padding: 3px 5px;
  transition: color var(--ease);
  line-height: 1;
}

.lang-btn:hover   { color: rgba(255,255,255,0.75); }
.lang-btn.active  { color: var(--col-gold); }
.lang-sep         { color: rgba(255,255,255,0.18); font-size: 0.7rem; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--col-header-bg);
  background-image: linear-gradient(140deg, #111827 0%, #1a1a2e 55%, #0d1117 100%);
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow from below */
.hero::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,169,110,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero .container { text-align: center; }
.hero .hero-title,
.hero .hero-sub  { margin-left: auto; margin-right: auto; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--col-gold);
  margin-bottom: 20px;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.5rem);
  font-weight: 600;
  color: #F9FAFB;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 660px;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(249,250,251,0.55);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.btn-primary {
  display: inline-block;
  background: var(--col-gold);
  color: var(--col-navy);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary:hover {
  background: var(--col-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.3);
}

/* ── Section title ───────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--col-navy);
  margin-bottom: 44px;
}

.section-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--col-gold);
  margin-top: 10px;
}

/* ── Books section ───────────────────────────────────────────────────────── */
.books-section {
  padding: 84px 0 100px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

/* ── Book card ───────────────────────────────────────────────────────────── */
.book-card {
  background: var(--col-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
  border: 1px solid var(--col-border);
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Cover */
.book-cover-link { display: block; }

.book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ECEDEF;
  position: relative;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.book-card:hover .book-cover img { transform: scale(1.04); }

/* Coming soon cover */
.book-cover--soon {
  background: linear-gradient(155deg, #1a1a2e 0%, #0d1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}

.soon-label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--col-gold);
  font-weight: 400;
  line-height: 1.15;
}

.soon-genre {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Card body */
.book-info {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

/* Badges */
.book-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-lang {
  background: var(--col-navy);
  color: var(--col-gold);
}

.badge-genre {
  background: #F3F4F6;
  color: var(--col-muted);
}

.badge-soon {
  background: rgba(201,169,110,0.1);
  color: var(--col-gold);
  border: 1px solid rgba(201,169,110,0.25);
}

/* Book text */
.book-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--col-navy);
  line-height: 1.25;
  margin-top: 2px;
}

.book-author {
  font-size: 0.82rem;
  color: var(--col-muted);
  font-style: italic;
}

.book-desc {
  font-size: 0.855rem;
  color: var(--col-muted);
  line-height: 1.65;
  flex: 1;
}

/* Action buttons */
.book-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-amazon {
  display: inline-block;
  background: var(--col-navy);
  color: #F9FAFB;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}

.btn-amazon:hover { background: #252540; }

.btn-bonus {
  display: inline-block;
  background: transparent;
  color: var(--col-gold);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,169,110,0.4);
  transition: background var(--ease), border-color var(--ease);
}

.btn-bonus:hover {
  background: rgba(201,169,110,0.08);
  border-color: rgba(201,169,110,0.7);
}

/* ── About section ───────────────────────────────────────────────────────── */
.about-section {
  background: var(--col-navy);
  padding: 84px 0;
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-inner .section-title {
  color: #F9FAFB;
}

.about-inner .section-title::after {
  margin: 10px auto 0;
}

.about-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 44px;
}

.about-heading .section-title {
  margin-bottom: 0;
}

.about-heading .section-title::after {
  margin: 10px auto 0;
}

.about-logo {
  width: 64px;
  height: auto;
  opacity: 0.75;
}

.about-text {
  color: rgba(249,250,251,0.62);
  font-size: 0.975rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 14px;
}

.about-text--small {
  font-size: 0.875rem;
  color: rgba(249,250,251,0.4);
  margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0C1220;
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.25);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .hero            { padding: 64px 0 56px; }
  .books-section   { padding: 56px 0 64px; }
  .about-section   { padding: 56px 0; }
  .books-grid      { grid-template-columns: 1fr; }
  .footer-inner    { justify-content: center; text-align: center; }
  .site-nav > a    { display: none; }
  .container       { padding: 0 18px; }
}

@media (max-width: 380px) {
  .logo-pub { display: none; }
}
