/* ============================================================
   Author page — /about/julian-moreira
   Namespace: author-
   MASTER-PLAN 4.3a. Tokens come from app-variables.css; chrome
   comes from site.css. Nothing here is shared with another page.
   ============================================================ */

.author-page {
  background: var(--background);
  color: var(--foreground);
}

.author-main {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}

.author-main :where(h1, h2, p, ul, ol, figure, blockquote) {
  margin: 0;
}

/* ——— breadcrumb ——— */

.author-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.author-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border);
}

.author-breadcrumb a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.author-breadcrumb a:hover,
.author-breadcrumb a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
}

/* ——— hero ——— */

.author-hero {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.author-photo {
  border-radius: 50%;
  flex: none;
  height: 160px;
  object-fit: cover;
  width: 160px;
}

.author-hero-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.author-eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-block: 0.5rem 0.75rem;
}

.author-deck {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 46ch;
}

.author-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin-top: 1.25rem !important;
  padding: 0;
  font-size: 0.9375rem;
}

.author-profile-links a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-profile-links a:hover,
.author-profile-links a:focus-visible {
  color: var(--accent);
}

/* ——— mission quote ——— */

.author-quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.author-quote blockquote p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.author-quote figcaption {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ——— sections ——— */

.author-section {
  border-top: 1px solid var(--border);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
}

.author-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.author-section p {
  color: var(--foreground);
  line-height: 1.75;
  max-width: 68ch;
}

.author-section p + p {
  margin-top: 1rem;
}

.author-section a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-section a:hover,
.author-section a:focus-visible {
  color: var(--accent);
}

/* ——— work history ——— */

.author-timeline {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
}

.author-role {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
}

.author-role-range {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.author-role-title {
  font-weight: 600;
  margin-top: 0.25rem !important;
}

.author-role-org {
  color: var(--muted-foreground);
  margin-top: 0.125rem !important;
}

.author-role-summary {
  margin-top: 0.5rem !important;
}

/* ——— link list ——— */

.author-link-list {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin-top: 1.25rem !important;
  padding: 0;
}

.author-link-list a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-link-list a:hover,
.author-link-list a:focus-visible {
  color: var(--accent);
}

/* ——— cta ——— */

.author-cta {
  background: var(--button-primary);
  border-radius: var(--radius-pill, 999px);
  color: var(--button-primary-text) !important;
  display: inline-block;
  font-weight: 600;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none !important;
}

.author-cta:hover,
.author-cta:focus-visible {
  /* site.css redefines --button-primary to the site yellow, so the hover state
     has to follow the same token pair rather than the app's dark brand. */
  background: var(--accent-hover);
}

/* ——— footer line ——— */

.author-updated {
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  padding-top: 1.5rem;
}

@media (max-width: 600px) {
  .author-hero {
    gap: 1.25rem;
  }

  .author-photo {
    height: 112px;
    width: 112px;
  }
}
