/* ==========================================================================
   Sean D. Gibson / Burnout Your Burnout — site styles
   Edit the variables below to change colors and fonts everywhere.
   ========================================================================== */

/* ---------- Fonts (self-hosted, all SIL Open Font License) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Brand settings ---------- */
:root {
  --black: #0b0b0b;
  --ink: #161616;
  --muted: #555;
  --white: #fff;
  --orange: #f04b23;        /* book cover orange */
  --rose: #9e6658;          /* Support button (deepened from #C79288 for readable white text) */
  --rose-light: #c79288;
  --line: #e6e6e6;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-nav: "EB Garamond", Georgia, serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;

  --max: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-heading); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--black); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;            /* large + bold so white-on-orange meets contrast rules */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--black); border-color: var(--black); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--on-dark.btn--outline { color: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.center .btn-row { justify-content: center; }
.fine-print { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--white); position: relative; z-index: 20; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1rem, 3vw, 2.4rem);
}
.logo img { width: clamp(130px, 18vw, 230px); }
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 30px; height: 30px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.7rem);
}
.site-nav a {
  font-family: var(--font-nav);
  font-size: 1.15rem;
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-nav .nav-support {
  background: var(--rose); color: var(--white);
  padding: 0.65rem 1.3rem; border-radius: 10px; border: 0; font-size: 1rem;
}
.site-nav .nav-support:hover, .site-nav .nav-support[aria-current="page"] { background: #84503f; border: 0; }

/* Mobile menu: hidden behind the hamburger only when JavaScript is running. */
@media (max-width: 899px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0,0,0,0.08);
    padding: 1rem var(--gutter) 2rem;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .site-nav a { font-size: 1.45rem; }
  .site-nav .nav-support { margin-top: 0.8rem; font-size: 1.15rem; }
  html:not(.js) .site-header__inner { flex-direction: column; align-items: flex-start; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem; text-align: center; }
.site-footer h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { font-family: var(--font-nav); font-size: 1.1rem; }
.social { display: flex; justify-content: center; gap: 1rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.social a:hover { background: #f3f3f3; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; background: var(--black); color: var(--white); }
.hero__mobile img { width: 100%; }
.hero__desktop { display: none; }

@media (min-width: 768px) {
  .hero__mobile { display: none; }
  .hero__desktop {
    display: block;
    position: relative;
    aspect-ratio: 3 / 1;
    max-height: 640px;
    width: 100%;
    margin-bottom: clamp(3rem, 7vw, 6.5rem);     /* room for the book hanging below the band */
  }
  .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
  .hero__book {
    position: absolute; left: 40%; top: 24%;
    width: 22%; max-width: 340px;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.45));
  }
  .hero__tagline { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 22%; max-width: 330px; }
  .hero { background: transparent; }
}

.live { text-align: center; }
.live__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.live__eyebrow {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--orange); font-size: 1rem; margin-bottom: 0.6rem;
}
.live h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.live__lede { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.35; margin-bottom: 1.4rem; }
.live__book { width: min(78%, 380px); margin-inline: auto; }
.live .btn-row { justify-content: center; }
@media (min-width: 768px) {
  .live { text-align: left; }
  .live__inner { grid-template-columns: 1fr 1fr; }
  .live .btn-row { justify-content: flex-start; }
}

.listen { background: var(--black); color: var(--white); }
.listen__inner { display: grid; gap: 2rem; align-items: center; text-align: center; }
.listen__cover { width: min(70%, 300px); margin-inline: auto; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.listen h2 { color: var(--white); }
.listen p { color: #d8d8d8; }
.listen .btn-row, .book-cta .btn-row { justify-content: center; }
@media (min-width: 768px) {
  .listen__inner { grid-template-columns: 300px 1fr; gap: 4rem; text-align: left; }
  .listen__cover { width: 100%; }
  .listen .btn-row { justify-content: flex-start; }
}

.statement { background: var(--orange); color: var(--white); text-align: center; }
.statement p {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.45rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0; letter-spacing: 0.01em; text-wrap: balance;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-hero { position: relative; background: #222; color: var(--white); }
.about-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 18%; }
.about-hero h1 {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  margin: 0; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,0.45);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}
@media (min-width: 768px) { .about-hero img { aspect-ratio: 2.4 / 1; max-height: 640px; } }
@media (max-width: 767px) {
  .about-hero h1 { position: static; transform: none; color: var(--ink); text-shadow: none; padding: 2rem var(--gutter) 0; background: var(--white); }
}
.story .story__lead { font-family: var(--font-heading); font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 600; line-height: 1.2; margin-bottom: 1.4rem; }
.story p { font-size: 1.05rem; }
.story .pull { font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; line-height: 1.3; margin-block: 1.6rem; }
.book-cta { display: grid; gap: 2rem; align-items: center; justify-items: center; text-align: center; }
.book-cta > a { display: block; width: min(70%, 320px); }
.book-cta img { width: 100%; }
@media (min-width: 768px) {
  .book-cta { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 3.5rem; }
  .book-cta > a { width: 300px; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.banner {
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  text-align: center; line-height: 1.12; letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  padding: clamp(1.4rem, 4vw, 2.4rem) var(--gutter);
  margin: 0;
}
.banner-wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; }
.reviews { list-style: none; margin: 0; padding: 0; }
.review { padding-block: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review blockquote { margin: 0; }
.review blockquote p {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.4; margin: 0 0 0.8rem;
}
.review figcaption { font-family: var(--font-nav); font-style: italic; color: var(--muted); font-size: 1.05rem; }
.reviews-image { margin-block: 1rem; }
.reviews-image img { width: min(100%, 640px); margin-inline: auto; }

.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d8d8d8; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.page-intro { text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-intro p { font-family: var(--font-heading); font-style: italic; font-size: 1.4rem; color: var(--muted); }
.faq { margin: 0; }
.faq__item { padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq dt { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.2; margin-bottom: 0.6rem; }
.faq dd { margin: 0; }
.faq dd p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__photo img { width: min(100%, 460px); margin-inline: auto; }
.contact__email { font-weight: 500; word-break: break-word; }
.contact h2 { font-size: 1.6rem; margin-top: 2rem; }
@media (min-width: 768px) { .contact { grid-template-columns: 0.9fr 1.1fr; } }

/* ==========================================================================
   BYB + TMHA
   ========================================================================== */
.pledge { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pledge__lede { font-size: 1.15rem; }
.pledge__logo img { width: min(100%, 420px); margin-inline: auto; }
@media (min-width: 768px) { .pledge { grid-template-columns: 1.2fr 1fr; } }
.tally { list-style: none; padding: 0; margin: 1.5rem 0 0; font-family: var(--font-heading); font-size: 1.35rem; }
.partner-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: center; align-items: center; }
.partner-logos img { width: 180px; }
.partner-logos a { display: block; border-radius: 8px; }
.link-cards { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 768px) { .link-cards { grid-template-columns: repeat(3, 1fr); } }
.link-card {
  display: block; text-decoration: none; padding: 1.4rem 1.5rem; border-radius: 12px;
  background: var(--rose); color: var(--white);
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.15rem; line-height: 1.3;
}
.link-card span { display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.95rem; margin-top: 0.35rem; opacity: 0.95; }
.link-card:hover { background: #84503f; }
.help-note { margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-left: 4px solid var(--orange); background: #faf6f5; }
.help-note p:last-child { margin: 0; }
.help-note a { white-space: nowrap; }

/* ==========================================================================
   SUPPORT
   ========================================================================== */
.support { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .support { grid-template-columns: 1fr 1fr; } }
.support__lead { font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; font-weight: 500; }
.substack-embed { width: 100%; max-width: 480px; height: 320px; border: 1px solid #ddd; background: var(--white); border-radius: 8px; }

/* ==========================================================================
   404
   ========================================================================== */
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
