/* ════════════════════════════════════════════════════════════
   jbruceeickelman.com — shared stylesheet
   Edit this file to change the look of every page at once.
   ════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────
   Change these variables to retheme the entire site.        */
:root {
  --navy:        #1a1a2e;   /* primary dark — nav, hero, footer     */
  --navy-mid:    #22223a;   /* slightly lighter dark surface         */
  --gold:        #c9a961;   /* accent — rules, labels, buttons       */
  --gold-faint:  rgba(201,169,97,0.08);
  --white:       #ffffff;
  --off-white:   #f7f5f0;   /* alternate section background          */
  --text-dark:   #1a1a2e;
  --text-mid:    #4a4a5a;
  --text-light:  #7a7a8a;
  --border:      #e0dbd0;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Lato', Helvetica, Arial, sans-serif;

  --max-width: 880px;
  --gutter:    32px;
}

/* ── Google Fonts — loaded once here, applies everywhere ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--serif);
  background: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 640px; }

/* ── Repeated design elements ───────────────────────────── */
.gold-rule {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}
.section-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn--gold  { background: var(--gold);  color: var(--navy);  }
.btn--dark  { background: var(--navy);  color: var(--white); }
.btn--ghost { border: 1px solid var(--gold); color: var(--navy); }
.btn:hover  { opacity: 0.85; }

/* ── Pull quote / aside ─────────────────────────────────── */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 16px 20px;
  background: var(--gold-faint);
}
.pull-quote p {
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201,169,97,0.2);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-decoration: none;
}
.nav-links           { display: flex; gap: 28px; list-style: none; }
.nav-links a         { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover,
.nav-links a.active  { color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO — used on home page and page banners
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  background: var(--navy);
  padding: 80px var(--gutter) 88px;
  border-bottom: 2px solid var(--gold);
}
.hero--short { padding: 48px var(--gutter) 52px; } /* for inner pages */
.hero-inner  { max-width: var(--max-width); margin: 0 auto; }

.hero-region {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(201,169,97,0.55);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  max-width: 580px;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 20px;
  font-style: italic;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-cta        { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-publisher  { font-family: var(--sans); font-size: 10px; letter-spacing: 0.12em; color: rgba(255,255,255,0.28); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTIONS — alternate white / off-white backgrounds
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section {
  padding: 64px var(--gutter);
  border-bottom: 1px solid var(--border);
}
.section--alt { background: var(--off-white); }

/* ── About ──────────────────────────────────────────────── */
.about-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.about-contact {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.04em;
}
.about-contact a { color: var(--gold); text-decoration: none; }
.about-contact a:hover { text-decoration: underline; }

/* ── Book split grid ────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.book-body h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}
.book-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 22px;
}

/* ── Newsletter ─────────────────────────────────────────── */
.newsletter-title  { font-size: 30px; font-weight: 400; margin-bottom: 10px; line-height: 1.2; }
.newsletter-desc   { font-family: var(--sans); font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; max-width: 480px; }
.what-pills        { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.what-pill         { font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; padding: 6px 14px; border: 1px solid rgba(201,169,97,0.4); color: var(--text-mid); }
.form-note         { font-family: var(--sans); font-size: 11px; color: var(--text-light); margin-top: 10px; }
.form-note a       { color: var(--text-mid); }

/* ConvertKit / Mailchimp embed lands here — target this class
   in your email platform's style overrides if needed         */
.email-form-embed  { max-width: 420px; }

/* ── Program cards ──────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
.program-card        { background: var(--white); border: 1px solid var(--border); padding: 28px; }
.program-card-tag    { font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.program-card h3     { font-size: 22px; font-weight: 500; margin-bottom: 12px; line-height: 1.2; }
.program-card p      { font-family: var(--sans); font-size: 13px; color: var(--text-mid); line-height: 1.75; margin-bottom: 18px; }
.program-card a.link { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.program-card a.link:hover { color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STORIES / ESSAYS PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 16px;
}
.article-card {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.article-card-meta {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.article-card p {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.article-card a.read-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.article-card a.read-link:hover { color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FULL ARTICLE / STORY VIEW
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.article-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px var(--gutter);
}
.article-body h1        { font-size: 40px; font-weight: 400; line-height: 1.15; margin-bottom: 16px; }
.article-body .byline   { font-family: var(--sans); font-size: 11px; color: var(--text-light); letter-spacing: 0.08em; margin-bottom: 40px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article-body p         { font-size: 19px; line-height: 1.9; color: var(--text-dark); margin-bottom: 28px; }
.article-body p.lead    { font-style: italic; color: var(--text-mid); }
.article-body h2        { font-size: 26px; font-weight: 500; margin: 40px 0 14px; }
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 14px 20px;
  margin: 32px 0;
  background: var(--gold-faint);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--navy);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer { background: var(--navy); padding: 24px var(--gutter); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy            { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-links           { display: flex; gap: 20px; }
.footer-links a         { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-links a:hover   { color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-links       { display: none; }
  .hero            { padding: 52px var(--gutter) 60px; }
  .hero-title      { font-size: 32px; }
  .book-grid       { grid-template-columns: 1fr; gap: 28px; }
  .programs-grid   { grid-template-columns: 1fr; }
  .article-grid    { grid-template-columns: 1fr; }
  .footer-inner    { flex-direction: column; align-items: flex-start; gap: 8px; }
}
