/* ═══════════════════════════════════════════════
   PHOTOGRAPHY LAUNCHPAD — "Dark Room" Design System
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #08080c;
  --bg-base: #0e0e14;
  --bg-surface: #16161e;
  --bg-elevated: #1e1e28;
  --bg-hover: #262632;
  --border: #2a2a38;
  --border-subtle: #1e1e2a;
  --text-primary: #f0ece4;
  --text-secondary: #9590a0;
  --text-muted: #5c586a;
  --accent: #c8a55a;
  --accent-hover: #dbb86a;
  --accent-dim: rgba(200, 165, 90, 0.12);
  --accent-glow: rgba(200, 165, 90, 0.06);
  --danger: #e05555;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'Karla', -apple-system, sans-serif;
  --max-width: 1200px;
  --content-width: 740px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.65;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

/* ── Site Header ─────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  position: relative;
}

.site-header nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-header nav a:hover {
  color: var(--text-primary);
}

.site-header nav a:hover::after {
  width: 100%;
}

/* ── Site Footer ─────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
  margin-top: 0;
}

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

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

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer nav a:hover {
  color: var(--accent);
}

/* ── SEO-Injected Components ─────────────────── */

/* Breadcrumbs */
.seo-breadcrumbs {
  max-width: var(--content-width);
  margin: 20px auto 0;
  padding: 0 32px;
}

.seo-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.seo-breadcrumbs ol li::after {
  content: "›";
  margin-left: 10px;
  color: var(--border);
}

.seo-breadcrumbs ol li:last-child::after {
  content: "";
}

.seo-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.seo-breadcrumbs a:hover {
  color: var(--accent);
}

/* Table of Contents */
.seo-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0 40px;
}

.seo-toc strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.seo-toc ul {
  list-style: none;
  padding: 0;
}

.seo-toc ul li {
  margin-bottom: 8px;
}

.seo-toc ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  padding-left: 0;
}

.seo-toc ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.seo-toc ul li.toc-sub {
  padding-left: 20px;
}

.seo-toc ul li.toc-sub a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Affiliate Disclaimer */
.seo-affiliate-disclaimer {
  background: var(--accent-dim);
  border: 1px solid rgba(200, 165, 90, 0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 32px;
}

.seo-affiliate-disclaimer p,
.seo-affiliate-disclaimer em {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0;
  font-style: normal;
}

/* GEO Summary */
.seo-geo-summary {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.seo-geo-summary p {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Internal Links */
.seo-internal-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 165, 90, 0.3);
  transition: border-color var(--transition);
}

.seo-internal-link:hover {
  border-bottom-color: var(--accent);
}

/* Last Modified */
.seo-last-modified {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
  .header-inner {
    padding: 14px 20px;
    flex-direction: column;
    gap: 14px;
  }

  .site-header nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 20px;
  }

  .seo-breadcrumbs {
    padding: 0 20px;
  }
}
