/* ==========================================================================
   Global chrome — mini-mast, util bar, newsletter, footer.
   The big masthead + primary nav used on home/archives is not in here yet;
   it lands when front-page.php / archive.php come online.
   ========================================================================== */

/* ========= TOP META BAR (non-singles: home, archives, static pages) ========= */
.meta-bar {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-mute);
}
.meta-bar span { color: var(--ink-mute); }

/* ========= MASTHEAD — single header bar (home + archives + static) =========
   One section, one rule: logo · nav · Contact/Subscribe. The old separate
   primary-nav bar and meta-bar/ticker strip are retired. */
.masthead {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}
.masthead .logo { margin: 0; display: flex; align-items: center; line-height: 0; flex-shrink: 0; }
.masthead .logo img {
  height: clamp(40px, 2.5vw + 1.25rem, 52px);
  width: auto; display: block;
}
.masthead nav { flex: 1; min-width: 0; }
.masthead .mast-nav {
  list-style: none; display: flex; gap: clamp(18px, 2vw, 32px);
  margin: 0; padding: 0;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  flex-wrap: wrap;
}
.masthead .mast-nav a { color: var(--ink); }
.masthead .mast-nav a:hover { opacity: 0.6; }
.masthead .mast-nav a.current { border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.masthead .mast-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.masthead .contact,
.masthead .subscribe {
  padding: 9px 16px;
  border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
}
.masthead .contact { color: var(--ink); background: transparent; }
.masthead .contact:hover { background: var(--ink); color: var(--paper); }
.masthead .subscribe { background: var(--ink); color: var(--paper); }
.masthead .subscribe:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* (Util strip + mini masthead retired July 2026 — singles share .masthead.) */

/* ========= MOBILE NAV TOGGLE + DRAWER ========= */
/* Hidden on desktop — existing nav stays exactly as-is. */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}
.nav-toggle:hover { background: var(--ink); color: var(--paper); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  /* Masthead: collapse to logo + hamburger; nav + actions live in the drawer. */
  .masthead nav,
  .masthead .mast-actions { display: none; }
  .masthead .nav-toggle { display: inline-flex; margin-left: auto; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  background-image:
    radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer.is-open { display: flex; }
.nav-drawer .drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.nav-drawer .drawer-logo img { height: 34px; width: auto; display: block; }
.nav-drawer .nav-close {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}
.nav-drawer .nav-close:hover { background: var(--ink); color: var(--paper); }

.nav-drawer .drawer-links {
  list-style: none; padding: 0; margin: 0 0 auto;
  border-top: 1px solid var(--rule);
}
.nav-drawer .drawer-links li { border-bottom: 1px solid var(--rule); }
.nav-drawer .drawer-links a {
  display: block;
  padding: 20px 4px;
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.nav-drawer .drawer-links a:hover,
.nav-drawer .drawer-links a:active { color: var(--ink-soft); }

.nav-drawer .drawer-actions {
  display: flex; gap: 12px;
  margin-top: 36px;
}
.nav-drawer .drawer-actions a {
  flex: 1;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-drawer .drawer-actions .subscribe {
  background: var(--ink); color: var(--paper);
}

/* Lock body scroll while drawer is open. */
body.nav-open { overflow: hidden; }

/* ========= READING PROGRESS BAR (singles) =========
   Yellow — the highlighter tracking your progress through the piece. */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 50;
  transition: width 0.1s linear;
}

/* ========= NEWSLETTER (dark-on-ink variant, used on singles + front-page) ========= */
.nl {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 40px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.nl .huge {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.75rem, 5vw + 1rem, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.nl .huge em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  display: inline-block;
  line-height: 0.98;
}
.nl p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 19px; line-height: 1.4; margin: 0 0 16px; color: var(--paper);
}
.nl form { display: flex; gap: 8px; flex-wrap: wrap; }
.nl input {
  flex: 1; min-width: 0;
  font-family: var(--mono);
  font-size: 16px;         /* ≥16px prevents iOS Safari auto-zoom on focus */
  padding: 12px 14px; border: 1px solid var(--paper);
  background: transparent; color: var(--paper);
}
@media (min-width: 900px) {
  .nl input { font-size: 13px; }   /* back to mono-ideal size on desktop */
}
.nl input::placeholder { color: rgba(242, 236, 222, 0.55); }
.nl button {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); padding: 0 18px; cursor: pointer;
}
.nl button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
/* Signup result notices (dark block variant). */
.nl .nl-note {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  padding: 12px 16px;
  margin: 0 0 16px;
  border-left: 3px solid var(--accent);
  background: rgba(242,236,222,0.08);
  color: var(--paper);
}
.nl .nl-note--err { border-left-color: #c0392b; }

.nl .small {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242, 236, 222, 0.6); margin-top: 12px;
}

@media (max-width: 720px) {
  .nl { grid-template-columns: 1fr; padding: 40px 24px; gap: 24px; }
}

/* ========= SPEAKING CTA — universal dark block =========
   Two-column: text on the left, big yellow button on the right. Used on
   home + every single content page (template-parts/global/speaking-cta.php). */
.ll-speaking-cta {
  margin: 56px 0;
  padding: 48px 56px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.ll-speaking-cta .sc-head {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--paper);
  text-wrap: balance;
}
.ll-speaking-cta .sc-head em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.ll-speaking-cta .sc-dek {
  font-family: var(--serif);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.1875rem);
  line-height: 1.5;
  color: rgba(242,236,222,0.78);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.ll-speaking-cta .sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s ease-out, transform 0.18s ease-out;
}
.ll-speaking-cta .sc-btn:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateX(2px);
}
@media (max-width: 720px) {
  .ll-speaking-cta {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
    margin: 40px 0;
  }
  .ll-speaking-cta .sc-btn { justify-self: start; }
}

