:root {
  /* Formatrix brand palette */
  --brand-navy: #1c1f2e;
  --brand-slate: #5e7185;
  --brand-gold: #c4a574;
  --brand-gold-dark: #a88a5c;
  --brand-olive: #6e8259;
  --brand-cream: #f7f6f3;

  /* Semantic tokens */
  --ink: var(--brand-navy);
  --paper: #ffffff;
  --accent: var(--brand-gold);
  --accent-dark: var(--brand-gold-dark);
  --warm-gray: #e8e4dc;
  --cream: var(--brand-cream);

  --bg: var(--cream);
  --surface: var(--paper);
  --surface-2: #f0f2f5;
  --border: #e0e4ea;
  --text: var(--ink);
  --muted: #6b7280;
  --accent-2: var(--brand-slate);
  --success: #3ecf8e;
  --danger: #c94a4a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(28, 31, 46, 0.08);
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 165, 116, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(94, 113, 133, 0.08), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: url("/images/formatrix-mark.svg") center / contain no-repeat;
  font-size: 0;
  color: transparent;
  border-radius: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.brand-wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-wordmark .format { color: var(--brand-slate); }
.brand-wordmark .r { color: var(--brand-olive); }
.brand-wordmark .ix { color: var(--brand-gold); }

.brand-subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--brand-slate);
  text-transform: uppercase;
}

.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav button {
  color: var(--muted);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding: 4rem 0 3rem;
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0;
  max-width: 12ch;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 58ch;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0 4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 { margin: 0 0 0.5rem; }
.card p { color: var(--muted); line-height: 1.5; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.price {
  font-size: 2rem;
  font-weight: 700;
}
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--muted);
}
.feature-list li { padding: 0.35rem 0; }

.coach-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.coach-card--contextual {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.coach-card--contextual .coach-appearance {
  flex: 1;
  min-width: min(100%, 280px);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.coach-appearance {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.coach-appearance--horizontal {
  flex-direction: row;
  align-items: flex-end;
}

.coach-appearance--vertical {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coach-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  border: 2px solid var(--coach-accent, var(--accent));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.coach-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coach-avatar--lg { width: 72px; height: 72px; font-size: 1rem; }
.coach-avatar--md { width: 56px; height: 56px; font-size: 0.9rem; }
.coach-avatar--sm { width: 40px; height: 40px; font-size: 0.75rem; }

.coach-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 1rem 1.15rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface);
  border: 1px solid rgba(202, 151, 53, 0.25);
  box-shadow: var(--shadow);
}

.coach-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid var(--surface);
}

.coach-bubble--compact {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.coach-bubble__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.coach-bubble__title { color: var(--muted); font-size: 0.85rem; }
.coach-bubble__text { margin: 0; color: var(--text); line-height: 1.55; }

.coach-card__body { flex: 1; }
.coach-card__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: baseline; margin-bottom: 0.35rem; }
.coach-card__title { color: var(--muted); font-size: 0.9rem; }
.coach-card__message { margin: 0; color: var(--text); line-height: 1.55; }

/* Entrance animations */
@keyframes coach-slide-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes coach-avatar-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coach-bubble-in {
  from {
    opacity: 0;
    transform: translateX(-8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.coach-appearance--animate .coach-avatar {
  animation: coach-avatar-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.coach-appearance--animate .coach-bubble,
.coach-appearance--animate .chat-bubble--coach {
  animation: coach-bubble-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.coach-team-intro__item {
  animation: coach-slide-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 0.12s + 0.1s);
}

.coach-team {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}
.coach-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}
.coach-team-member--active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.coach-team-member .coach-avatar {
  border-width: 2px;
}

.coach-team-member--active .coach-avatar {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.coach-team-intro {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.coach-team-intro__item .coach-appearance {
  align-items: flex-end;
}

/* Chat bubbles with coach photos */
.chat-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  max-width: 92%;
}

.chat-row--user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-bubble {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  line-height: 1.5;
}

.chat-bubble--user {
  background: var(--surface-2);
  border-radius: 16px 16px 4px 16px;
}

.chat-bubble--coach {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(202, 151, 53, 0.25);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow);
}

.chat-bubble__label {
  font-size: 0.78rem;
  color: var(--coach-accent, var(--accent-2));
  margin-bottom: 0.35rem;
}

.chat-bubble__ai-tag {
  font-size: 0.72rem;
  color: var(--accent-2);
  margin-bottom: 0.35rem;
}

.chat-bubble__text {
  color: var(--text);
}

.ai-tag {
  font-size: 0.75rem;
  color: var(--accent-2);
}

#chat {
  display: grid;
  gap: 1rem;
  max-height: 420px;
  overflow: auto;
  margin: 1rem 0;
  padding: 0.25rem 0;
}

.coach-shell {
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.25rem;
}

.coach-hero {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(202, 151, 53, 0.12), var(--surface));
  border: 1px solid rgba(202, 151, 53, 0.25);
}

.coach-hero h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.coach-subtitle { color: var(--muted); font-size: 1.1rem; }

.progress-bar {
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.rec-list { display: grid; gap: 0.75rem; }
.rec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.rec-item strong { display: block; margin-bottom: 0.25rem; }
.rec-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}
label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(202, 151, 53, 0.1);
  border: 1px solid rgba(202, 151, 53, 0.25);
  color: var(--ink);
  font-size: 0.95rem;
}

.error {
  background: rgba(201, 74, 74, 0.08);
  border-color: rgba(201, 74, 74, 0.25);
  color: var(--danger);
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer__links {
  margin-top: 0.75rem;
}

.footer__links a {
  color: var(--muted);
}

.footer__links a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .rec-item { flex-direction: column; align-items: flex-start; }
}

.cover-studio {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .cover-studio {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

.cover-studio__controls .field {
  display: block;
  margin-bottom: 1rem;
}

.cover-studio__controls .field__label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.cover-studio__controls .field__input,
.cover-studio__controls select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
}

.cover-studio__controls .field__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cover-studio__controls .field__row input[type="color"] {
  width: 48px;
  height: 48px;
  border: none;
  padding: 0;
  background: none;
}

.cover-studio__preview canvas {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cover-studio__cmyk {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--surface-2);
}

.cover-studio__controls .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Author presence */
.author-page {
  background: var(--paper);
}

.author-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr minmax(260px, 300px);
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.author-hero__photo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(180deg, #b8bcc4 0%, #8b929e 100%);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.author-hero__main h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.25rem 0 0.5rem;
}

.author-title {
  color: var(--brand-slate);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.author-heart {
  color: var(--brand-gold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.author-bio p {
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem;
}

.author-details__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.author-details__list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.author-details__list li:last-child {
  border-bottom: none;
}

.author-details__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gold);
  color: var(--brand-navy);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-details__list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-gold-dark);
}

.author-details__list span {
  font-size: 0.92rem;
  color: var(--text);
}

.author-publishing {
  margin-top: 1rem;
  border: 2px solid var(--brand-navy);
}

.author-publishing__header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.author-publishing__header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  margin: 0;
}

.author-publishing__slogan {
  font-size: 0.82rem;
  color: var(--brand-gold-dark);
  margin: 0.15rem 0 0;
  font-style: italic;
}

.author-publishing h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-slate);
  margin: 1rem 0 0.5rem;
}

