@font-face {
  font-family: "Underwood";
  src: url("/media/fonts/underwood_champion-webfont.woff") format("woff");
  font-display: swap;
}

:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #302a35;
  background: #eee9fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --plum: #36234c;
  --plum-deep: #2a1b3d;
  --gold: #efb54f;
  --lavender: #eee9fa;
  --paper: #fffefa;
  --muted: #716977;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  line-height: 1.65;
}

a {
  color: #9c632d;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #56336b;
}

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

.site-header {
  color: white;
  background: linear-gradient(110deg, var(--plum-deep), var(--plum));
}

.header-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: grid;
  color: var(--gold);
  font: 1.35rem/1.2 "Underwood", Georgia, serif;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: #ffd27b;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-link {
  color: #fff;
  padding: 9px 11px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
  background: rgb(255 255 255 / 8%);
}

main {
  min-height: 70vh;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px clamp(16px, 3vw, 48px) 76px;
  background: var(--paper);
}

.home-page {
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8e6e9a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--plum);
  font-family: "Underwood", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

p {
  margin: 0 0 16px;
}

.intro-copy,
.lead {
  max-width: 680px;
  color: #554d59;
  font-size: 1.12rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  transition: transform 150ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(120px, 15%) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  padding: 0 0 28px;
}

.feature-section > h1 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.feature-cover {
  margin: 0;
}

.feature-cover img {
  width: 100%;
  max-width: none;
}

.feature-copy {
  line-height: 1.35;
  color: #4b454f;
}

.feature-copy p {
  margin-bottom: 10px;
}

.award-section {
  display: grid;
  grid-template-columns: minmax(150px, 22%) minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  padding: 0 0 24px;
}

.award-section > h2 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.award-copy blockquote {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: #625967;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.45;
}

.award-photo {
  margin: 0;
}

.award-photo img {
  width: 100%;
}

.award-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.book-card,
.portrait-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.book-card img,
.portrait-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 4px;
}

.book-card img {
  object-fit: contain;
  background: #f5f1f8;
}

.book-card-title,
.book-card-meta,
.portrait-card span {
  display: block;
}

.book-card-title,
.portrait-card span {
  margin-top: 12px;
  color: var(--plum);
  font-family: "Underwood", Georgia, serif;
  font-size: 1.13rem;
}

.book-card-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 28px;
}

.home-showcase a {
  display: block;
  min-width: 0;
}

.home-showcase img {
  width: 100%;
  height: auto;
}

.content-page {
  min-height: 70vh;
}

