:root {
  --blue: #0b87da;
  --blue-deep: #075a94;
  --blue-tint: #eaf4fc;
  --ink: #0a0a0a;
  --ink-soft: #3a3a3a;
  --paper: #ffffff;
  --line: #e3e8ee;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blue);
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand span {
  color: var(--blue);
}
.navlinks {
  display: flex;
  gap: 34px;
  list-style: none;
}
.navlinks a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.navlinks a:hover {
  color: var(--ink);
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width 0.25s ease;
}
.navlinks a:hover::after {
  width: 100%;
}
.navcta {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.navcta:hover {
  background: var(--blue-deep);
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */
.hero {
  padding: 96px 0 88px;
  background: linear-gradient(180deg, var(--blue-tint) 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid var(--blue);
  opacity: 0.15;
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue);
}
.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-deep);
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.hero-portrait {
  aspect-ratio: 4/5;
  background: var(--ink);
  background: linear-gradient(
    160deg,
    #111 0%,
    #1c2b38 55%,
    var(--blue-deep) 130%
  );
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-portrait .ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  text-transform: uppercase;
  padding: 0 24px;
}
.hero-portrait .ph-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

/* SECTION LABELS - chapter style, thematically tied to books */
.chapter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.chapter .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--blue);
}
section {
  padding: 88px 0;
}
section.tint {
  background: var(--blue-tint);
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 16px;
}

/* BOOKS */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.book-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(11, 135, 218, 0.35);
}
.book-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0a0a0a;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.metabolism-cover {
  background: #0a0a0a;
}
.metabolism-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.book-body .genre {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.book-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 20px;
}
.book-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.format-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%233a3a3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 14px center,
    #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 34px 12px 14px;
  border-radius: 2px;
  cursor: pointer;
}
.format-select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.paypal-form {
  display: flex;
}
.paypal-form button {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.paypal-form button:hover {
  background: var(--blue);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-figure {
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, #0a0a0a, var(--blue-deep));
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-figure span {
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 15.5px;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-row div strong {
  font-family: var(--serif);
  font-size: 28px;
  display: block;
}
.stat-row div small {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* BIO TOGGLE + MODAL */
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
}
.bio-toggle svg {
  transition: transform 0.2s ease;
}
.bio-toggle:hover {
  color: var(--blue);
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 48px 40px 40px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--blue-tint);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--blue);
  color: #fff;
}
.modal-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 6px 0 20px;
}
.modal-body p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 16px;
}
.modal-subhead {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 28px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.highlight-list {
  list-style: none;
}
.highlight-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.highlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.post-card {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.post-card .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-deep);
  letter-spacing: 0.06em;
}
.post-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 10px 0 10px;
  line-height: 1.3;
}
.post-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.post-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-deep);
}

/* PRESS / MEDIA */
.press-list {
  border-top: 1px solid var(--line);
}
.press-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.press-item .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.press-item h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
.press-item p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.press-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  border-radius: 2px;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-top: 24px;
}
.contact-info dt:first-child {
  margin-top: 0;
}
.contact-info dd {
  font-size: 16px;
  margin-top: 6px;
}
.form-msg {
  margin-top: 14px;
  font-size: 13.5px;
  display: none;
}
.form-msg.show {
  display: block;
}

footer {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer .brand {
  color: #fff;
}
footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}
footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
footer ul {
  list-style: none;
}
footer li {
  margin-bottom: 10px;
}
footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
}
footer a:hover {
  color: var(--blue);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
  nav.wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .burger {
    display: flex;
  }
  .navcta {
    order: 2;
  }
  .navlinks {
    display: none;
    order: 3;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 18px;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks li {
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .navlinks a {
    display: block;
    padding: 14px 2px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-portrait {
    max-width: 360px;
    margin: 0 auto;
  }
  section {
    padding: 64px 0;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal {
    padding: 44px 28px 32px;
  }
  .press-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .press-item .date {
    order: -1;
  }
  .press-item a {
    justify-self: start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .books-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    gap: 20px 28px;
  }
  .modal {
    padding: 40px 20px 28px;
  }
  .modal-body h3 {
    font-size: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
