/* ============================================================
   SMOOTH OPERATOR — shared stylesheet (v5)
   Loaded by /index.html and /blog/* pages.
   PLEASURE MODE web — neutral grotesk frame.
   Website disappears so the BOOK pops as the visually specific element.
   Inter (SIL OFL — free for commercial). One typeface. No flourish.
   ============================================================ */

/* Fonts loaded via <link> in HTML <head> for one-fewer-round-trip render. */

:root {
  /* CHROME (everything outside SO content blocks) */
  --paper:       #FFFFFF;
  --paper-deep:  #FAFAFA;
  --bone:        #FFFFFF;
  --ink:         #000000;
  --ink-2:       #000000;
  --ink-mute:    #6B6B6B;
  --ink-soft:    #6B6B6B;
  --rule:        #E5E5E5;
  --rule-2:      #E5E5E5;

  /* SO brand red — appears only on hero/manifesto highlight blocks,
     coral CTA pills, the full-bleed Buy panel. */
  --neon:        #D83C2C;
  --neon-deep:   #B22D20;

  --sans:  'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html, body { margin: 0; padding: 0; }

/* Visible focus ring for keyboard nav. Hidden for mouse clicks per :focus-visible spec. */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 2px;
}
.pill:focus-visible, .pill-sm:focus-visible {
  outline-offset: 4px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--neon); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.0;
}
p { margin: 0; }

/* No red text-highlight blocks. Color stays on CTAs, Buy panel, Footer pill only. */

/* MONO label — used on the stat strip + reader voice card meta. */
.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.util {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.util-lg {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ulink {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  border-bottom: 1.5px solid currentColor;
  transition: padding-bottom 200ms ease;
}
.ulink:hover { padding-bottom: 10px; }
.ulink-lg { font-size: 16px; padding-bottom: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 36px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  line-height: 1;
  transition: background 220ms ease, color 220ms ease;
}
.pill:hover { background: var(--neon); color: var(--paper); }
.pill .arr { transition: transform 220ms ease; }
.pill:hover .arr { transform: translateX(4px); }
.pill-neon { background: var(--neon); color: var(--paper); }
.pill-neon:hover { background: var(--ink); color: var(--paper); }
.pill-sm { padding: 14px 22px; font-size: 12px; gap: 10px; white-space: nowrap; }
.pill-ghost { background: transparent; color: currentColor; border: 1.5px solid currentColor; }

@media (max-width: 540px) {
  .pill-sm { padding: 12px 16px; font-size: 11px; gap: 8px; letter-spacing: 0.06em; }
}

.wrap { width: 100%; margin: 0 auto; padding: 0 28px; max-width: 1600px; }
@media (min-width: 1100px) { .wrap { padding: 0 48px; } }
.full { width: 100%; padding: 0 28px; }
@media (min-width: 1100px) { .full { padding: 0 48px; } }

.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 700ms ease-out, transform 700ms ease-out; }
.fade-in.in { opacity: 1; transform: none; }

.marquee {
  display: flex; overflow: hidden; gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
/* IDEO stat-strip note: top/bottom rules stay BLACK (1px black hairline) —
   per spec, this strip becomes the cleanest IDEO-style detail on the page. */
.marquee-track {
  flex: 0 0 auto; display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  padding: 18px 28px 18px 0;
}
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.ch-tile {
  position: relative; overflow: hidden;
  color: var(--ink);
  transition: background 200ms ease;
}
.ch-tile:hover { background: var(--paper-deep); }
/* No dark invert on hover — IDEO chrome stays neutral.
   Accent color on the title remains coral on hover. */

.voice-card { transition: background 280ms ease; }
.voice-card:hover { background: var(--paper-deep); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.ft-link {
  color: var(--paper); opacity: 0.7;
  font-size: 14px; line-height: 1.4;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 180ms ease, color 180ms ease, border-color 180ms ease;
}
.ft-link:hover { opacity: 1; color: var(--neon); border-bottom-color: var(--neon); }

.sample-form input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  width: 100%;
  outline: none;
  font-weight: 500;
}
.sample-form input[type="email"]::placeholder { color: var(--ink-soft); }
.sample-form input[type="email"]:focus { border-bottom-color: var(--neon); }
.sample-form input[type="email"][aria-invalid="true"] { border-bottom-color: var(--neon); }
.sample-form input[type="email"]:disabled { opacity: 0.6; cursor: wait; }
.sample-form button:disabled { cursor: wait; }

/* ============================================================
   BLOG  ·  Field Notes
   ============================================================ */

.blog-shell { padding-top: 80px; }

.blog-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.blog-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
}
@media (min-width: 1100px) { .blog-nav-inner { padding: 14px 48px; } }
.blog-nav-mark {
  font-family: var(--sans); font-weight: 700; font-size: 16px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); line-height: 1;
}
.blog-nav-links { display: flex; align-items: center; gap: 32px; }
@media (max-width: 880px) { .blog-nav-links { display: none; } }

