:root {
  --navy: #0b2436;
  --navy-deep: #071925;
  --teal: #1f5c72;
  --teal-light: #3f7f96;
  --gold: #c9a227;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink: #1c2530;
  --ink-soft: #4a5866;
  --border: #e3ddd0;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.8em;
}

p { margin: 0 0 1.1em; }

a { color: var(--teal); }

img { max-width: 100%; display: block; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner.narrow {
  max-width: 760px;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: #fff; }

.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* Hero */
.hero {
  background:
    linear-gradient(160deg, rgba(7,25,37,0.92), rgba(31,92,114,0.85)),
    radial-gradient(circle at 80% 20%, rgba(63,127,150,0.4), transparent 60%);
  color: #fff;
  padding: 90px 0 100px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1em;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 0.4em;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin-bottom: 0.7em;
}

.hero-authors {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cover img {
  border-radius: 6px;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
  transform: rotate(1.5deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

/* Book meta */
.book-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--border);
}

.book-meta dt {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.2em;
}

.book-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

/* Rutter section */
#rutter {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  text-align: center;
}

#rutter h2 { color: #fff; }
#rutter p { color: rgba(255,255,255,0.82); text-align: left; }

.rutter-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.3em;
}

.rutter-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 2em 0;
  text-align: left;
}

.rutter-dimensions .dimension {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 18px;
}

.rutter-dimensions h4 {
  font-family: var(--font-head);
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 0.4em;
}

.rutter-dimensions p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

.rutter-quote {
  border-left: 3px solid var(--gold);
  margin: 2em 0;
  padding: 0.2em 0 0.2em 20px;
  text-align: left;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: #fff;
}

.rutter-papers {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Applying the Rutter — paper cards */
.paper-card .card-date { color: var(--teal-light); }
.section.alt .paper-card .card-date,
.section:not(.alt) .paper-card .card-date { color: var(--teal); }

.paper-feature {
  border-left: 3px solid var(--teal);
}

.paper-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 0.8em;
}

.paper-links a, .paper-card > a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Authors */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.author-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.author-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1em;
}

.author-edu {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-style: italic;
  margin-bottom: 1em;
}

.author-linkedin {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.author-linkedin:hover { text-decoration: underline; }

/* Praise / endorsements */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 1em;
}

.praise-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.section.alt .praise-card { background: var(--paper); }

.praise-card blockquote {
  margin: 0 0 0.8em;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.5;
}

.praise-card details {
  margin-bottom: 0.8em;
}

.praise-card summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  user-select: none;
}

.praise-card details p {
  margin-top: 0.8em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.praise-attr {
  margin: auto 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-light);
}

/* Cards (press / podcasts / events) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2em;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.section.alt .info-card { background: var(--cream); }

.info-card .card-date {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5em;
  display: block;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}

.info-card p { margin-bottom: 0.5em; font-size: 0.95rem; color: var(--ink-soft); }

.info-card a { font-weight: 600; font-size: 0.9rem; }

.empty-state {
  color: var(--ink-soft);
  font-style: italic;
  padding: 24px 0;
}

/* Buy */
.buy-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.buy-section .btn-primary { color: var(--navy-deep); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 28px 0;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer a { color: rgba(255,255,255,0.8); }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-cover { max-width: 320px; margin: 0 auto; }
  .hero h1 { font-size: 2rem; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .main-nav.open { display: flex; }

  .nav-cta { align-self: flex-start; }
}