.page-heading {
  margin-bottom: 38px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(190px, 208px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.about-social-links {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 14px;
}

.about-social-links a {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: #e7a344;
}

.about-social-links .fa-brands {
  font-size: 21px;
  line-height: 1;
}

.about-booking {
  margin: 0;
  font-size: 0.96rem;
}

.about-page .prose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 0 24px;
  align-items: start;
}

.about-copy {
  grid-column: 1;
}

.prose h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.about-page h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.award-logo {
  grid-column: 2;
  width: 100%;
  margin: 228px 0 0;
}

.award-logo img {
  width: 100%;
  height: 183px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-page .prose {
    display: block;
  }

  .award-logo {
    width: min(100%, 320px);
    margin: 28px auto;
  }

  .award-logo img {
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  background: #fbf9fd;
  border: 1px solid #eee8f1;
  border-radius: 5px;
}

.catalog-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.catalog-link:hover {
  color: inherit;
  border-color: #cbb8d7;
  box-shadow: 0 8px 24px rgb(52 31 68 / 10%);
  transform: translateY(-2px);
}

.catalog-link:focus-visible {
  outline: 3px solid #9a72aa;
  outline-offset: 3px;
}

.catalog-card > img {
  width: 100%;
  height: 245px;
  padding: 13px;
  object-fit: contain;
  background: #f5f1f8;
}

.catalog-copy {
  padding: 18px 18px 20px;
}

.catalog-copy .eyebrow {
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.catalog-copy h2 {
  margin-bottom: 9px;
  font-size: 1.38rem;
}

.catalog-copy p:last-child {
  margin-bottom: 0;
}

.own-books {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.translation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.translation-card > img {
  height: 220px;
}

.translation-card .catalog-copy {
  padding: 14px 15px 17px;
}

.translation-card .catalog-copy h2 {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
}

.catalog-author,
.catalog-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  font-weight: 650;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  max-width: 940px;
  margin: 0 auto;
}

.detail-layout.has-reviews {
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(20px, 3vw, 40px);
  max-width: none;
}

.detail-cover {
  margin: 0;
  padding: 18px;
  background: #f5f1f8;
  border-radius: 5px;
}

.detail-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgb(52 31 68 / 14%);
}

.detail-copy {
  padding-top: 12px;
}

.translation-award {
  width: min(100%, 150px);
  height: auto;
  margin-bottom: 16px;
}

.detail-copy h1 {
  margin-bottom: 22px;
}

.detail-copy .detail-subtitle {
  margin: -8px 0 20px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.detail-copy > p:not(.eyebrow) {
  color: #4b454f;
  font-size: 1.04rem;
  line-height: 1.8;
}

.publisher-link {
  margin-top: 8px;
}

.detail-back {
  display: flex;
  width: fit-content;
  margin-top: 28px;
}

.detail-back > span {
  order: -1;
}

.review-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
}

.review-card {
  position: relative;
  margin: 0;
  padding-right: 14px;
  border-right: 1px solid #d6a64c;
}

.review-card blockquote {
  position: relative;
  margin: 0 0 2px;
  color: #4b454f;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
}

.review-card blockquote::before {
  position: absolute;
  top: -0.1em;
  left: 0;
  color: rgb(214 166 76 / 27%);
  content: "“";
  font-family: Georgia, serif;
  font-size: 6rem;
  font-style: normal;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.review-card blockquote p {
  position: relative;
  margin: 0;
  z-index: 1;
}

.review-card figcaption {
  color: var(--muted);
  font-size: 0.84rem;
}

.review-card figcaption a {
  font-weight: 700;
}

.news-list {
  max-width: 820px;
}

.news-card {
  padding: 28px 0;
  border-top: 1px solid #e8e1ee;
}

.news-card time {
  color: #8e6e9a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-card h2 {
  margin: 8px 0 12px;
  font-size: 1.8rem;
}

.site-footer {
  --footer-horizontal-padding: clamp(24px, 5vw, 72px);
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px var(--footer-horizontal-padding) 20px;
  background: var(--paper);
}

.footer-books {
  width: calc(100% + var(--footer-horizontal-padding) + var(--footer-horizontal-padding));
  max-width: none;
  /* height: 110px; */
  margin: 0 0 15px;
  margin-left: calc(0px - var(--footer-horizontal-padding));
  object-fit: cover;
  object-position: center 62%;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 11px;
}

.social-links img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.social-links a {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  color: #e7a344;
  text-decoration: none;
}

.social-links .fa-brands {
  font-size: 21px;
  line-height: 1;
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 32px, 620px);
    padding: 15px 0 13px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px;
  }

  .nav-link {
    padding: 6px 9px;
    font-size: 0.86rem;
  }

  .page-shell,
  .site-footer {
    width: min(100% - 24px, 620px);
  }

  .page-shell {
    padding: 36px 22px 52px;
  }

  .feature-section,
  .award-section,
  .about-grid,
  .detail-layout,
  .detail-layout.has-reviews {
    grid-template-columns: 1fr;
  }

  .feature-cover img {
    width: min(70%, 240px);
    margin: 0 auto 18px;
  }

  .award-photo {
    width: min(100%, 340px);
    margin: 0 auto 16px;
  }

  .detail-cover {
    width: min(75%, 300px);
    margin: 0 auto;
  }

  .review-section {
    margin-top: 6px;
  }

  .book-grid,
  .own-books {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .translation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .book-card img,
  .portrait-card img {
    height: 210px;
  }
}

@media (max-width: 440px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-grid,
  .own-books {
    grid-template-columns: 1fr;
  }

  .book-card img,
  .portrait-card img {
    height: 250px;
  }

  .translation-card > img {
    height: 165px;
    padding: 8px;
  }

  .translation-card .catalog-copy {
    padding: 11px;
  }

  .translation-card .catalog-copy h2 {
    font-size: 0.91rem;
  }

  .catalog-author,
  .catalog-meta {
    font-size: 0.76rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
