/* =========================================================================
   ERParker.com — Elliott Parker personal site
   Faithful rebuild of the Squarespace site as static HTML for Vercel.
   Design tokens mirror the live site (see Planning/2026-07-16-scrape-notes.md).
   NOTE: display headings use a serif stack to match what the live site
   actually renders (the declared "Archivo Black" never loads → serif fallback).
   The "modern refresh" proposal revisits the display font intentionally.
   ========================================================================= */

/* ---- Design tokens ---- */
:root {
  --bg: #fafafa;
  --ink: #000000;
  --ink-soft: #333333;
  --muted: #6a6a6a;
  --panel: #f2f2f4;
  --line: #e2e2e5;

  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;   /* heavy display sans — original site's intended heading font */
  --serif: Georgia, "Times New Roman", Times, serif;                          /* retained for optional editorial accents; not used by default */
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1040px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 14px;

  --step-hero: clamp(1.7rem, 1.05rem + 2.8vw, 2.9rem);
  --step-h1:   clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  --step-h2:   clamp(1.4rem, 1.05rem + 1.6vw, 2.1rem);
  --step-h4:   clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --body:      clamp(1.02rem, 0.98rem + 0.2vw, 1.18rem);
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure, blockquote { margin: 0; }  /* kill UA default lateral margins (was pushing the carousel quote off-center) */
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- Layout helpers ---- */
/* full-width, no max-width — just generous side padding (Drew's preference) */
.container { width: 100%; padding-inline: clamp(1.5rem, 7vw, 6rem); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--panel { background: var(--panel); }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 0.75em;
}
.center { text-align: center; }
.measure { max-width: 62ch; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- Buttons (retailer pills) ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 0.82rem; line-height: 1; letter-spacing: 0.01em;
  padding: 14px 24px; border-radius: 300px;
  background: var(--ink); color: var(--bg);
  border: 2px solid var(--ink); text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--bg); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 16px;
}
.nav__left { display: flex; gap: 28px; align-items: center; }
.nav__right { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.nav__logo {
  grid-column: 2;
  font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap; text-align: center;
}
.nav__link {
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: 4px 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--ink); transition: width .22s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.social { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.social svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.social:hover { opacity: .65; }

/* mobile nav toggle */
.nav__toggle {
  display: none; grid-column: 3; justify-self: end;
  background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Home hero
   ========================================================================= */
.hero { position: relative; }
.hero__panel {
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 52px);
  display: grid; grid-template-columns: 0.95fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
  /* waves watercolor background (from the original site) + light scrim for text contrast */
  background: linear-gradient(rgba(250,250,250,0.32), rgba(250,250,250,0.32)), url("../assets/waves.webp") center/cover no-repeat;
}
.hero__cover { justify-self: center; max-width: 390px; width: 100%; }
.hero__cover img { border-radius: 0; box-shadow: none; }  /* 3D render has its own shadow + transparent bg */
.hero__title { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 0.55em; }
.hero__lead { font-size: var(--body); max-width: 56ch; }
.hero__lead .lead-strong { font-weight: 700; }
.hero__avail { font-family: var(--display); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem); letter-spacing: -0.01em; margin: 1.3em 0 0.7em; }

/* =========================================================================
   Testimonials (carousel)
   ========================================================================= */
.praise__head { text-align: center; margin-bottom: clamp(28px, 5vw, 56px); }
.praise__head h2 { font-size: var(--step-h1); }
.carousel { position: relative; max-width: 820px; margin-inline: auto; }
.carousel__track { overflow: hidden; }
.carousel__slides { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; padding: 8px clamp(8px, 4vw, 48px); text-align: center; }
.slide__quote { font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); line-height: 1.55; }
.slide__author { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.4em; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: #4a4a4a; color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.carousel__btn:hover { background: var(--ink); }
.carousel__btn svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
.carousel__dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.carousel__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #c9c9cf; cursor: pointer; padding: 0; transition: background .2s; }
.carousel__dot[aria-selected="true"] { background: var(--ink); }

/* =========================================================================
   About-the-author block (home) + About page
   ========================================================================= */
.author { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.author__photo img { border-radius: 8px; }
.about-intro { font-family: var(--sans); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; max-width: 34ch; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(28px, 5vw, 56px); }
.about-grid img { border-radius: 8px; }
.about-body { max-width: 64ch; }
.about-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Speaking page
   ========================================================================= */
.speak-intro { text-align: center; max-width: 720px; margin-inline: auto; }
.speak-intro h1 { font-size: var(--step-h1); }
.engagements { display: grid; gap: clamp(40px, 6vw, 72px); }
.engagement { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.engagement:last-child { border-bottom: 0; }
.engagement__media { position: relative; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.engagement__label { font-family: var(--sans); font-weight: 800; letter-spacing: 0.04em; font-size: 0.8rem; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.engagement__title { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.16; margin-bottom: 0.55em; }
.engagement__desc { font-size: 1rem; line-height: 1.7; }
.engagement__desc .listen { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Forms (Speaking booking form)
   ========================================================================= */
.connect { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.connect__intro h2 { font-size: var(--step-h1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 700; font-size: 0.9rem; }
.field .req { color: var(--muted); font-weight: 500; }
.field .hint { font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c7c7cd; border-radius: 8px; background: #fff;
  width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.08); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-actions { margin-top: 20px; }
.form-status { margin-top: 16px; font-weight: 700; font-size: 0.95rem; min-height: 1.4em; }
.form-status[data-state="ok"] { color: #1a7f37; }
.form-status[data-state="err"] { color: #c1121f; }

/* Contact page list */
.contact-list { display: grid; gap: 28px; max-width: 640px; }
.contact-item h3 { font-family: var(--sans); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item p { font-size: 1.1rem; margin: 0; }
.contact-item a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-connect { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.contact-connect .social svg { width: 24px; height: 24px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer__brand { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.01em; }
.footer__socials { display: flex; gap: 12px; margin-top: 16px; }
.footer__socials .social {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg);
}
.footer__socials .social svg { width: 16px; height: 16px; }
.footer__socials .social:hover { opacity: .8; }
.footer__map h4 { font-family: var(--sans); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer__map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: right; }
.footer__map a { text-decoration: none; }
.footer__map a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   Motion
   The faithful baseline matches the original (no scroll-reveal animation), so
   `.reveal` is inert here — content is always visible. Scroll-reveal motion is
   a proposed Phase-3 refresh item (see modern-refresh-proposal). The `.reveal`
   hooks remain in the markup so it can be switched on later with CSS alone.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .carousel__slides { transition: none; }
}

/* =========================================================================
   Placeholder art (removed once real assets are dropped into /assets)
   ========================================================================= */
.ph { background: repeating-linear-gradient(45deg, #e9e9ee, #e9e9ee 12px, #e3e3ea 12px, #e3e3ea 24px); color: #8a8a92; display: grid; place-items: center; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 8px; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 860px) {
  .hero__panel { grid-template-columns: 1fr; text-align: left; gap: 28px; }
  .hero__body { order: 1; }
  .hero__cover { order: 2; max-width: 190px; justify-self: center; margin-top: 4px; }
  .author, .about-grid, .engagement, .connect { grid-template-columns: 1fr; }
  .author__photo, .about-grid__photo { max-width: 420px; }
  .about-intro { max-width: none; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer__map ul { text-align: left; }
}

@media (max-width: 700px) {
  .nav { grid-template-columns: 1fr auto; min-height: 64px; }
  .nav__logo { grid-column: 1; justify-self: start; text-align: left; }
  .nav__left, .nav__right { display: none; }
  .nav__toggle { display: block; grid-column: 2; }

  /* mobile menu panel */
  .nav__menu {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: grid; gap: 4px; padding: 16px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu .nav__link { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.01em; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu .nav__link::after { display: none; }
  .nav__menu .nav__socials { display: flex; gap: 18px; padding-top: 16px; }
  .nav__menu .nav__socials .social svg { width: 24px; height: 24px; }
  .form-grid { grid-template-columns: 1fr; }

  /* praise carousel: smaller arrows + more room around the quote */
  .carousel__btn { width: 38px; height: 38px; }
  .carousel__btn svg { width: 17px; height: 17px; }
  .carousel__btn--prev { left: 0; }
  .carousel__btn--next { right: 0; }
  .slide { padding: 16px 48px; }
  .slide__quote { font-size: 1.15rem; line-height: 1.5; }
}

/* Desktop: the mobile menu markup stays hidden */
@media (min-width: 701px) { .nav__menu { display: none; } }
