/* === AiSite layout scaffold (do not remove) === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; width: 100%;  }
body.site-page,
body { margin: 0; min-height: 100vh; line-height: 1.6; width: 100%;  }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.site-page { display: flex; flex-direction: column; min-height: 100vh; width: 100%; max-width: none; }
.site-main { flex: 1 0 auto; width: 100%; max-width: none; }
.site-section { width: 100%; max-width: none; display: block; }
.site-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.site-header,
.site-footer { width: 100%; max-width: none; }
.site-header .site-container,
.site-footer .site-container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-section.site-section--cover,
.site-section.hero-cover,
#hero.site-section {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.site-section--cover > .site-container,
#hero.site-section > .site-container {
  position: relative;
  z-index: 1;
  color: #f8fafc;
}
@media (max-width: 768px) {
  .site-container { padding-left: 16px; padding-right: 16px; }
  .site-section.site-section--cover,
  .site-section.hero-cover,
  #hero.site-section { min-height: min(56vh, 480px); }
}
:root {
  --bg: #0c1412;
  --bg-warm: #121c18;
  --surface: #1a2622;
  --text: #f5f0e6;
  --muted: #a8b5ad;
  --gold: #c9a227;
  --jade: #3d8f7a;
  --border: rgba(201, 162, 39, 0.25);
  --radius: 14px;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}

/* ---- Layout System ---- */
.site-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-section {
  width: 100%;
  padding: 72px 0;
}

.site-section--cover {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.site-section--cta {
  background: linear-gradient(135deg, var(--jade) 0%, var(--gold) 100%);
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-main {
  flex: 1;
}

/* ---- Header ---- */
.site-header {
  background-color: var(--bg-warm);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Hero Section ---- */
.hero-cover {
  background-color: var(--bg);
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,20,18,0.85) 0%, rgba(18,28,24,0.7) 100%);
  z-index: 1;
}

.hero-cover .site-container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
}

.hero-text h1 {
  font-size: 3.25rem;
  line-height: 1.1;
  color: var(--text);
  max-width: 600px;
}

.hero-deck {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--gold);
  color: #0c1412;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.cta-primary:hover {
  background: #b89120;
  color: #0c1412;
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.cta-secondary:hover {
  background: rgba(201, 162, 39, 0.08);
  border-color: var(--gold);
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-meta span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
}

.hero-meta span::before {
  content: '•';
  color: var(--gold);
  margin-right: 8px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 2rem;
  font-family: var(--font-heading);
}

.text-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.text-link:hover {
  border-bottom-color: var(--gold);
}

/* ---- Recently Updated ---- */
.updates-list {
  display: flex;
  flex-direction: column;
}

.update-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.update-row:last-child {
  border-bottom: none;
}

.update-row:hover {
  background: rgba(201, 162, 39, 0.03);
}

.update-thumb {
  width: 120px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-info h3 {
  font-size: 1.125rem;
  font-family: var(--font-heading);
  font-weight: 400;
}

.update-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.update-meta span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.update-date {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}

/* ---- Featured Reviews ---- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-lead {
  grid-column: 1 / -1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 320px;
}

.featured-lead-img {
  overflow: hidden;
}

.featured-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.featured-lead .badge-lead {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge-lead {
  background: var(--gold);
  color: #0c1412;
  font-weight: 600;
  border: none;
}

.featured-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  grid-column: 1 / -1;
}

.featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.featured-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-card .badge {
  margin: 16px 16px 0;
}

.featured-card h3 {
  padding: 12px 16px 16px;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

/* ---- Popular Reads ---- */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.popular-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.popular-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.chip {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(61, 143, 122, 0.2);
  color: var(--jade);
  border: 1px solid rgba(61, 143, 122, 0.3);
}

.popular-card .chip {
  margin: 16px 16px 0;
}

.popular-card h3 {
  padding: 12px 16px 4px;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.popular-card p {
  padding: 0 16px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- CTA Band ---- */
.cta-band {
  text-align: center;
  padding: 48px 0;
}

.cta-band h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  color: #0c1412;
}

.cta-band .section-sub {
  font-size: 1.05rem;
  color: rgba(12,20,18,0.8);
  max-width: 500px;
  margin: 0 auto 28px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
}

/* ---- List Page ---- */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.list-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.list-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.list-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.list-card-body h3 {
  font-size: 1.125rem;
  font-family: var(--font-heading);
}

.list-card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- Detail Page ---- */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.detail-main-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.detail-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-intro h1 {
  font-size: 2.75rem;
  font-family: var(--font-heading);
}

.detail-deck {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.detail-highlights {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}

.detail-highlights h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.detail-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-highlights li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-highlights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-sidebar-img {
  width: 100%;
  border-radius: var(--radius);
}

.caption {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.faq-item h3 {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: var(--gold);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-brand {
  text-align: right;
}

.footer-brand .brand-accent {
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 1.25rem;
  font-family: var(--font-heading);
}

.footer-tagline {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
  font-family: var(--font-body) !important;
  margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-lead {
    grid-template-columns: 1fr;
  }
  .featured-cards {
    grid-template-columns: 1fr;
  }
  .popular-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-content {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-section {
    padding: 48px 0;
  }
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-cover {
    min-height: auto;
    padding: 48px 0;
  }
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .update-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .update-date {
    text-align: left;
  }
  .update-thumb {
    width: 100%;
    height: 180px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .list-grid {
    grid-template-columns: 1fr;
  }
}

/* === AiSite full-width enforcer (auto) === */
html, body, body.site-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-x: clip;
}
.site-page,
.site-main,
main.site-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-section,
section.site-section,
main.site-main > section,
.site-main > section,
body > main > section {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
.site-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}
body > .catalog-shell,
body > .page-shell,
body > .page-wrap,
body > .site-wrapper,
body > .layout-shell,
body > .site-shell,
body > div[class*="shell"]:not(.site-container),
body > div[class*="wrapper"]:not(.site-container) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.catalog-shell.site-main,
.site-main.catalog-shell {
  width: 100% !important;
  max-width: none !important;
}
/* === AiSite class fallbacks (auto) === */
.pexels-attribution { box-sizing: border-box; }
