/* ============================================================
   AUTHOR TEMPLATE — THEME STYLES
   Inspired by katestevensbooks.com (layout + mood, simplified)
   ============================================================ */

.author-page {
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --author-bg-light: #ffffff;
  --author-bg-dark: #0b0b18;
  --content-bg-light: #ffffff;
  --content-bg-dark: #ffffff;

  --author-bg: var(--author-bg-light);
  --content-background-color: var(--content-bg-light);

  --author-text: #1a1a2e;
  --author-muted: #5a5a7a;
  --author-heading: #0b0b18;
  --author-border: #eaeaf0;
  --author-surface: color-mix(in srgb, var(--content-background-color) 94%, white);
  --author-shadow: rgba(0, 0, 0, 0.08);
  --panel-sheen: rgba(0, 0, 0, 0.02);

  --outline-text: var(--brand-color);
  --outline-border: color-mix(in srgb, var(--brand-color) 30%, transparent);
  --outline-hover-bg: rgba(0, 0, 0, 0.04);

  --tab-bg: rgba(255, 255, 255, 0.75);
  --tab-text: color-mix(in srgb, var(--brand-color) 85%, black);
  --tab-border: color-mix(in srgb, var(--brand-color) 20%, transparent);

  --hero-eyebrow: color-mix(in srgb, var(--brand-color) 78%, black);
  --hero-tagline: color-mix(in srgb, var(--accent-color) 72%, var(--brand-color));

  background: var(--author-bg);
  color: var(--author-text);
  font-family: var(--font-body);
  min-height: 100vh;
}

.author-page[data-theme="dark"] {
  --author-bg: var(--author-bg-dark);
  --content-background-color: var(--content-bg-dark);

  --author-text: rgba(255, 255, 255, 0.9);
  --author-muted: rgba(255, 255, 255, 0.68);
  --author-heading: #ffffff;
  --author-border: rgba(255, 255, 255, 0.14);
  --author-shadow: rgba(0, 0, 0, 0.55);
  --panel-sheen: rgba(255, 255, 255, 0.04);

  --outline-text: rgba(255, 255, 255, 0.92);
  --outline-border: rgba(255, 255, 255, 0.35);
  --outline-hover-bg: rgba(255, 255, 255, 0.08);

  --tab-bg: rgba(255, 255, 255, 0.08);
  --tab-text: rgba(255, 255, 255, 0.88);
  --tab-border: rgba(255, 255, 255, 0.18);

  --hero-eyebrow: rgba(255, 255, 255, 0.7);
  --hero-tagline: color-mix(in srgb, var(--accent-color) 82%, white);
}

.author-page a {
  color: inherit;
}

.author-page .btn-primary {
  background: var(--brand-color);
  color: #ffffff;
}

.author-page[data-theme="dark"] .btn-primary {
  background: var(--accent-color);
  color: color-mix(in srgb, var(--brand-color) 88%, black);
}

.author-page .btn-primary:hover {
  filter: brightness(1.05);
}

.author-page .btn-outline {
  color: var(--outline-text);
  border: 2px solid var(--outline-border);
  background: transparent;
}

.author-page .btn-outline:hover {
  background: var(--outline-hover-bg);
  border-color: color-mix(in srgb, var(--outline-border) 70%, var(--brand-color));
}

/* ---- HERO ---- */
.author-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 15% 20%, color-mix(in srgb, var(--accent-color) 22%, transparent) 0%, transparent 60%),
    radial-gradient(700px 420px at 85% 10%, color-mix(in srgb, var(--brand-color) 12%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 70%);
}

.author-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.author-hero__masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}

.author-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  opacity: 0.9;
}

.author-hero__logo {
  width: 180px;
  max-width: min(240px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.12));
}

.author-hero__name {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--author-heading);
}

.author-hero__tagline {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--hero-tagline);
  margin-bottom: 16px;
}

.author-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--author-muted);
  max-width: 70ch;
  margin-bottom: 18px;
}

.author-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.author-hero__navrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.author-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
}

.author-tab {
  appearance: none;
  border: 1px solid var(--tab-border);
  background: var(--tab-bg);
  color: var(--tab-text);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 850;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.author-tab:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tab-border) 70%, var(--accent-color));
}

.author-tab--active {
  background: var(--brand-color);
  color: #ffffff;
  border-color: var(--brand-color);
}

.author-theme-toggle {
  appearance: none;
  border: 1px solid var(--tab-border);
  background: transparent;
  color: var(--tab-text);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 850;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.author-theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--tab-bg);
}

.author-theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.author-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.author-hero__media {
  display: flex;
  justify-content: center;
  width: 100%;
}

.author-hero__image {
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  border: 1px solid var(--author-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

/* ---- PANELS ---- */
.author-panel {
  max-width: 1140px;
  margin: -12px auto 46px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--brand-color) 12%, var(--author-border));
  background:
    linear-gradient(180deg, var(--panel-sheen) 0%, rgba(0, 0, 0, 0) 60%),
    var(--content-background-color);
  box-shadow: 0 18px 54px var(--author-shadow);
  padding: 0;
}

.author-panel > .container {
  padding: 38px 24px;
}

.author-subsection + .author-subsection {
  margin-top: 44px;
}

.author-empty {
  background: var(--author-surface);
  border: 1px solid var(--author-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
}

.author-empty__title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--author-heading);
}

.author-empty__text {
  color: var(--author-muted);
  line-height: 1.8;
}

.author-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.author-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 14px;
  background: var(--author-surface);
  border: 1px solid var(--author-border);
  border-radius: 14px;
  font-weight: 850;
  color: var(--author-heading);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.author-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
  border-color: color-mix(in srgb, var(--accent-color) 30%, #eaeaf0);
}

