/* ═══════════════════════════════════════════
   BURNOUT AT HOME — SHARED STYLESHEET
   burnoutathomebook.com
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ─── TOKENS ─────────────────────────────── */
:root {
  --ink:        #1b2d3e;
  --ink-deep:   #111c27;
  --ink-mid:    #243347;
  --gold:       #c47820;
  --gold-lite:  #d4903a;
  --gold-pale:  #e8b96a;
  --paper:      #f5f0e8;
  --paper-mid:  #ede7dc;
  --paper-dark: #e0d9cc;
  --text:       #2c3e4f;
  --text-soft:  #4a6070;
  --muted:      #7a8c99;
  --rule:       rgba(196, 120, 32, 0.2);
  --rule-ink:   rgba(27, 45, 62, 0.12);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --max:   1140px;
  --pad:   clamp(1.25rem, 5vw, 3rem);
  --r:     4px;
  --r-lg:  8px;
}

/* ─── RESET ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

/* ─── TYPOGRAPHY ─────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.display-lg { font-size: clamp(2.8rem, 6vw, 4.5rem); }
.display-md { font-size: clamp(2rem, 4vw, 3rem); }
.display-sm { font-size: clamp(1.5rem, 3vw, 2rem); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
h4, h5, h6 { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-soft);
}

/* ─── LAYOUT ─────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container-narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.container-xs {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(4rem, 8vw, 6rem) 0; }

/* ─── NAV ────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}
.nav-logo span {
  display: block;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  padding: .5rem .875rem;
  border-radius: var(--r);
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-links .nav-cta a {
  background: var(--gold);
  color: #fff;
  padding: .45rem .95rem;
}
.nav-links .nav-cta a:hover { background: var(--gold-lite); }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--ink-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--pad) 1.5rem;
    gap: .1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem .875rem; }
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .8rem 1.75rem;
  border-radius: var(--r);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196,120,32,.3);
}
.btn-primary:hover { background: var(--gold-lite); box-shadow: 0 4px 20px rgba(196,120,32,.35); }

.btn-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 12px rgba(27,45,62,.25);
}
.btn-ink:hover { background: var(--ink-mid); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--rule-ink);
  padding: calc(.8rem - 1.5px) calc(1.75rem - 1.5px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm {
  font-size: .8rem;
  padding: .55rem 1.25rem;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  align-items: center;
  margin-top: 2rem;
}

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,.55);
  padding: 3.5rem 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand .f-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: .15rem;
}
.footer-brand .f-sub {
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: .7;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  align-items: center;
}
.footer-nav li { margin: 0; }
.footer-nav a {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-nav a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: .73rem;
  text-align: center;
}

/* ─── DIVIDER ────────────────────────────── */
.rule-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
  margin: 1.25rem 0;
}
.rule-gold.centered { margin-left: auto; margin-right: auto; }

hr.section-rule {
  border: none;
  border-top: 1px solid var(--rule-ink);
  margin: 0;
}

/* ─── FORMS ──────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--paper-dark);
  border-radius: var(--r);
  padding: .75rem 1rem;
  transition: border-color .18s, box-shadow .18s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,120,32,.12);
}
.form-group textarea { min-height: 120px; }

/* ─── UTILITIES ──────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ─── PAGE-SPECIFIC OVERRIDES ─────────────── */

/* Book card / cover shadow */
.book-cover-wrap {
  position: relative;
  display: inline-block;
}
.book-cover-wrap img {
  border-radius: var(--r);
  box-shadow:
    0 4px 16px rgba(27,45,62,.18),
    0 20px 60px rgba(27,45,62,.22),
    6px 6px 0 rgba(196,120,32,.15);
}
.book-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  pointer-events: none;
}

/* Callout block */
.callout {
  background: var(--paper-mid);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 1.25rem 1.5rem;
  font-size: .92rem;
  color: var(--text-soft);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .93rem;
  margin: 0;
  line-height: 1.55;
}
.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .55em;
}

/* Author photo */
.author-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--paper-dark);
  box-shadow: 0 8px 32px rgba(27,45,62,.15);
}

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