/* ========= TRUSTED-BY STRIP (shared: home + speaking) ========= */
.hm-trusted {
  padding: 32px 0 40px;
  text-align: center;
}
.hm-trusted .tb-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 10px;
  line-height: 1.4;
  margin-bottom: 24px;
}
.hm-trusted .tb-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}
.hm-trusted .tb-logos {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
  row-gap: 28px;
}
.hm-trusted .tb-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
.hm-trusted .tb-logos li.no-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.375rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.22s ease-out;
  white-space: nowrap;
}
.hm-trusted .tb-logos li.no-logo:hover { opacity: 1; }
.hm-trusted .tb-logos li.has-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.22s ease-out;
}
.hm-trusted .tb-logos li.has-logo.logo-round img { height: 54px; }
.hm-trusted .tb-logos li.has-logo:hover img { opacity: 1; }
@media (max-width: 600px) {
  .hm-trusted { padding: 20px 0 24px; }
  .hm-trusted .tb-label { margin-bottom: 16px; letter-spacing: 0.2em; }
  .hm-trusted .tb-logos { gap: 20px; row-gap: 20px; }
  .hm-trusted .tb-logos li { min-height: 32px; }
  .hm-trusted .tb-logos li.has-logo img { height: 30px; max-width: 120px; }
  .hm-trusted .tb-logos li.has-logo.logo-round img { height: 34px; }
  .hm-trusted .tb-logos li.no-logo { font-size: 0.95rem; }
}

/* ========= FOOTER ========= */
.footer {
  margin-top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 56px 0 28px;
  border-top: 1px solid var(--ink);
}
.footer-top {
  display: grid;
  /* Three columns: brand (wider) + Library + The Lab. Brand ratio is
     larger than a menu column because it carries the logo + italic blurb
     (340px max-width), while menu columns only need room for 3-4 links. */
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
}
.footer-logo img { height: 48px; width: auto; }
.footer-blurb {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.4; color: var(--ink-soft);
  max-width: 340px; margin: 16px 0 0;
}
.footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin: 8px 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer-bot {
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

/* Tablet: drop to 2 cols — brand spans the full row 1, the two menu
   columns share row 2. Keeps the visual weight balanced (without this
   override, brand would squeeze into one of two equal cols). */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
/* Phone: full stack. */
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top > div:first-child { grid-column: auto; }
}

/* ========= NEWSLETTER POPUP =========
   Our own modal, not Mailchimp's widget. Ink card on a dimmed overlay;
   posts to the same server-side subscribe handler as the other forms.
   Manners (when it shows, how often) live in assets/js/nl-popup.js. */
.nl-pop { position: fixed; inset: 0; z-index: 200; }
.nl-pop[hidden] { display: none; }
body.nlpop-open { overflow: hidden; }
.nl-pop-overlay {
  position: absolute; inset: 0;
  background: rgba(21, 18, 16, 0.55);
}
.nl-pop-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px));
  background: var(--ink);
  color: var(--paper);
  padding: 40px 40px 32px;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--accent);
}
.nl-pop-x {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: none;
  color: rgba(242,236,222,0.6);
  font-size: 28px; line-height: 1;
  cursor: pointer; padding: 6px;
}
.nl-pop-x:hover { color: var(--paper); }
.nl-pop-kicker {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.nl-pop-card h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.nl-pop-card h2 em { font-style: normal; font-weight: 800; color: var(--accent); }
.nl-pop-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px; line-height: 1.45;
  color: rgba(242,236,222,0.85);
  margin: 0 0 20px;
}
.nl-pop-row { display: flex; }
.nl-pop-row input {
  flex: 1; min-width: 0;
  font-family: var(--mono);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(242,236,222,0.5); border-right: none;
  background: transparent; color: var(--paper);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.nl-pop-row input::placeholder { color: rgba(242,236,222,0.5); }
.nl-pop-row input:focus { outline: none; border-color: var(--accent); }
.nl-pop-row button {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent);
  padding: 0 18px; cursor: pointer;
  white-space: nowrap;
}
.nl-pop-row button:hover { background: var(--paper); border-color: var(--paper); }
.nl-pop-row button:disabled { opacity: 0.6; cursor: wait; }
.nl-pop-note {
  font-family: var(--sans); font-size: 15px; line-height: 1.45;
  padding: 12px 16px; margin-top: 4px;
  border-left: 3px solid var(--accent);
  background: rgba(242,236,222,0.08);
}
.nl-pop-note.is-err { border-left-color: #c0392b; }
.nl-pop-small {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(242,236,222,0.55);
  margin-top: 16px;
}
@media (max-width: 540px) {
  .nl-pop-card { padding: 32px 22px 26px; box-shadow: 8px 8px 0 var(--accent); }
}