/* ---- SECTION HEADER ---- */
.author-section__header {
  margin-bottom: 28px;
}

.author-section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-color);
  opacity: 0.85;
  margin-bottom: 10px;
}

.author-section__title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 10px;
  color: var(--author-heading);
}

.author-section__subtitle {
  color: var(--author-muted);
  max-width: 70ch;
}

/* ---- TAGS ---- */
.author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 10px;
}

.author-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color) 18%, white);
  border: 1px solid color-mix(in srgb, var(--accent-color) 26%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand-color) 85%, black);
}

/* ---- FEATURED SERIES ---- */
.author-featured__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.author-featured__card {
  background: #ffffff;
  border: 1px solid #eaeaf0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
}

.author-featured__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #0b0b18;
}

.author-featured__tagline {
  color: #5a5a7a;
  line-height: 1.7;
}

.author-featured__desc {
  margin-top: 10px;
  color: #3f3f5a;
  line-height: 1.8;
}

.author-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---- CONTENT WARNINGS ---- */
.author-cw__card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-color) 6%, white) 0%,
    #ffffff 100%
  );
  border: 1px solid #eaeaf0;
  border-radius: 16px;
  padding: 24px;
}

.author-cw__intro {
  color: #3f3f5a;
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 85ch;
}

.author-cw__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.author-cw__title {
  font-size: 1rem;
  font-weight: 800;
  color: #0b0b18;
  margin-bottom: 10px;
}

.author-cw__list {
  padding-left: 18px;
  color: #4a4a65;
  line-height: 1.8;
}

/* ---- BOOKS GRID ---- */
.author-books__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.author-book {
  background: #ffffff;
  border: 1px solid #eaeaf0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
}

.author-book__cover img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #f4f4f8;
}

.author-book__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.author-book__title {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #0b0b18;
}

.author-book__meta {
  color: #6a6a8a;
  font-size: 0.88rem;
  line-height: 1.6;
}

.author-book__series {
  font-weight: 750;
  color: color-mix(in srgb, var(--brand-color) 75%, black);
}

.author-book__dot {
  margin: 0 6px;
  opacity: 0.7;
}

.author-book__desc {
  color: #3f3f5a;
  line-height: 1.8;
  flex: 1;
}

.author-book__cw {
  border: 1px solid #eaeaf0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.015);
}

.author-book__cw summary {
  cursor: pointer;
  font-weight: 750;
  color: #3f3f5a;
}

.author-book__cw ul {
  margin-top: 8px;
  padding-left: 18px;
  color: #4a4a65;
  line-height: 1.75;
}

.author-book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.author-book__actions .btn {
  padding: 12px 18px;
  font-size: 0.95rem;
}

/* ---- BONUS CONTENT ---- */
.author-bonus__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.author-bonus__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: #ffffff;
  border: 1px solid #eaeaf0;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-bonus__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.author-bonus__link-label {
  font-weight: 750;
  color: #0b0b18;
}

.author-bonus__link-arrow {
  font-weight: 900;
  color: var(--brand-color);
}

/* ---- ABOUT ---- */
.author-about__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}

.author-about__image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #eaeaf0;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.author-about__text {
  color: #3f3f5a;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ---- GALLERY ---- */
.author-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.author-gallery__item {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eaeaf0;
  background: #f4f4f8;
}

.author-gallery__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ---- CONTACT ---- */
.author-contact__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.author-contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.author-contact__detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid #eaeaf0;
  border-radius: 14px;
}

.author-contact__icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.author-contact__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #6a6a8a;
  margin-bottom: 4px;
}

.author-contact__value {
  color: #0b0b18;
  font-weight: 650;
  line-height: 1.65;
}

.author-contact__value:hover {
  color: var(--brand-color);
}

.author-contact__card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-color) 14%, white) 0%,
    #ffffff 100%
  );
  border: 1px solid #eaeaf0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.author-contact__card-title {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #0b0b18;
  margin-bottom: 8px;
}

.author-contact__card-text {
  color: #5a5a7a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.author-contact__btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

/* ---- FOOTER ---- */
.author-footer {
  margin-top: 20px;
  border-top: 1px solid var(--author-border);
  background: color-mix(in srgb, var(--author-bg) 92%, transparent);
  padding: 28px 0;
}

.author-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.author-footer__name {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.author-footer__tagline {
  color: var(--author-muted);
  margin-top: 6px;
}

.author-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.author-footer__links a,
.author-footer__link {
  border: none;
  background: none;
  padding: 0;
  font-weight: 700;
  color: var(--author-muted);
  opacity: 0.9;
  cursor: pointer;
}

.author-footer__links a:hover,
.author-footer__link:hover {
  color: var(--brand-color);
}

.author-footer__meta {
  text-align: right;
  color: var(--author-muted);
  font-size: 0.9rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .author-hero__inner--two-col {
    grid-template-columns: 1fr;
  }

  .author-books__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-about__inner {
    grid-template-columns: 1fr;
  }

  .author-contact__inner {
    grid-template-columns: 1fr;
  }

  .author-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-footer__meta {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .author-hero {
    padding: 74px 0 40px;
  }

  .author-books__grid {
    grid-template-columns: 1fr;
  }

  .author-cw__grid {
    grid-template-columns: 1fr;
  }

  .author-bonus__list {
    grid-template-columns: 1fr;
  }

  .author-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .author-gallery__item img {
    height: 180px;
  }

  .author-links {
    grid-template-columns: 1fr;
  }
}

