/* Bob Hopkins — website v1
   Design source: Figma "Bob-Hopkins" (Website page). Tokens mirror the Figma variables "Bob / Color" and "Bob / Space". */

:root {
  --paper: #ffffff;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --muted: #5a5a5a;
  --red: #d7263d;
  --red-dark: #b01e31;
  --red-soft: #fff1f2;
  --teal: #0f9d9a;
  --teal-deep: #0b7a78; /* AA-safe with white text — use for teal buttons/text */
  --teal-ink: #0b5f5d;
  --teal-soft: #e6f5f4;
  --sun: #ffc857;
  --sun-soft: #fff6de;
  --gray-50: #f7f7f5;
  --gray-100: #f2f1ee;
  --gray-300: #dddddA;
  --gray-500: #9a9a96;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --px: 80px;   /* page side padding (desktop) */
  --py: 96px;   /* section vertical padding (desktop) */
  --max: 1280px;
  --header-h: 88px;
}
@media (max-width: 1024px) { :root { --px: 40px; --py: 72px; --header-h: 72px; } }
@media (max-width: 640px)  { :root { --px: 20px; --py: 56px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--paper); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display-xl { font-size: clamp(40px, 5vw + 8px, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 2.2vw + 12px, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
.h3 { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.005em; }
.h4 { font-size: 20px; line-height: 1.32; font-weight: 700; }
.serif-h { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3vw + 12px, 56px); line-height: 1.08; letter-spacing: -0.01em; }
.serif-display { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 5vw + 12px, 84px); line-height: 1.02; letter-spacing: -0.01em; }
.body-l { font-size: clamp(17px, 0.4vw + 15px, 20px); line-height: 1.6; color: var(--ink-soft); }
.body-s { font-size: 15px; line-height: 1.5; color: var(--muted); }
.eyebrow { font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark); }
.eyebrow--teal { color: var(--teal-ink); }
.eyebrow--light { color: var(--paper); }
.eyebrow--sun { color: var(--sun); }
.eyebrow--muted { color: var(--muted); }
/* one italic serif phrase per headline */
.accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--red); }
.accent--teal { color: var(--teal-deep); }
.accent--light { color: var(--paper); }
.accent--sun { color: var(--sun); }
.todo { background: var(--sun-soft); border-radius: 4px; padding: 0 3px; } /* marks [content Bob must supply] */

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--px)); margin: 0 auto; padding: 0 var(--px); }
.section { padding: var(--py) 0; }
.section--tight { padding: calc(var(--py) * 0.6) 0; }
.bg-teal-soft { background: var(--teal-soft); }
.bg-gray { background: var(--gray-50); }
.bg-red { background: var(--red); color: var(--paper); }
.bg-red h1, .bg-red h2, .bg-red h3, .bg-red p { color: var(--paper); }
.bg-sun-soft { background: var(--sun-soft); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--paper); }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--media-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 32px; } }
@media (min-width: 1025px) {
  .split--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .split--about { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; align-items: flex-end; gap: 20px; }

/* ---------- Media ---------- */
.media { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.media--contain img { object-fit: contain; }
.media__caption { position: absolute; left: 14px; bottom: 12px; right: 14px; font-size: 13px; color: var(--muted); }
.play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--red); }
.play:hover { transform: scale(1.04); }
@media (max-width: 640px) { .play { width: 64px; height: 64px; } .play::before { border-width: 12px 0 12px 20px; } }
.video { position: relative; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 700 17px/1.2 var(--font-sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--m { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--red); color: var(--paper); }
.btn--primary:hover { background: var(--red-dark); color: var(--paper); }
.btn--book { background: var(--teal-deep); color: var(--paper); }
.btn--book:hover { background: var(--teal-ink); color: var(--paper); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-teal { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn--outline-teal:hover { background: var(--teal-deep); color: var(--paper); }
.btn--inverse { background: var(--paper); color: var(--red-dark); }
.btn--inverse:hover { background: var(--red-soft); color: var(--red-dark); }
.btn--on-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--on-dark:hover { background: var(--paper); color: var(--red-dark); }
.btn--block { width: 100%; }
@media (max-width: 640px) { .btn-row-stack .btn { width: 100%; } }
.text-link { font-weight: 700; color: inherit; text-decoration: none; }
.text-link:hover { text-decoration: underline; color: inherit; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--gray-300); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--red); flex: none; } /* placeholder until final logo is confirmed */
.logo__name { display: block; font-weight: 700; font-size: 20px; line-height: 1.2; }
.logo__tag { display: block; font-size: 12px; color: var(--muted); }
.site-nav ul { display: flex; gap: 32px; }
.site-nav a { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.header-ctas { display: flex; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--gray-300); border-radius: 12px; background: var(--paper); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 1024px) {
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--gray-300); padding: 8px var(--px) 24px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--gray-300); font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .header-ctas .btn--outline { display: none; }
}
@media (max-width: 640px) { .header-ctas { display: none; } .logo__tag { display: none; } }

/* sticky bar (phones) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 8px; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--gray-300); transform: translateY(100%); transition: transform .2s ease; }
.sticky-bar .btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 15px; }
.sticky-bar.is-visible { transform: none; }
@media (max-width: 640px) { .sticky-bar { display: flex; } body { padding-bottom: 76px; } }

/* ---------- Components ---------- */
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--teal-ink); font-size: 15px; font-weight: 700; }
.chip--teal { background: var(--teal-soft); }
.chip--outline { background: var(--paper); border: 1px solid var(--gray-300); color: var(--ink); }
.proof-strip { padding: 24px 0; background: var(--gray-50); }
.proof-strip .row { gap: 12px; }

