:root {
  color-scheme: dark;
  --bg: #131615;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(199, 206, 203, 0.16);
  --text: #ffffff;
  --muted: #c7cecb;
  --accent: #ff6240;
  --green: #6fb88c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(25, 48, 79, 0.8) 0%, rgba(19, 22, 21, 0.93) 62%, #131615 100%),
    url("/assets/685c594a4669a9690c7816ff.png") top center / cover repeat-y,
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 32px 0 90px;
}

.site-header {
  position: relative;
  width: min(78vw, 790px);
  margin: 0 auto 34px;
  padding-top: 24px;
  text-align: center;
}

.contact-link {
  position: absolute;
  top: 2px;
  right: -130px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}

.logo-link {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.logo {
  width: 250px;
  height: auto;
}

.header-rule {
  height: 1px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.authors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(85vw, 1068px);
  margin: 0 auto;
}

.author-card {
  display: flex;
  min-height: 829px;
  flex-direction: column;
  align-items: flex-start;
  padding: 38px 30px 40px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
}

.author-photo {
  width: min(100%, 300px);
  height: auto;
  margin: 0 auto 42px;
}

.author-copy {
  min-height: 91px;
}

.author-copy h2 {
  margin: 0;
  font-size: clamp(25px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.08;
}

.author-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.18;
}

.book-link {
  display: grid;
  width: 100%;
  min-height: 320px;
  place-items: center;
  margin: 10px 0 16px;
  text-decoration: none;
}

.book-cover {
  width: min(82%, 245px);
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.35));
  transition: transform 180ms ease, filter 180ms ease;
}

.book-link:hover .book-cover,
.book-link:focus-visible .book-cover {
  filter: drop-shadow(0 24px 25px rgba(0, 0, 0, 0.42));
}

.book-cover-left {
  transform: rotate(-6deg);
}

.book-cover-center {
  transform: rotate(-5deg);
}

.book-cover-right {
  transform: rotate(-5deg);
}

.book-link:hover .book-cover-left,
.book-link:focus-visible .book-cover-left {
  transform: rotate(-4deg) translateY(-4px);
}

.book-link:hover .book-cover-center,
.book-link:focus-visible .book-cover-center,
.book-link:hover .book-cover-right,
.book-link:focus-visible .book-cover-right {
  transform: rotate(-3deg) translateY(-4px);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 65px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #ff7355;
  transform: translateY(-2px);
}

.about {
  width: min(69vw, 850px);
  margin: 78px auto 0;
}

.about h1 {
  margin: 0;
  font-family: "DM Serif Text", Georgia, serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  text-align: center;
}

.accent-rule {
  width: min(420px, 70%);
  height: 1px;
  margin: 21px auto 34px;
  border-top: 1px dashed rgba(255, 98, 64, 0.72);
}

.about-copy {
  color: #f5f6f5;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.48;
}

.about-copy p {
  margin: 0 0 27px;
}

.strong-line {
  font-weight: 800;
}

.footer {
  margin-top: 188px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.42;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer .copyright {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .contact-link {
    right: 0;
  }

  .authors {
    width: min(92vw, 960px);
  }

  .author-card {
    padding: 30px 24px 34px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding-top: 26px;
  }

  .site-header {
    width: min(88vw, 620px);
    margin-bottom: 26px;
    padding-top: 44px;
  }

  .contact-link {
    right: 0;
    left: 0;
    text-align: center;
  }

  .authors {
    grid-template-columns: 1fr;
    width: min(92vw, 430px);
  }

  .author-card {
    min-height: 0;
  }

  .author-photo {
    margin-bottom: 34px;
  }

  .book-link {
    min-height: 290px;
  }

  .about {
    width: min(84vw, 660px);
    margin-top: 62px;
  }

  .about-copy {
    font-size: 18px;
  }

  .footer {
    margin-top: 110px;
  }
}

@media (max-width: 480px) {
  body {
    background:
      linear-gradient(180deg, rgba(25, 48, 79, 0.84) 0%, rgba(19, 22, 21, 0.96) 56%, #131615 100%),
      url("/assets/685c594a4669a9690c7816ff.png") top center / auto 900px repeat-y,
      var(--bg);
  }

  .site-header {
    width: min(90vw, 380px);
  }

  .logo {
    width: 220px;
  }

  .authors {
    width: min(90vw, 390px);
  }

  .author-card {
    padding: 28px 20px 30px;
  }

  .author-copy h2 {
    font-size: 28px;
  }

  .button {
    font-size: 15px;
    letter-spacing: 1.6px;
  }

  .about {
    width: min(88vw, 390px);
  }

  .about h1 {
    font-size: 41px;
  }
}
