/* author.css: author page styles (works with light/dark via currentColor) */
.author-page {
  --a-line: color-mix(in srgb, currentColor 16%, transparent);
  --a-soft: color-mix(in srgb, currentColor 5%, transparent);
  --a-muted: color-mix(in srgb, currentColor 68%, transparent);
  --a-accent: var(--accent, #8a6d3b);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.author-page h1,
.author-page h2,
.author-page h3 {
  line-height: 1.15
}

.author-page p {
  line-height: 1.75
}

/* Hero */
.author-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3rem
}

.author-eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--a-accent);
  margin: 0 0 1rem
}

.author-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin: 0 0 .5rem
}

.author-role {
  font-size: 1.15rem;
  color: var(--a-muted);
  margin: 0 0 1.25rem
}

.author-intro {
  font-size: 1.1rem;
  max-width: 40em;
  margin: 0 0 1.75rem
}

.author-portrait {
  margin: 0
}

.author-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--a-line);
  background: var(--a-soft)
}

.author-portrait figcaption {
  font-size: .8rem;
  color: var(--a-muted);
  margin-top: .6rem;
  text-align: center
}

/* Buttons */
.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

.author-button {
  display: inline-block;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: var(--a-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--a-accent);
  transition: transform .15s, opacity .15s
}

.author-button:hover {
  transform: translateY(-2px);
  opacity: .92
}

.author-button--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--a-line)
}

/* Quick facts */
.author-facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--a-line)
}

.author-facts dl>div {
  background: var(--bg, #fff0);
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(0)
}

.author-facts dt {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-muted);
  margin-bottom: .3rem
}

.author-facts dd {
  margin: 0;
  font-weight: 600
}

/* Sections */
.author-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--a-line)
}

.author-section__heading span {
  display: block;
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--a-accent);
  margin-bottom: .4rem
}

.author-section__heading h2 {
  margin: 0;
  font-size: 1.5rem
}

.author-section__content>*:first-child {
  margin-top: 0
}

.author-section__content p{
  padding: 0.5rem;
}

.author-lede {
  grid-column: 2;
  margin: 0;
  color: var(--a-muted)
}

/* Quote */
.author-quote {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--a-accent);
  background: var(--a-soft);
  border-radius: 0 10px 10px 0
}

.author-quote p {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 .5rem
}

.author-quote cite {
  font-size: .85rem;
  color: var(--a-muted)
}

/* Focus + path grids */
.author-focus-grid,
.author-path-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem
}

.author-focus-card,
.author-path {
  padding: 1.4rem;
  border: 1px solid var(--a-line);
  border-radius: 12px;
  background: var(--a-soft);
  color: inherit;
  text-decoration: none;
  transition: transform .15s, border-color .15s
}

.author-focus-card:hover {
  transform: translateY(-3px);
  border-color: var(--a-accent)
}

.author-focus-card h3,
.author-path h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem
}

.author-focus-card p {
  margin: 0 0 .9rem;
  font-size: .95rem;
  color: var(--a-muted)
}

.author-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--a-accent)
}

.author-path ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.9
}

.author-path a {
  color: inherit;
  text-decoration-color: var(--a-accent)
}

/* Steps */
.author-steps {
  grid-column: 2;
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem
}

.author-steps li {
  counter-increment: s;
  padding: 1.2rem;
  border: 1px solid var(--a-line);
  border-radius: 12px
}

.author-steps li::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font-size: .8rem;
  color: var(--a-accent);
  margin-bottom: .4rem
}

.author-steps strong {
  display: block;
  margin-bottom: .3rem
}

.author-steps span {
  font-size: .92rem;
  color: var(--a-muted);
  line-height: 1.6
}

/* Checks + meta */
.author-checks {
  list-style: none;
  padding: 0;
  margin: 1rem 0
}

.author-checks li {
  padding: .4rem 0 .4rem 1.6rem;
  position: relative
}

.author-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--a-accent);
  font-weight: 700
}

.author-meta {
  font-size: .85rem;
  color: var(--a-muted)
}

/* Library box */
.author-library__box {
  padding: 2rem;
  border: 1px solid var(--a-line);
  border-radius: 14px;
  background: var(--a-soft)
}

.author-library__box p {
  margin-top: 0;
  font-size: 1.05rem
}

/* FAQ */
.author-faq {
  grid-column: 2
}

.author-faq details {
  border-bottom: 1px solid var(--a-line);
  padding: 1rem 0
}

.author-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem
}

.author-faq summary::after {
  content: "+";
  color: var(--a-accent);
  font-size: 1.3rem;
  line-height: 1
}

.author-faq details[open] summary::after {
  content: "–"
}

.author-faq details p {
  margin: .75rem 0 0;
  color: var(--a-muted)
}

/* Focus states */
.author-page a:focus-visible,
.author-faq summary:focus-visible {
  outline: 2px solid var(--a-accent);
  outline-offset: 3px
}

/* Responsive */
@media (max-width:820px) {
  .author-hero {
    grid-template-columns: 1fr;
    padding-top: 3rem
  }

  .author-portrait {
    max-width: 240px;
    order: -1
  }

  .author-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2.5rem 0
  }

  .author-lede,
  .author-focus-grid,
  .author-path-grid,
  .author-steps,
  .author-faq {
    grid-column: 1
  }
}

@media (prefers-reduced-motion:reduce) {

  .author-button,
  .author-focus-card {
    transition: none
  }
}