:root {
  --bg: #0e1116;
  --card: #171b22;
  --line: #262c36;
  --text: #f2f3f5;
  --muted: #a3aab5;
  --red: #d7262e;
  --red-hi: #ef3a42;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
main { max-width: 560px; margin: 0 auto; padding: 32px 20px 120px; }
img { display: block; max-width: 100%; height: auto; }

.hero { text-align: center; }
.hero img {
  width: min(56vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
}
h1 {
  margin: 20px 0 4px;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.handle { color: var(--muted); margin: 0; }

.book {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}
.book img { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 10px; }
h2 { margin: 18px 0 0; font-size: 26px; line-height: 1.15; font-weight: 900; }
.sub { margin: 4px 0 0; color: var(--muted); }
.price { margin: 12px 0 16px; font-size: 22px; font-weight: 800; }
.price small { color: var(--muted); font-weight: 500; font-size: 15px; }

.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .1s;
}
.buy:hover { background: var(--red-hi); }
.buy:active { transform: scale(0.98); }
.buy:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

section { margin-top: 36px; }
h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; }
p { margin: 0 0 14px; }
ol.chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: ch; }
ol.chapters li {
  counter-increment: ch;
  display: grid;
  grid-template-columns: 2.5em 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
ol.chapters li::before {
  content: counter(ch, decimal-leading-zero);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
ol.chapters li span { grid-column: 2; color: var(--muted); font-weight: 500; font-size: 15px; }
.who p strong { color: var(--text); }
.who p { color: var(--muted); }

footer { margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.social a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(14,17,22,0));
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky.show { transform: none; }
.sticky .buy { max-width: 520px; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .sticky, .buy { transition: none; } }

/* About page */
.nav { display: flex; justify-content: space-between; align-items: center; margin: -8px 0 24px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.nav a.cta { color: #ff6b70; font-weight: 700; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.lede { margin: 24px 0 16px; font-size: clamp(26px, 8vw, 34px); line-height: 1.1; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.lede span { display: block; }
.about { margin-top: 0; }
.about p { color: var(--muted); }
.about p strong { color: var(--text); }
.about ul, .about ol { margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); }
.about li { margin-bottom: 6px; }
.about a { color: var(--text); }

/* Home: title line and About card */
.titles { margin: 6px 0 2px; color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; }
.about-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.about-card img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.about-card-text { display: grid; gap: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.about-card .more { color: var(--text); font-weight: 800; }
.about-card:hover .more, .about-card:focus-visible .more { color: #ff6b70; }
.about-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
