/* The Pulse of Tomorrow — palette and type derived from the book cover */

/* Self-hosted fonts (Gambetta, Switzer: Fontshare; Oswald: Google Fonts, latin subset) */
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gambetta'; src: url('fonts/gambetta-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('fonts/oswald-latin.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #070d18;          /* cover background */
  --ink-2: #0f1828;
  --yellow: #eef048;       /* cover title */
  --yellow-deep: #d9db2c;
  --paper: #f3eee2;
  --paper-2: #e9e2d2;
  --text-dark: #141820;
  --muted-dark: #4b5260;
  --text-light: #f1ede3;
  --muted-light: #a9b0bd;
  --line-light: rgba(241, 237, 227, 0.14);
  --line-dark: rgba(20, 24, 32, 0.14);

  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Oswald', 'Arial Narrow', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text-light);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: italic; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.paper { background: var(--paper); color: var(--text-dark); }
.paper :focus-visible { outline-color: var(--ink); }
.ink { background: var(--ink); }

/* Labels */
.eyebrow {
  font-family: var(--font-label); font-weight: 500; font-size: 13px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--yellow);
  margin: 0 0 22px;
}
.eyebrow--dark { color: var(--muted-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 15px; text-decoration: none;
  padding: 16px 30px; border-radius: 2px; border: 0; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #fff; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 20px 46px; font-size: 17px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav--solid { background: rgba(7, 13, 24, 0.94); backdrop-filter: blur(8px); border-bottom-color: var(--line-light); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; margin-right: auto; }
.nav__title { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.nav__author { font-family: var(--font-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--font-label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted-light); transition: color .15s; }
.nav__links a:hover { color: var(--text-light); }

/* Hero */
.hero { position: relative; padding: calc(68px + clamp(48px, 8vw, 110px)) 0 clamp(96px, 10vw, 140px); background: radial-gradient(1100px 600px at 20% 30%, #13213a 0%, var(--ink) 65%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hero__cover img { width: 100%; max-width: 440px; margin-left: auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(48px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.015em; margin: 0; }
.hero__sub { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: var(--yellow); margin: 18px 0 0; line-height: 1.25; }
.hero__sub em { font-style: normal; }
.hero__author { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .24em; font-size: 15px; margin: 28px 0 0; color: var(--text-light); }
.hero__lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #cfd3da; max-width: 34em; margin: 26px 0 38px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; list-style: none; margin: 40px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-light); font-size: 15px; }
.hero__meta span { font-family: var(--font-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-light); margin-right: 6px; }

.pulse { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 48px; }
.pulse path { fill: none; stroke: var(--yellow); stroke-width: 1.5; opacity: .55; vector-effect: non-scaling-stroke; }

/* Big idea */
.idea { padding: var(--section) 0; }
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.015em; margin: 0; max-width: 15ch; }
.statement em { font-style: italic; }
.idea__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); margin-top: clamp(48px, 6vw, 84px); align-items: start; }
.prose p { margin: 0 0 1.15em; max-width: 36em; }
.paper .prose p { color: #2b313c; }
.kicker { font-family: var(--font-display); font-size: clamp(22px, 2vw, 27px) !important; line-height: 1.3; color: var(--text-dark) !important; margin-top: 1.4em !important; }
.idea__photo img { width: 100%; filter: grayscale(1) contrast(1.05); }
figcaption { font-size: 13px; color: var(--muted-dark); margin-top: 12px; letter-spacing: .02em; }

/* Book */
.book { padding: var(--section) 0; }
.book__head { max-width: 760px; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 28px; }
.h2--dark { color: var(--text-dark); }
.book__lede { font-size: clamp(18px, 1.5vw, 20px); color: #cfd3da; margin: 0; }
.parts { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-light); }
.part { padding: 36px 32px 8px 0; }
.part + .part { padding-left: 32px; border-left: 1px solid var(--line-light); }
.part__num { font-family: var(--font-label); font-weight: 500; font-size: 15px; letter-spacing: .2em; color: var(--yellow); }
.part__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; margin: 14px 0 16px; }
.part p { color: var(--muted-light); margin: 0; font-size: 16px; }

/* Turn */
.turn { padding: var(--section) 0; background: var(--paper-2); }
.turn__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.statement--turn { position: sticky; top: 110px; }

/* Praise */
.praise { padding: var(--section) 0; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: 21px; line-height: 1.45; color: var(--text-light); }
.quote figcaption { margin-top: 18px; font-weight: 600; color: var(--muted-light); font-size: 14px; line-height: 1.5; }
.quote figcaption strong { display: block; font-family: var(--font-label); font-weight: 500; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }
.quote--lead { max-width: 980px; padding-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line-light); }
.quote--lead blockquote { font-size: clamp(26px, 2.9vw, 38px); line-height: 1.3; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(40px, 6vw, 88px); margin-top: clamp(56px, 7vw, 88px); }

/* Author */
.author { padding: var(--section) 0; }
.author__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.author__photo img { width: 100%; }
.author__copy p:not(.eyebrow) { color: #2b313c; max-width: 34em; }
.textlink { display: inline-block; margin-top: 14px; font-family: var(--font-label); font-weight: 500; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dark); text-decoration: none; border-bottom: 2px solid var(--text-dark); padding-bottom: 4px; }
.textlink:hover { border-bottom-color: var(--yellow-deep); }

/* Final buy */
.buy { background: var(--yellow); color: var(--ink); padding: var(--section) 0 clamp(56px, 7vw, 88px); }
.buy :focus-visible { outline-color: var(--ink); }
.buy__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.buy__cover img { width: 100%; max-width: 380px; margin-left: auto; box-shadow: 0 34px 60px -26px rgba(7,13,24,.65); }
.buy__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 5vw, 70px); line-height: 1; margin: 0; letter-spacing: -0.015em; }
.buy__sub { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(20px, 2vw, 26px); margin: 12px 0 0; }
.buy__sub em { font-style: normal; }
.buy__author { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .24em; font-size: 15px; margin: 22px 0 0; }
.buy__date { font-size: 17px; font-weight: 600; margin: 8px 0 0; }
.buy__quote { margin: 36px 0 0; max-width: 34em; }
.buy__quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; }
.buy__quote figcaption { margin-top: 10px; font-weight: 600; font-family: var(--font-label); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.buy__label { font-family: var(--font-label); font-weight: 600; text-transform: uppercase; letter-spacing: .24em; font-size: 14px; margin: 44px 0 16px; }
.retailers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.retailers a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; padding: 18px; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; box-shadow: 0 1px 0 rgba(7,13,24,.12); }
.retailers a:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -14px rgba(7,13,24,.5); }
.retailers img { max-width: 100%; max-height: 34px; width: auto; }
.buy__bulk { margin: 28px 0 0; max-width: 36em; font-size: 15px; line-height: 1.55; }
.buy__bulk a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.buy__bulk a:hover { text-decoration-thickness: 2px; }
.wm { font-weight: 600; text-align: center; line-height: 1.15; }
.wm--bookshop { font-family: var(--font-body); font-size: 17px; letter-spacing: -.01em; }
.wm--bookshop span { color: #6b6b6b; font-weight: 500; }
.wm--ss { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.wm--target { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 17px; }
.wm--target img { height: 24px; max-height: 24px; }
.marks { display: flex; justify-content: center; gap: 16px; margin-top: clamp(64px, 8vw, 104px); flex-wrap: wrap; }
.mark { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 34px; border: 1.5px solid var(--ink); border-radius: 2px; min-width: 240px; transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease; }
.mark:hover { background: var(--ink); color: var(--yellow); transform: translateY(-3px); box-shadow: 0 16px 26px -14px rgba(7,13,24,.55); }
@media (prefers-reduced-motion: reduce) { .mark:hover { transform: none; } }
.mark span { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.mark strong { font-family: var(--font-label); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }

/* Footer */
.foot { background: var(--ink); padding: 24px 0; font-size: 13px; font-weight: 600; color: var(--muted-light); }
.foot__inner { display: flex; gap: 10px 12px; flex-wrap: wrap; justify-content: center; }
.foot__inner > * + *::before { content: "|"; margin-right: 12px; font-weight: 400; opacity: .5; }
.foot a { color: var(--muted-light); text-decoration: none; }
.foot a:hover { color: var(--text-light); }
.foot__follow { margin: 0 auto 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); text-align: center; font-size: 15px; font-weight: 400; color: var(--text-light); }
.foot__follow a { color: var(--yellow); }
.foot__follow a:hover { color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .idea__grid, .turn__grid, .author__grid, .buy__grid { grid-template-columns: 1fr; }
  .hero__cover img { max-width: 300px; margin: 0 auto; }
  .hero__copy { text-align: left; }
  .statement--turn { position: static; }
  .parts { grid-template-columns: 1fr; }
  .part, .part + .part { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .quotes { grid-template-columns: 1fr; }
  .buy__cover img { max-width: 260px; margin: 0 auto; }
  .author__photo { max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { gap: 16px; height: 62px; }
  .nav__title { font-size: 17px; }
  .hero { padding-top: calc(62px + 40px); }
  .hero__cover img { max-width: 230px; }
  .hero__copy .btn--lg { width: 100%; }
  .retailers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retailers a { aspect-ratio: 3 / 2; }
  .quote blockquote { font-size: 19px; }
  .mark { min-width: 0; width: 100%; }
}
