/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #f8f6f1;
  --clr-surface: #ffffff;
  --clr-text: #1a1a1a;
  --clr-text-muted: #6b6560;
  --clr-accent: #d94f0d;
  --clr-accent-hover: #b84209;
  --clr-border: #e0dbd4;
  --clr-badge-bg: #fff3ee;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;
  --max-width: 720px;
  --radius: 8px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
}
a:hover {
  color: var(--clr-accent-hover);
  text-decoration: underline;
}

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

/* ========== NAV ========== */
.site-nav {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--clr-text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo strong {
  color: var(--clr-accent);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--clr-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--clr-text);
  margin-left: auto;
}

/* ========== MAIN ========== */
main {
  flex: 1;
  padding: 48px 20px;
}

/* ========== HUB PAGE ========== */
.hub-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hub-hero {
  margin-bottom: 40px;
}

.hub-badge {
  display: inline-block;
  background: var(--clr-badge-bg);
  color: var(--clr-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.hub-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 10px;
}

.hub-lead {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
}

.hub-updated {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  font-style: italic;
}

.hub-body {
  margin-bottom: 48px;
}
.hub-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 32px 0 10px;
  color: var(--clr-text);
}
.hub-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: var(--clr-text);
}
.hub-body p {
  margin-bottom: 16px;
  color: var(--clr-text);
}
.hub-body ul, .hub-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.hub-body li {
  margin-bottom: 6px;
}

/* ========== SPOKE GRID (inside hub) ========== */
.hub-spokes h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-accent);
  display: inline-block;
}

.spoke-grid {
  display: grid;
  gap: 12px;
}

.spoke-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--clr-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}
.spoke-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 12px rgba(217,79,13,0.1);
  text-decoration: none;
}
.spoke-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--clr-accent);
  margin-bottom: 4px;
}
.spoke-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
}
.spoke-meta {
  font-size: 0.775rem;
  color: var(--clr-text-muted);
  opacity: 0.7;
}

/* ========== SPOKE PAGE ========== */
.spoke-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--clr-text-muted);
}
.breadcrumb a:hover {
  color: var(--clr-accent);
  text-decoration: none;
}
.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

.spoke-header {
  margin-bottom: 36px;
}
.spoke-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--clr-text);
  margin-bottom: 10px;
}
.spoke-lead {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}
.spoke-meta-bar {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}
.read-time {
  float: right;
  background: var(--clr-badge-bg);
  color: var(--clr-accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.spoke-body {
  margin-bottom: 48px;
}
.spoke-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 32px 0 10px;
}
.spoke-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 24px 0 8px;
}
.spoke-body p {
  margin-bottom: 16px;
}
.spoke-body ul, .spoke-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.spoke-body li {
  margin-bottom: 6px;
}

.spoke-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--clr-border);
}
.back-to-hub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent);
}

/* ========== FAQ ========== */
.hub-faq h2,
.spoke-faq h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

details {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--clr-surface);
}
details summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--clr-accent);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 18px 14px;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
}
.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--clr-text);
}
.footer-brand strong { color: var(--clr-accent); }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  margin-top: 6px;
}
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-links h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-muted);
  margin-bottom: 10px;
}
.footer-links a {
  display: block;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  margin-bottom: 6px;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--clr-accent);
}
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--clr-border);
  padding-top: 16px;
  margin-top: 8px;
}
.affiliate-notice {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  opacity: 0.7;
  margin-bottom: 6px;
}
.copyright {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  opacity: 0.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }
  .nav-links.nav-open { display: flex; }

  .hub-hero h1 { font-size: 1.7rem; }
  .spoke-header h1 { font-size: 1.6rem; }

  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========== HOME PAGE ========== */
.home-page {
  max-width: var(--max-width);
  margin: 0 auto;
}

.home-hero {
  text-align: center;
  padding: 24px 0 44px;
}
.home-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: 12px;
}
.home-hero h1 span {
  color: var(--clr-accent);
}
.home-lead {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.home-cards h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--clr-text);
  margin-bottom: 16px;
}
