/* ============================================
   stevefosterauthor.com — Site styles
   Design system carries from book cover + interior
   ============================================ */

:root {
  --paper: #F4ECDE;
  --paper-soft: #EFE6D4;
  --ink: #0E0E0E;
  --ink-soft: #2a2a33;
  --ink-muted: #5a5550;
  --accent: #E85D1F;
  --rule: #C9BFA6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paper grain texture — adds depth, not noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
.site-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms, border-color 200ms;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- HERO (HOME) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 80px 0 56px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 80px;
    align-items: center;
  }
}

.hero-cover img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 12px 28px -8px rgba(20,20,26,0.18),
    0 30px 60px -16px rgba(20,20,26,0.22);
}

.hero-text { max-width: 540px; }

.hero-kicker {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.hero-byline {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- HOOK + BODY ---------- */
.hook {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 32px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  max-width: 820px;
}

.body-section {
  font-family: 'EB Garamond', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 720px;
}

.body-section p { margin-bottom: 20px; }
.body-section p:last-child { margin-bottom: 0; }

.section-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 20px;
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 24px;
}

.cta {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 26px;
  text-decoration: none;
  display: inline-block;
  transition: all 200ms;
  white-space: nowrap;
}

.cta-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}
.cta-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-secondary {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: transparent;
}
.cta-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.cta-note {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin: 4px 0 32px;
}

/* ---------- CLOSING DECLARATIVE ---------- */
.closing-line {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.32;
  color: var(--accent);
  text-align: center;
  margin: 64px auto 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 760px;
}

/* ---------- AUTHOR PHOTO BLOCK (ABOUT) ---------- */
.author-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 0 8px;
}

@media (min-width: 880px) {
  .author-block {
    grid-template-columns: 260px 1fr;
    gap: 56px;
    align-items: start;
  }
}

.author-photo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.author-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(6%);
}

.author-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.author-name .accent { color: var(--accent); }

.author-kicker {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- TALKS (SPEAKING) ---------- */
.talks-list {
  display: grid;
  gap: 0;
  margin: 16px 0 56px;
}

.talk {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.talk:last-child { border-bottom: 1px solid var(--rule); }

.talk-number {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 8px;
}

.talk-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.talk-desc {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
}

.audience-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 32px;
}

.audience-item {
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
}

.audience-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.audience-item strong {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- BOOKING BLOCK ---------- */
.booking-block {
  padding: 28px 32px;
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  max-width: 720px;
}

.booking-block .label {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.booking-block .email {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.booking-block .email:hover { color: var(--accent); }

.booking-block p {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 80px;
  padding: 32px;
  border-top: 1px solid var(--rule);
}

.site-footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .left, .site-footer .right {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  .site-nav { padding: 20px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.2em; }
  .page { padding: 0 24px; }
  .hero { padding: 48px 0 40px; }
  .talk { padding: 24px 0; }
  .booking-block { padding: 24px; }
}

@media (max-width: 480px) {
  .nav-brand { font-size: 11px; letter-spacing: 0.22em; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.16em; }
  .cta { font-size: 11px; padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
