/*
  Shared site styles for anthonygarone.com staging.
  This file is loaded after legacy page-local CSS so it can normalize drift while pages are migrated away from inline styles.
*/

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-wrap: 760px;
  --space-section: 46px;
  --button-size: 36px;
}

body.theme-light {
  --bg:#fff;
  --fg:#111;
  --muted:#666;
  --faint:#8a8a8a;
  --border:#d9d9d9;
  --accent:#f3f3f3;
  --accent-strong:#e9e9e9;
}

body.theme-dark {
  --bg:#0c1319;
  --fg:#e8e4df;
  --muted:#b0aca7;
  --faint:#7a7672;
  --border:#3a4a55;
  --accent:#223340;
  --accent-strong:#2b4050;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body:not(.home-page) {
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0 24px 72px;
  transition: background-color .2s ease, color .2s ease;
}

body:not(.home-page) .wrap {
  max-width: var(--site-wrap);
  margin: 0 auto;
}

body:not(.home-page) .topbar {
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

body:not(.home-page) .topbar a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

body:not(.home-page) .topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body:not(.home-page) .menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-size);
  height: var(--button-size);
}

body:not(.home-page) .menu-button,
body:not(.home-page) .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--button-size);
  height: var(--button-size);
  padding: 0;
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

body:not(.home-page) .menu-icon {
  width: 16px;
  display: grid;
  gap: 4px;
}

body:not(.home-page) .menu-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 999px;
}

body:not(.home-page) .site-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  z-index: 20;
  display: none;
}

body:not(.home-page) .site-menu[data-open="true"] {
  display: block;
}

body:not(.home-page) .site-menu a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

body:not(.home-page) .site-menu a:last-child {
  border-bottom: 0;
}

body:not(.home-page) .site-menu a:hover {
  background: var(--accent);
}

body:not(.home-page) .hero {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

body:not(.home-page) .section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--border);
  border-top: 0;
}

body:not(.home-page) .section:last-child {
  border-bottom: 0;
}

body:not(.home-page) .kicker {
  display: block;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 18px;
}

body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3 {
  color: var(--fg);
  font-family: var(--serif);
  font-weight: 400;
}

body:not(.home-page) h1 {
  line-height: 1.12;
  letter-spacing: -.035em;
  font-size: clamp(2.15rem, 6vw, 4rem);
  margin-bottom: .55em;
  text-wrap: balance;
}

body:not(.home-page) h2 {
  line-height: 1.18;
  letter-spacing: -.015em;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: .8em;
  text-wrap: balance;
}

body:not(.home-page) h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: .45em;
}

body:not(.home-page) h1 em,
body:not(.home-page) h2 em,
body:not(.home-page) h3 em {
  font-style: italic;
}

body:not(.home-page) p,
body:not(.home-page) li {
  color: var(--muted);
  font-size: 1.03rem;
  margin-bottom: 1em;
}

body:not(.home-page) .lede {
  font-size: clamp(1.12rem, 2.3vw, 1.45rem);
  color: var(--fg);
  max-width: 43rem;
}

body:not(.home-page) a {
  color: var(--fg);
  text-underline-offset: 3px;
}

body:not(.home-page) .price {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

body:not(.home-page) .price:hover {
  opacity: .86;
}

body:not(.home-page) .grid,
body:not(.home-page) .book-grid,
body:not(.home-page) .prompt-list,
body:not(.home-page) .faq-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

body:not(.home-page) .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.home-page) .card,
body:not(.home-page) .quote,
body:not(.home-page) .faq-item,
body:not(.home-page) .note,
body:not(.home-page) .cta-block,
body:not(.home-page) .book-card,
body:not(.home-page) .prompt-card {
  border: 1px solid var(--border);
  background: var(--accent);
  padding: 20px;
}

body:not(.home-page) .quote {
  background: transparent;
  margin: 16px 0;
}

body:not(.home-page) .quote blockquote,
body:not(.home-page) blockquote {
  font-family: var(--serif);
  color: var(--fg);
}

body:not(.home-page) .faq-item h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

body:not(.home-page) .path-rows {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

body:not(.home-page) .path-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

body:not(.home-page) .path-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

body:not(.home-page) .path-row h3 {
  margin-bottom: .45em;
}

body:not(.home-page) .path-row p {
  max-width: 42rem;
}

body:not(.home-page) .path-row .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .2em;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

body:not(.home-page) .path-row .cta-link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

body:not(.home-page) .cta-link {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:not(.home-page) .section > p > .cta-link,
body:not(.home-page) .section > .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4em;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

body:not(.home-page) .section > p > .cta-link:hover,
body:not(.home-page) .section > .cta-link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

body:not(.home-page) .site-footer {
  margin-top: 34px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: .92rem;
}

body:not(.home-page) .site-footer p {
  color: var(--faint);
  font-size: .92rem;
  margin-bottom: .6em;
}

body:not(.home-page) .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: .6em;
}

body:not(.home-page) .site-footer a {
  color: var(--fg);
}

@media (max-width: 720px) {
  body:not(.home-page) {
    padding: 0 20px 56px;
  }

  body:not(.home-page) .topbar {
    align-items: center;
    margin-bottom: 40px;
  }

  body:not(.home-page) .grid {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.7rem);
    line-height: 1.14;
    letter-spacing: -.03em;
  }

  body:not(.home-page) h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  body:not(.home-page) p,
  body:not(.home-page) li {
    font-size: .98rem;
  }
}
