@font-face {
  font-family: Newsreader;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.author-page {
  --author-ink: #142d36;
  --author-navy: #0a2230;
  --author-paper: #f5f3eb;
  --author-line: #cdd3ca;
  --author-green: #3d6049;
  --author-light-green: #c9e4b8;
  --author-display: Newsreader, Georgia, serif;
  color: var(--author-ink);
}

.author-page .site-header {
  position: relative;
  background: var(--author-navy);
}

.author-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--author-navy);
}

.author-portrait,
.author-project-photo,
.author-book-cover { margin: 0; }

.author-portrait,
.author-portrait::after {
  position: absolute;
  inset: 0;
}

.author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.author-portrait::after {
  content: "";
  background:
    linear-gradient(90deg, #091f2d08 12%, #091f2d1a 23%, #081e2deb 39%, #0a2230ba 66%, #0a223026 100%),
    linear-gradient(0deg, #051b29a6, transparent 44%);
}

.author-portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 14px;
  padding: 6px 10px;
  color: #fff;
  background: #071d2de0;
  font-size: .74rem;
}

.author-hero-layout {
  position: relative;
  display: flex;
  min-height: clamp(466px, 37vw, 595px);
  align-items: center;
  justify-content: flex-end;
}

.author-intro {
  width: min(61%, 650px);
  margin-inline-end: clamp(8px, 7.7vw, 104px);
  padding-block: clamp(42px, 5vw, 75px);
}

.author-intro .eyebrow {
  margin-bottom: 16px;
  color: var(--author-light-green);
}

.author-hero h1,
.author-section h2,
.author-project h2,
.author-book h3 {
  font-family: var(--author-display);
  font-weight: 400;
  letter-spacing: -.027em;
}

.author-hero h1 {
  margin-bottom: 9px;
  font-size: clamp(3.05rem, 5.25vw, 5.15rem);
  line-height: .96;
  text-wrap: balance;
}

.author-surname { white-space: nowrap; }

.author-role {
  margin-bottom: 20px;
  color: var(--author-light-green);
  font: italic 400 clamp(1.6rem, 2.4vw, 2.35rem) / 1.1 var(--author-display);
}

.author-intro-copy p {
  max-width: 51ch;
  margin-bottom: 20px;
  color: #f4f7f8;
  font-size: clamp(1rem, 1.24vw, 1.12rem);
  line-height: 1.58;
}

.author-intro-links,
.author-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.author-button {
  color: #fff;
  background: var(--author-green);
  box-shadow: none;
  font-size: .87rem;
  line-height: 1.25;
  text-align: center;
  text-transform: none;
}

.author-button:hover {
  color: #fff;
  background: #254334;
  box-shadow: none;
}

.author-hero .author-button {
  color: var(--author-ink);
  background: var(--author-light-green);
}

.author-hero .author-button:hover {
  color: var(--author-ink);
  background: #e1f0d8;
}

.author-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: #304f3c;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.author-text-link:hover { color: var(--author-ink); }

.author-hero .author-text-link { color: #fff; }
.author-hero .author-text-link:hover { color: var(--author-light-green); }

.author-page main a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.author-section { padding-block: clamp(34px, 5vw, 72px); }

.author-section h2,
.author-project h2 {
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 4.45vw, 4.15rem);
  line-height: .98;
}

.author-project { padding-block: clamp(24px, 4.4vw, 64px); }

.author-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: #e9eee6;
}

.author-project-photo {
  position: relative;
  display: grid;
  min-height: clamp(300px, 32vw, 435px);
  background: #264052;
}

.author-project-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}

.author-project-photo figcaption {
  position: relative;
  align-self: end;
  justify-self: start;
  padding: 8px 16px;
  color: #fff;
  background: var(--author-navy);
  font-size: .8rem;
}

.author-project-copy {
  align-self: center;
  padding: clamp(24px, 3.45vw, 48px);
}

.author-project-copy h2 { margin-bottom: 12px; }

.author-project-copy p {
  max-width: 40ch;
  margin-bottom: 17px;
}

.author-project-copy p strong { color: #31503e; }

.author-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 8px;
  padding-block: 14px;
  border-top: 1px solid #becbbd;
  border-bottom: 1px solid #becbbd;
}