.card { background: var(--paper); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 20px; display: grid; gap: 8px; min-width: 0; }
@media (max-width: 640px) { a.card[style*="flex-direction:row"] .card__body { padding: 14px; } a.card[style*="flex-direction:row"] .media { width: 112px !important; } }
.card--pad { padding: 20px; gap: 14px; }
.card--keynote .media { border-radius: var(--radius-md); }
.card a.card__link { color: inherit; text-decoration: none; }
.card a.card__link:hover .h4 { text-decoration: underline; }

.stat { border-radius: var(--radius-lg); padding: 28px; }
.stat__num { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; }
.stat__label { font-size: 15px; color: var(--ink-soft); }
.stat--red { background: var(--red-soft); } .stat--teal { background: var(--teal-soft); } .stat--sun { background: var(--sun-soft); } .stat--gray { background: var(--gray-100); }

.quote-card { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 20px; align-content: start; }
.quote-card blockquote { margin: 0; font-size: 20px; line-height: 1.55; }
.quote-card figcaption { font-weight: 700; font-size: 15px; }
.pull-quote { border-left: 3px solid var(--red); padding-left: 18px; }
.pull-quote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1vw + 14px, 24px); line-height: 1.45; color: var(--ink); }

.step { background: var(--gray-50); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; align-content: start; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 20px; }

.faq { border-top: 1px solid var(--gray-300); }
.faq details { border-bottom: 1px solid var(--gray-300); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 20px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 400; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 760px; }

/* forms */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--gray-500); border-radius: 12px; font: 400 17px/1.4 var(--font-sans); color: var(--ink); background: var(--paper); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.check input { width: 22px; height: 22px; accent-color: var(--teal-deep); }
.form-note { font-size: 15px; color: var(--muted); }
.form-status { padding: 14px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--teal); font-weight: 700; color: var(--teal-ink); }
.form-status[hidden] { display: none; }

/* buy box */
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.badge--in { background: var(--teal-soft); color: var(--teal-ink); }
.badge--out { background: var(--red-soft); color: var(--red-dark); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.015em; }
.options { border: 1px solid var(--gray-300); border-radius: 16px; overflow: hidden; margin: 0; padding: 0; }
.options legend { font-weight: 700; padding: 0 0 8px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; border-top: 1px solid var(--gray-300); font-size: 17px; }
.option:first-of-type { border-top: 0; }
.option input { width: 20px; height: 20px; accent-color: var(--teal-deep); margin: 0 12px 0 0; }
.option span:first-child { display: flex; align-items: center; }
.option:has(input:checked) { background: var(--teal-soft); }
.option__price { font-weight: 700; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumbs .media { border-radius: 12px; }
.qty { display: flex; gap: 10px; flex-wrap: wrap; }
.qty label { position: relative; }
.qty input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qty span { display: grid; place-items: center; width: 64px; height: 52px; border: 1px solid var(--gray-500); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: 17px; }
.qty input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qty input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

/* hero */
.hero { background: var(--teal-soft); padding: 72px 0; }
.hero .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.hero__photo { max-width: 560px; justify-self: end; width: 100%; }
@media (max-width: 1024px) { .hero { padding: 40px 0 48px; } .hero .split { grid-template-columns: 1fr; } .hero__photo { max-width: none; justify-self: stretch; } .hero__photo.ratio-4-5 { aspect-ratio: 4 / 3.6; } }
@media (max-width: 640px) { .hero__photo.ratio-4-5 { aspect-ratio: 4 / 4.3; } }

/* books band */
.covers { display: flex; gap: 16px; align-items: center; justify-content: center; }
.covers .media { width: 280px; aspect-ratio: 1; flex: none; }
.covers .media--bare { background: transparent; }
@media (max-width: 640px) { .covers .media { width: calc(50% - 8px); } }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--paper); font: 700 15px var(--font-sans); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.is-filtered-out { display: none !important; }

/* press list */
.press-list a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-top: 1px solid var(--gray-300); color: var(--ink); text-decoration: none; }
.press-list a:hover .press-title { text-decoration: underline; }
.press-title { font-family: var(--font-serif); font-size: clamp(20px, 0.6vw + 16px, 24px); }
.press-meta { font-size: 15px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .press-list a { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* timeline */
.milestone { background: var(--paper); border-radius: 16px; border-top: 4px solid var(--red); padding: 20px; display: grid; gap: 8px; align-content: start; }
.milestone strong { color: var(--red-dark); font-size: 24px; }

/* footer */
.site-footer { background: var(--ink); color: var(--gray-300); padding: 56px 0 40px; }
.site-footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 640px) { .site-footer__cols { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { color: var(--paper); font-size: 24px; }
.site-footer h3 { color: var(--sun); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a { color: var(--paper); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { text-decoration: underline; color: var(--paper); }
.site-footer__legal { margin-top: 40px; font-size: 13px; color: var(--gray-500); }

/* notices */
.notice { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--paper); padding: 16px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; }
.notice[hidden] { display: none; }
@media (max-width: 640px) { .notice { bottom: 92px; } }

.center { text-align: center; }
.mw-760 { max-width: 760px; margin-left: auto; margin-right: auto; }
.mw-880 { max-width: 880px; margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