.blog-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--rule);
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 128px);
  line-height: 0.94; letter-spacing: -0.025em;
  font-weight: 800; color: var(--ink);
  margin: 24px 0 0; max-width: 14ch;
}
.blog-hero .lede {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(17px, 1.3vw, 21px); line-height: 1.5;
  color: var(--ink-2); max-width: 50ch;
  margin: 32px 0 0;
}

.post-list {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--ink);
}
.post-row {
  display: grid; grid-template-columns: 120px 1fr 220px;
  gap: 32px; padding: 36px 28px;
  border-bottom: 1px solid var(--ink);
  transition: background 220ms ease, color 220ms ease;
  align-items: center;
}
@media (min-width: 1100px) { .post-row { padding: 40px 48px; } }
.post-row:hover { background: var(--ink); color: var(--paper); }
.post-row:hover .post-meta,
.post-row:hover .post-excerpt,
.post-row:hover .tag { color: var(--paper) !important; }

.post-date { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.post-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.post-excerpt { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-mute); margin: 0; max-width: 60ch; }
.post-meta { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); text-align: right; }

@media (max-width: 880px) {
  .post-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 24px !important; }
  .post-meta { text-align: left; }
}

/* Post body */
.post-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 28px 120px;
}
@media (min-width: 1100px) { .post-article { padding: 96px 48px 140px; } }
.post-article header { margin-bottom: 56px; }
.post-article header .post-date { color: var(--neon); margin-bottom: 24px; display: block; }
.post-article header h1 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 22ch;
}
.post-article header .lede {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--ink-2);
  margin: 0; max-width: 60ch;
}
.post-article header .meta {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--rule-2);
  display: flex; justify-content: space-between;
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}

.post-body { font-family: var(--sans); font-size: 19px; line-height: 1.7; color: var(--ink); max-width: 70ch; }
.post-body > * + * { margin-top: 1.4em; }
.post-body h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
  margin-top: 2em; margin-bottom: 0.6em;
}
.post-body h3 {
  font-family: var(--serif); font-weight: 800;
  font-size: 24px; line-height: 1.2; color: var(--ink);
  margin-top: 1.8em; margin-bottom: 0.4em;
}
.post-body p { color: var(--ink-2); }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body em { font-style: italic; color: inherit; }
.post-body a { color: var(--neon); border-bottom: 1.5px solid var(--neon); padding-bottom: 1px; }
.post-body a:hover { background: var(--neon); color: var(--paper); }
.post-body blockquote {
  margin: 2em 0; padding: 24px 32px;
  font-family: var(--serif); font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--neon); background: var(--paper-deep);
}
.post-body ul, .post-body ol { padding-left: 24px; color: var(--ink-2); }
.post-body li { margin-top: 0.5em; }
.post-body hr { border: none; border-top: 1px solid var(--rule-2); margin: 3em auto; max-width: 80px; }
.post-body code { font-family: ui-monospace, monospace; background: var(--paper-deep); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }

