/* Inner Pursuit of Happiness — Author page design preview.
   Uses the --u unit (one mockup pixel) and shared header/footer from styles.css.
   Content spans the same wide boundary as the Books page. */

:root {
  --au-w: min(calc(100vw - 48px), calc(790 * var(--u)));
}

h3 {
  margin: 0;
}

.au-wrap {
  width: var(--au-w);
  margin-inline: auto;
}

.au-story-copy p,
.au-lede,
.au-cred-desc,
.au-cred-head p {
  font-family: var(--sans);
  color: #2c3852;
}

/* —— Introduction: portrait left, title right —— */
.au-intro {
  background: #f7f0e4;
  padding: calc(7 * var(--u)) 0;
}

.au-intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(22 * var(--u));
  align-items: center;
}

.au-portrait {
  width: auto;
  height: calc(162 * var(--u));
  aspect-ratio: 600 / 705;
}

.au-kicker {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(12px, calc(7 * var(--u)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.au-kicker::after {
  content: "";
  width: calc(36 * var(--u));
  height: 1px;
  background: var(--gold);
}

.au-intro h1 {
  margin-top: calc(6 * var(--u));
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(26 * var(--u));
  line-height: 1.05;
  color: var(--navy);
}

.au-lede {
  margin-top: calc(7 * var(--u));
  max-width: calc(420 * var(--u));
  font-size: max(16px, calc(10.4 * var(--u)));
  line-height: 1.45;
}

.au-links {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  margin-top: calc(10 * var(--u));
  font-family: var(--serif);
  font-weight: 600;
  font-size: max(17px, calc(11 * var(--u)));
}

.au-links a {
  color: var(--gold-text);
  text-underline-offset: 3px;
}

.au-dot {
  color: var(--gold);
}

/* —— Credentials —— */
.au-creds {
  background: #f7f0e4;
  padding: 0 0 calc(10 * var(--u));
  border-bottom: 1px solid var(--line);
}

.au-cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(7 * var(--u));
}

.au-cred-grid li {
  padding: calc(7 * var(--u)) calc(9 * var(--u)) calc(8 * var(--u));
  background: #fdf9f2;
  border: 1px solid #eadfc9;
  border-radius: calc(5 * var(--u));
}

.au-cred-head {
  display: grid;
  grid-template-columns: calc(22 * var(--u)) 1fr;
  gap: calc(8 * var(--u));
  align-items: start;
}

.au-cred-head svg {
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.au-cred-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(12 * var(--u));
  line-height: 1.1;
  color: var(--navy);
}

.au-cred-head p {
  margin-top: calc(1 * var(--u));
  font-size: max(13px, calc(7.4 * var(--u)));
  line-height: 1.3;
}

.au-cred-desc {
  margin-top: calc(6 * var(--u));
  text-align: center;
  font-size: max(13.5px, calc(7.6 * var(--u)));
  line-height: 1.4;
}

/* —— Story sections (alternating photo placement) —— */
.au-story {
  background: var(--ivory);
  padding: calc(10 * var(--u)) 0;
  border-bottom: 1px solid var(--line);
}

.au-story-alt {
  background: #faf5ec;
}

.au-story-grid {
  display: grid;
  grid-template-columns: 1fr calc(300 * var(--u));
  gap: calc(20 * var(--u));
}

.au-story-alt .au-story-grid {
  grid-template-columns: calc(282 * var(--u)) 1fr;
}

.au-story-img {
  width: 100%;
  height: 0;
  min-height: 100%;
}

.au-line-heading {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--u));
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(17 * var(--u));
  line-height: 1.1;
  color: var(--navy);
}

.au-line-heading::before,
.au-line-both::after {
  content: "";
  flex: none;
  width: calc(22 * var(--u));
  height: 1px;
  background: var(--gold);
}

.au-story-copy p {
  margin-top: calc(6 * var(--u));
  font-size: max(15px, calc(8.6 * var(--u)));
  line-height: 1.5;
}

.au-story-copy h2 + p {
  margin-top: calc(7 * var(--u));
}

.au-work {
  background: #f7f0e4;
  border-bottom: 0;
}

.au-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(9 * var(--u));
  margin-top: calc(11 * var(--u));
}

.au-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: calc(26 * var(--u));
  padding: 0 calc(16 * var(--u));
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: max(14px, calc(8.4 * var(--u)));
  text-decoration: none;
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(19, 34, 59, 0.22);
  transition: filter 0.2s ease;
}

.au-btn-navy {
  background: var(--navy);
}

.au-btn-gold {
  background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bottom));
}

.au-btn:hover {
  filter: brightness(1.1);
}

.au-btn svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* —— Tablet and phone —— */
@media (max-width: 960px) {
  :root {
    --au-w: calc(100vw - 2.5rem);
  }

  .au-intro {
    padding: 1.5rem 0 1.25rem;
  }

  .au-intro-grid,
  .au-story-grid,
  .au-story-alt .au-story-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .au-portrait {
    width: min(100%, 300px);
    height: auto;
  }

  .au-intro h1 {
    font-size: 2.3rem;
  }

  .au-cred-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .au-cred-grid li {
    padding: 0.8rem;
    border-radius: 8px;
  }

  .au-cred-head svg {
    width: 30px;
    height: 30px;
  }

  .au-cred-head {
    grid-template-columns: 30px 1fr;
  }

  .au-cred-head h2 {
    font-size: 1.15rem;
  }

  .au-creds {
    padding-bottom: 1.5rem;
  }

  .au-story {
    padding: 1.75rem 0;
  }

  .au-line-heading {
    font-size: 1.8rem;
  }

  .au-story-img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
  }

  .au-story-alt .au-story-img {
    order: 2;
  }

  .au-btn {
    height: auto;
    min-height: 46px;
    padding: 0 1.25rem;
  }
}

@media (max-width: 560px) {
  .au-cred-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .au-btn {
    transition: none;
  }
}
