/* Author layout reuses PulseLog's existing surfaces, type, and background. */
.author-page .about-slogan { position: relative; isolation: isolate; width: fit-content; margin: 16px 0 0; font-size: 29px; line-height: 1.25; color: var(--text); }
.author-page .about-slogan::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -8px -24px; background: linear-gradient(90deg, rgba(var(--page-scrim), .62), rgba(var(--page-scrim), .48)); filter: blur(18px); }
.author-main { --author-text-width: 780px; width: 100%; }
.author-main > .site-section { width: 100%; max-width: var(--author-text-width); }
.author-main p, .author-main li { font-size: 17px; line-height: 1.7; color: var(--reading-text); }
.author-main p { margin: 0 0 22px; }
.author-main h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.2; margin: 0 0 14px; font-weight: 500; }
.author-main h3 { margin: 0 0 14px; }
.author-main h4 { font-size: 19px; line-height: 1.45; font-weight: 500; margin: 0 0 18px; }
.author-main a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.author-main a:hover { text-decoration-thickness: 2px; }
.author-main :is(a, summary):focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.author-main .author-role { color: var(--text); font-size: 15px; line-height: 1.85; font-weight: 500; margin-bottom: 18px; }
.author-main .author-meta { color: var(--muted); font-size: 14px; line-height: 1.85; margin-bottom: 8px; }
main.author-main { margin-top: 48px; }
.author-intro { display: flow-root; position: relative; isolation: isolate; margin-bottom: 48px; }
.author-intro-copy { min-width: 0; }
.author-intro h1 { font-size: clamp(32px, 3vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.8px; }
.author-intro .author-role { font-size: 17px; line-height: 1.5; margin: 0 0 24px; }
.author-intro-copy > p:not(.author-role) { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.author-intro-copy > p:last-child { margin-bottom: 0; }
.author-portrait { float: left; display: block; width: 300px; max-width: 100%; height: auto; margin: 0 32px 16px 0; aspect-ratio: 3 / 4; object-fit: cover; object-position: 35% 50%; border-radius: 5px; border: 1px solid var(--subtle); }
.author-intro-copy, .author-prose, .author-stack { position: relative; isolation: isolate; }
.author-intro .author-intro-copy { position: static; isolation: auto; }
.author-intro-copy::before, .author-prose::before, .author-stack::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -24px -32px;
  background: linear-gradient(90deg, rgba(var(--page-scrim), .62), rgba(var(--page-scrim), .48));
  filter: blur(24px);
}
.author-employer + .author-employer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--subtle); }
.author-project { margin-top: 28px; }
.author-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.author-stack ul, .author-education ul { margin: 0 0 16px; padding-left: 22px; }
.author-stack li { padding-left: 4px; }
.author-story summary { width: fit-content; max-width: 100%; padding: 12px 0; color: var(--text); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.story-collapse, .author-story[open] .story-expand { display: none; }
.author-story[open] .story-collapse { display: inline; }
.story-body { padding-top: 18px; }
.author-education + .author-education { margin-top: 28px; }
.author-education p { margin-bottom: 8px; }
.author-contacts { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.author-contact-shortcuts { position: fixed; z-index: 5; left: max(16px, calc((100vw - 1040px) / 2 - 72px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.author-contact-shortcuts .social-link { color: var(--text); }
.author-contact-shortcuts .social-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.author-contact-shortcuts .social-link:hover { border-color: var(--accent); }
.author-contact-text { display: none; }
@media (max-width: 1199px) {
  .author-contact-shortcuts { position: static; transform: none; flex-direction: row; flex-wrap: wrap; width: 100%; max-width: 1040px; margin: 24px auto 0; }
  .author-contact-shortcuts .social-link { width: auto; gap: 8px; grid-auto-flow: column; padding: 0 12px; text-decoration: none; font-size: 14px; }
  .author-contact-text { display: inline; }
  .author-contact-shortcuts + main.author-main { margin-top: 32px; }
}
@media (max-width: 1059px) {
  .author-portrait { float: none; width: 240px; margin: 0 0 32px; }
}
@media (max-width: 767px) {
  main.author-main { margin-top: 32px; }
  .author-intro { margin-bottom: 40px; }
  .author-portrait { margin-bottom: 24px; }
  .author-stack { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .author-page .about-slogan { font-size: 26px; }
  .author-employer + .author-employer { margin-top: 36px; padding-top: 24px; }
  .author-intro-copy::before, .author-prose::before, .author-stack::before { inset-inline: -16px; }
}