.author-publishing ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.author-publishing__promise {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.author-inspiration {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--brand-navy);
  color: var(--paper);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.author-inspiration .eyebrow {
  color: var(--brand-gold);
}

.author-inspiration blockquote {
  margin: 0.5rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
}

.author-works ul {
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 960px) {
  .author-hero {
    grid-template-columns: 1fr;
  }

  .author-hero__photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Featured book showcase */
.featured-book {
  margin: 1.5rem 0 2.5rem;
  border: 2px solid var(--brand-navy);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.featured-book__alert {
  background: var(--brand-gold);
  color: var(--brand-navy);
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.featured-book__hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f7f6f3 0%, #fff 60%);
}

.featured-book__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--brand-navy);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.featured-book__volume {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  color: var(--brand-gold-dark);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.featured-book__subtitle {
  font-size: 1rem;
  color: var(--brand-slate);
  margin: 0 0 1rem;
  font-style: italic;
}

.featured-book__legacy {
  display: inline-block;
  background: var(--brand-navy);
  color: var(--brand-gold);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0;
  max-width: 28rem;
  line-height: 1.4;
}

.featured-book__visual {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.featured-book__visual img {
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(28, 31, 46, 0.18);
}

.featured-book__visual #book-cover {
  max-width: 220px;
  height: auto;
}

.featured-book__author-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--brand-gold);
  box-shadow: 0 8px 24px rgba(28, 31, 46, 0.15);
}

.featured-book__meet {
  padding: 1.25rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.featured-book__meet-bar {
  background: var(--brand-navy);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-book__meet-bar strong {
  color: var(--brand-gold);
  margin-left: 0.35rem;
}

.featured-book__meet-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-gold-dark);
  text-transform: uppercase;
  margin: 0.5rem 0 0;
}

.featured-book__pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.featured-book__pillar {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.featured-book__pillar:last-child {
  border-right: none;
}

.featured-book__pillar-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.featured-book__pillar h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  color: var(--brand-navy);
  margin: 0 0 0.35rem;
  letter-spacing: 0.06em;
}

.featured-book__pillar p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.featured-book__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--brand-navy);
  color: var(--paper);
}

.featured-book__cta h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--brand-gold);
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.featured-book__cta p {
  margin: 0;
  font-style: italic;
  opacity: 0.9;
}

.featured-book__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-book__cta .btn-primary {
  background: var(--brand-gold);
  color: var(--brand-navy);
}

.featured-book__cta .btn-secondary {
  background: transparent;
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

@media (max-width: 800px) {
  .featured-book__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-book__visual {
    order: -1;
  }

  .featured-book__visual img {
    margin: 0 auto;
  }

  .featured-book__legacy {
    margin: 0 auto;
  }

  .featured-book__pillars {
    grid-template-columns: 1fr 1fr;
  }

  .featured-book__pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Author site banner */
.author-site-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--brand-gold);
  background: linear-gradient(135deg, rgba(196, 165, 116, 0.12), transparent);
}

.author-pending-link {
  cursor: default;
  opacity: 0.85;
}

/* Lewis Legacy ecosystem */
.author-ecosystem {
  margin: 2rem 0;
}

.author-ecosystem__header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.author-ecosystem__header h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
}

.author-ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.ecosystem-brand {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.ecosystem-brand h3 {
  font-size: 1rem;
  margin: 0 0 0.15rem;
}

.ecosystem-brand .lead {
  margin: 0;
  font-size: 0.85rem;
}

.ecosystem-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-gold-dark);
  text-transform: uppercase;
}

.ecosystem-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-style: italic;
}

.ecosystem-links {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.ecosystem-links a {
  font-weight: 600;
}