.author-project-facts > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}

.author-project-facts dt { color: #4d6254; font-size: .78rem; }

.author-project-facts dd {
  margin: 0;
  font: 400 clamp(1.9rem, 3.3vw, 2.9rem) / 1 var(--author-display);
  white-space: nowrap;
}

.author-practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(20px, 6vw, 82px);
  padding-top: 0;
}

.author-practice-list {
  margin: 0;
  padding-left: 1.15em;
}

.author-practice-list li {
  padding: 9px 0 9px 4px;
  border-bottom: 1px solid var(--author-line);
  line-height: 1.48;
}

.author-practice-list li:first-child { border-top: 1px solid var(--author-line); }
.author-practice-list li::marker { color: var(--author-green); font-size: .8em; }

.author-training {
  max-width: 40ch;
  padding: 18px 0 0;
  border-top: 2px solid #92a391;
}

.author-training h2 { margin-bottom: 10px; font-size: clamp(2.1rem, 3.3vw, 3rem); }
.author-training p { margin-bottom: 12px; }
.author-registration { color: var(--author-green); font-size: .88rem; font-weight: 700; }

.author-library { background: var(--author-paper); }

.author-books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
}

.author-book {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(15px, 2vw, 26px);
  padding: clamp(14px, 1.65vw, 23px);
  border-top: 1px solid #bcc9bd;
  background: #fffdf9;
}

.author-book-art {
  display: grid;
  min-height: clamp(210px, 19vw, 264px);
  place-items: center;
  padding: 14px;
  isolation: isolate;
  background: #f0eee7;
}

.author-book-art img {
  width: auto;
  max-width: 100%;
  height: clamp(168px, 15.4vw, 221px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.author-book--conteiner img {
  mix-blend-mode: normal;
  filter: drop-shadow(6px 8px 7px #142d3642);
}

.author-book-cover figcaption {
  margin-top: 7px;
  color: #526169;
  font-size: .74rem;
  line-height: 1.35;
}

.author-book-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 6px;
}

.author-book h3 {
  margin-bottom: 9px;
  font-size: clamp(1.95rem, 2.6vw, 2.65rem);
  line-height: .99;
}

.author-book p {
  margin-bottom: 16px;
  color: #384e52;
  font-size: .94rem;
  line-height: 1.56;
}

.author-actions { margin-top: auto; }

@media (min-width: 1001px) {
  .author-actions { min-height: 82px; align-content: flex-start; }
  .author-actions .author-text-link { min-height: 28px; }
}

.author-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: 16px 30px;
  padding-block: clamp(24px, 3vw, 45px);
}

.author-contact-grid h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 3rem); }

.author-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.author-contact-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--author-line);
  font-size: .88rem;
  font-weight: 700;
}

.author-contact-links a:hover { color: var(--author-green); }

@media (max-width: 1000px) {
  .author-books-grid { grid-template-columns: minmax(0, 1fr); }

  .author-book {
    grid-template-columns: minmax(0, 245px) minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 840px) {
  .author-hero { --author-photo-height: clamp(255px, 65vw, 420px); }
  .author-portrait { bottom: auto; height: var(--author-photo-height); }
  .author-portrait img { object-position: left center; }
  .author-portrait figcaption { top: 9px; right: 9px; bottom: auto; }
  .author-portrait::after { background: linear-gradient(0deg, var(--author-navy), #0a223019 36%, transparent 65%); }

  .author-hero-layout {
    display: block;
    min-height: 0;
    padding-top: calc(var(--author-photo-height) - 27px);
  }

  .author-intro { width: auto; margin: 0; padding: 0 0 35px; }
  .author-intro .eyebrow { margin-bottom: 11px; }
  .author-hero h1 { font-size: clamp(2.7rem, 7.15vw, 4.7rem); }
  .author-role { margin-bottom: 13px; }
  .author-project-grid { grid-template-columns: minmax(0, 1fr); }
  .author-project-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .author-practice-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 530px) {
  .author-page .container { width: calc(100% - 32px); }
  .author-book { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
  .author-book-art { min-height: 222px; }
  .author-book-art img { height: 189px; }
  .author-contact-grid { grid-template-columns: minmax(0, 1fr); }
}