.post-cta {
  margin-top: 80px; padding: 48px 40px;
  background: var(--paper-deep);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 20px;
}
.post-cta h3 {
  font-family: var(--serif); font-weight: 800;
  font-size: 32px; line-height: 1.05; color: var(--ink); margin: 0;
}
.post-cta p { font-family: var(--sans); font-size: 16px; color: var(--ink-mute); margin: 0; max-width: 50ch; }
.post-cta .pill { align-self: flex-start; }

/* Mobile overrides */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
    background: linear-gradient(0deg, rgba(244,241,234,0.95) 0%, rgba(244,241,234,0) 100%);
    transform: translateY(110%);
    transition: transform 200ms ease-out;
    pointer-events: none;
  }
  .sticky-cta.in { transform: translateY(0); pointer-events: auto; }
  .sticky-cta .pill {
    width: 100%; justify-content: center;
    padding: 18px 24px; font-size: 13px;
    box-shadow: 0 6px 20px rgba(20,63,68,0.22);
  }
}

.hero-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

@media (max-width: 767px) {
  .ch-grid { grid-template-columns: 1fr !important; }
  .ch-tile {
    min-height: 0 !important;
    padding: 22px 20px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px;
    border-right: none !important;
  }
  .ch-tile > .tag { flex: 0 0 auto; align-self: center; }
  .ch-tile > div { display: flex !important; flex-direction: column; gap: 2px; }
  .ch-tile h3 { font-size: 19px !important; line-height: 1.15 !important; }
  .ch-tile p { font-size: 13px !important; }
}

@media (max-width: 767px) {
  .marquee { border: none !important; padding: 24px 16px; }
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    gap: 14px 18px !important;
    padding: 0 !important;
    width: 100%;
    justify-content: space-between;
  }
  .marquee-track > span:nth-child(n+7) { display: none; }
  .marquee-track > span {
    flex: 0 0 calc(50% - 12px);
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    color: var(--ink-mute);
  }
}

@media (max-width: 767px) {
  section { padding-top: 64px !important; padding-bottom: 64px !important; }
  section[data-screen-label="01 Hero"] { padding-top: 0 !important; padding-bottom: 0 !important; }
  section[data-screen-label="08 Buy"] { padding-top: 56px !important; padding-bottom: 64px !important; }
}

/* Mobile hero image: fit viewport width, preserve aspect ratio.
   Previous version forced overflow with scale(1.1) + width:auto. */
@media (max-width: 767px) {
  .hero-strip-wrap { overflow: hidden; }
  .hero-strip-wrap img {
    width: 100% !important; height: auto !important;
    max-width: 100% !important; min-width: 0 !important;
    transform: none !important;
  }
  .ft-top h2 { font-size: clamp(36px, 11vw, 64px) !important; line-height: 0.95 !important; word-break: break-word; }
  .ft-top .pill { max-width: 100%; }
}

/* Belt-and-suspenders against horizontal scroll on mobile.
   Should never trigger if all overflow sources are fixed,
   but catches regressions silently. */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Logo in nav: scale down on small screens so the right-side pill doesn't collide. */
.pm-logo img { transition: height 200ms ease; }
@media (max-width: 540px) {
  .pm-logo img { height: 28px !important; }
}
@media (max-width: 380px) {
  .pm-logo img { height: 24px !important; }
}

/* Footer column links: make tap targets at least 44px tall per Apple/Google guidelines. */
.ft-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Sample form on mobile: input + button must use full available width. */
@media (max-width: 767px) {
  .sample-form { padding: 28px 20px 24px !important; }
  .sample-form input[type="email"] { width: 100% !important; }
  .sample-form button { width: 100% !important; padding: 18px 20px !important; }
}
