.authors-page,
.author-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 105px 0;
}

.authors-route {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.authors-route .authors-page,
.authors-route .author-page {
  flex: 1 0 auto;
}

.authors-route .blog-footer {
  width: 100%;
  margin-top: auto;
}

.authors-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  align-items: end;
  column-gap: 35px;
  row-gap: 6px;
  margin-bottom: 46px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.authors-intro-title {
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: start;
  display: flex;
  width: max-content;
  max-width: 100%;
  flex-direction: column;
}

.authors-intro-title > span {
  align-self: flex-end;
}

.authors-intro > span,
.authors-intro-title > span,
.author-eyebrow,
.author-materials header span {
  position: relative;
  z-index: 2;
  justify-self: start;
  display: inline-flex;
  width: max-content;
  padding: 6px 9px 5px;
  border: 2px solid var(--text);
  border-radius: 7px 7px 7px 2px;
  background: var(--orange);
  color: #071321;
  box-shadow: 3px 3px 0 var(--text);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.authors-intro > span::after,
.authors-intro-title > span::after,
.author-eyebrow::after,
.author-materials header span::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: -8px;
  width: 12px;
  height: 9px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: skewX(8deg) rotate(2deg);
}

.authors-intro > span::before,
.authors-intro-title > span::before,
.author-eyebrow::before,
.author-materials header span::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: -11px;
  width: 12px;
  height: 9px;
  background: var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transform: skewX(8deg) rotate(2deg);
}

.authors-intro h1 {
  grid-row: 2;
  margin: 5px 0 0;
  font-size: clamp(2.35rem, 4.15vw, 4.15rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.authors-intro-title h1 {
  margin: 5px 0 0;
}

.authors-intro p {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.author-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .25s, border-color .25s;
}

.author-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.author-avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, #0d2135, #244c69); display: grid; place-items: center; color: #fff; font: 800 2rem Unbounded, Onest; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card small { color: var(--orange); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.author-card h2 { margin: 10px 0 4px; font-size: 1.7rem; letter-spacing: -.04em; }
.author-card strong { color: var(--muted); font-size: .82rem; }
.author-card p { color: var(--muted); line-height: 1.55; }
.author-link { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); font-weight: 800; }
.author-link b { color: var(--orange); }

.author-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: .76rem; }
.author-breadcrumbs a:hover { color: var(--orange); }

.author-profile {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 200px;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  min-height: 330px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--orange)), var(--surface));
  box-shadow: 0 26px 70px rgba(8, 24, 38, .08);
}

.author-profile::after { content: ""; position: absolute; right: -115px; bottom: -170px; width: 330px; height: 330px; border: 54px solid color-mix(in srgb, var(--orange) 11%, transparent); border-radius: 50%; pointer-events: none; }
.author-avatar--large { position: relative; z-index: 1; width: 190px; height: 190px; border: 6px solid var(--surface); box-shadow: 0 18px 42px rgba(5, 19, 31, .18); }
.author-profile-copy { position: relative; z-index: 1; min-width: 0; }
.author-profile h1 { margin: 15px 0 8px; font-size: clamp(2.35rem, 4.15vw, 4.15rem); line-height: .98; letter-spacing: -.065em; }
.author-role { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); color: var(--orange); font-size: .76rem; }
.author-role:empty, .author-card strong:empty { display: none; }
.author-profile-copy > p { max-width: 670px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.author-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.author-socials a,
.author-socials button { min-height: 39px; display: inline-flex; align-items: center; gap: 13px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: 750 .72rem Onest, sans-serif; cursor: pointer; transition: transform .2s, border-color .2s, color .2s; }
.author-socials a:hover,
.author-socials button:hover { transform: translateY(-2px); border-color: var(--orange); color: var(--orange); }
.author-socials b { color: var(--orange); }

.author-facts { position: relative; z-index: 1; align-self: stretch; display: grid; align-content: center; gap: 16px; padding-left: 28px; border-left: 1px solid var(--line); }
.author-facts > div { display: grid; gap: 2px; }
.author-facts b { font-family: Unbounded, Onest, sans-serif; font-size: 2rem; line-height: 1; }
.author-facts span,
.author-facts p { color: var(--muted); font-size: .74rem; line-height: 1.5; }
.author-facts p { margin: 4px 0 0; }

.author-materials { margin-top: 64px; }
.author-materials > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.author-materials header h2 { margin: 15px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; }
.author-materials header p { margin: 0; color: var(--muted); font-size: .8rem; }
.author-articles { display: grid; gap: 12px; }

.author-article { position: relative; display: grid; grid-template-columns: 52px 240px minmax(0, 1fr); min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.author-article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 65%, var(--line)); box-shadow: 0 18px 42px rgba(8, 24, 38, .09); }
.author-article-index { display: grid; place-items: center; border-right: 1px solid var(--line); color: var(--muted); font-family: Unbounded, Onest, sans-serif; font-size: .68rem; }
.author-article > img { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.author-article-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 22px 26px; }
.author-article-meta { gap: 5px; }
.author-article-meta time { height: 28px; display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.author-article h2 { margin: 10px 0 7px; font-size: clamp(1.2rem, 2.1vw, 1.65rem); line-height: 1.15; letter-spacing: -.04em; }
.author-article p { max-width: 680px; margin: 0 0 14px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.author-article-copy > strong { font-size: .72rem; }
.author-article-copy > strong b { margin-left: 7px; color: var(--orange); }
.author-empty { padding: 44px; border: 1px dashed var(--line); border-radius: 17px; background: var(--surface); }
.author-empty p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 920px) {
  .authors-grid { grid-template-columns: 1fr; }
  .author-profile { grid-template-columns: 150px minmax(0, 1fr); }
  .author-avatar--large { width: 150px; height: 150px; }
  .author-facts { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .author-facts p { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .authors-page,
  .author-page { width: calc(100% - 28px); padding-top: 86px; }
  .authors-intro { display: block; }
  .authors-intro-title { display: flex; }
  .authors-intro > span,
  .authors-intro-title > span,
  .author-eyebrow,
  .author-materials header span { padding: 5px 7px 4px; font-size: .45rem; box-shadow: 2px 2px 0 var(--text); }
  .authors-intro p { margin-top: 20px; }
  .author-profile { display: block; padding: 24px; }
  .author-avatar--large { width: 126px; height: 126px; margin-bottom: 24px; }
  .author-facts { display: grid; margin-top: 25px; }
  .author-materials > header { display: block; }
  .author-materials header p { margin-top: 9px; }
  .author-article { grid-template-columns: 36px minmax(0, 1fr); }
  .author-article > img { grid-column: 2; height: 190px; }
  .author-article-copy { grid-column: 1 / -1; padding: 20px; }
  .author-article-index { grid-row: 1; grid-column: 1; }
}

@media (max-width: 520px) {
  .author-card { grid-template-columns: 82px 1fr; padding: 18px; }
  .author-avatar { width: 82px; height: 82px; font-size: 1.3rem; }
  .author-socials a,
  .author-socials button { flex: 1 1 calc(50% - 8px); justify-content: space-between; }
}
