:root {
  --charcoal: #1c1c1c;
  --charcoal-2: #2a2a2a;
  --cream: #f7f1e8;
  --cream-2: #fffaf2;
  --copper: #b85c38;
  --copper-dark: #8f4227;
  --gold: #c8a24a;
  --text: #1f2933;
  --muted: #5b6470;
  --border: #e6dacb;
  --white: #ffffff;
  --shadow: 0 14px 30px rgba(28, 28, 28, .08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

a {
  color: var(--copper-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: .75rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 999;
}

/* ======================================================
   Header / Navigation
   ====================================================== */

.site-header {
  background: var(--charcoal);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 86px;
}

.brand {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: auto;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Header logo image.
   This specifically targets:
   <img class="brand-logo brand-logo-icon">
*/
img.brand-logo.brand-logo-icon,
.site-header img.brand-logo.brand-logo-icon,
.site-header .brand-logo-icon {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Fallback for any other brand logo images */
.brand-logo {
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.brand-text strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: .02em;
}

.brand-text small {
  display: block;
  font-size: .78rem;
  color: #d6cec5;
  line-height: 1.2;
}

/* Old RR placeholder support, harmless if unused */
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 14px;
  color: var(--gold);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: .02em;
}

.brand small {
  display: block;
  color: #d6cec5;
  font-size: .78rem;
}

.main-nav {
  display: flex;
  gap: .65rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #f4eee6;
  text-decoration: none;
  font-weight: 650;
  font-size: .88rem;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold);
}

/* ======================================================
   Hero
   ====================================================== */

.hero {
  background:
    linear-gradient(110deg, rgba(28, 28, 28, .88), rgba(28, 28, 28, .72)),
    radial-gradient(circle at top right, rgba(184, 92, 56, .25), transparent 34%),
    var(--charcoal);
  color: var(--white);
  padding: 76px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  font-size: .82rem;
  margin: 0 0 .75rem;
}

.hero h1 {
  font-size: 42px !important;
  line-height: 1.12 !important;
  margin: 0 0 1.15rem !important;
  max-width: 720px !important;
}

.hero p {
  color: #f1e9df;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 720px;
  margin: 0 0 1.6rem;
}

.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

.hero-card h2 {
  margin-top: 0;
  color: var(--gold);
}

.hero-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: #fff7ef;
}

/* ======================================================
   Buttons
   ====================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .88rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--copper-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ======================================================
   Sections / Cards
   ====================================================== */

.section {
  padding: 70px 0;
}

.section-light {
  background: var(--cream-2);
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
}

.section-title p {
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3,
.article-card h3 {
  margin-top: 0;
  line-height: 1.2;
}

.card p,
.article-card p {
  color: var(--muted);
}

.card a,
.article-card a {
  font-weight: 800;
  text-decoration: none;
}

.badge {
  display: inline-block;
  background: #f0dfcf;
  color: var(--copper-dark);
  border-radius: 999px;
  padding: .25rem .65rem;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .9rem;
}

/* ======================================================
   Split / Callout
   ====================================================== */

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.callout {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 30px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.callout p {
  color: #f1e9df;
}

/* ======================================================
   Interior Pages
   ====================================================== */

.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 62px 0;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.page-hero p {
  color: #f1e9df;
  max-width: 760px;
  font-size: 1.15rem;
}

.content {
  background: var(--cream-2);
  padding: 58px 0;
}

.content-narrow {
  max-width: 860px;
}

.content h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

.content p,
.content li {
  font-size: 1.05rem;
}

.notice {
  border-left: 5px solid var(--copper);
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* ======================================================
   Footer
   ====================================================== */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 54px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 28px;
}

.site-footer a {
  color: #f2d7c9;
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: .45rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 34px;
  padding-top: 18px;
  color: #d8d0c8;
  font-size: .9rem;
}

/* ======================================================
   Responsive
   ====================================================== */

@media (max-width: 1040px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 840px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 48px 0;
  }

.hero h1 {
  font-size: clamp(1.7rem, 8vw, 2.5rem);
}
}
/* Homepage checklist + featured guide layout */
.checklist-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 48px;
}

.checklist-callout h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.checklist-callout p:last-of-type {
  margin-bottom: 0;
  max-width: 760px;
}

.featured-title {
  margin-bottom: 26px;
}

.featured-guides-grid {
  align-items: stretch;
}

@media (max-width: 840px) {
  .checklist-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Help Center layout */
.book-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 52px;
}

.book-callout h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.book-callout p {
  max-width: 760px;
}

.book-note {
  font-weight: 700;
}

.book-buttons {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-width: 240px;
}

.btn-secondary-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.btn-secondary-dark:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.help-topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.help-topic-card h3 {
  margin-top: 0;
  line-height: 1.2;
}

.help-topic-card p {
  color: var(--muted);
}

.help-topic-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.help-topic-card li {
  margin: .45rem 0;
}

.help-topic-card a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 840px) {
  .book-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-buttons {
    width: 100%;
  }

  .book-buttons .btn {
    width: 100%;
  }

  .help-topic-grid {
    grid-template-columns: 1fr;
  }
}
/* Expanded footer layout */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
}

.footer-book {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .06);
}

.footer-book h3 {
  margin: 0 0 .5rem;
  color: var(--gold);
}

.footer-book p {
  margin: 0;
  color: #f1e9df;
  max-width: 680px;
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-book {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-book .button-row {
    width: 100%;
  }

  .footer-book .btn {
    width: 100%;
  }
}
/* Mobile header/nav cleanup */
@media (max-width: 760px) {
  .site-header {
    padding: 18px 0;
  }

  .header-inner {
    align-items: flex-start;
    gap: 16px;
  }

  .brand-logo {
    max-height: 72px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    justify-content: flex-start;
    line-height: 1.1;
  }

  .main-nav a {
    font-size: 0.95rem;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
  }

  .page-hero {
    padding-top: 64px;
  }

  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
    line-height: 1.05;
  }

  .page-hero p {
    font-size: 1.18rem;
    line-height: 1.5;
  }
}
/* Book cover layout */
.book-cover-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
  margin: 2.5rem 0;
}

.book-cover-card {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(35, 25, 15, .12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
  text-align: center;
}

.book-cover-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.book-cover-card figcaption {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.35;
  color: #4d4d4d;
}

@media (max-width: 760px) {
  .book-cover-section {
    grid-template-columns: 1fr;
  }

  .book-cover-card {
    max-width: 280px;
    margin: 0 auto;
  }
}
/* Homepage hero spacing refinement - tighter */
.hero {
  padding: 58px 0 64px;
}

.hero-grid {
  min-height: auto;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 56px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 42px 0 50px;
  }
}