:root {
  --ink: #1c201d;
  --muted: #626961;
  --paper: #f7f3ea;
  --paper-deep: #eee7da;
  --card: #fffdf8;
  --forest: #173f35;
  --forest-light: #275e50;
  --rust: #b7512e;
  --gold: #d8a64c;
  --line: rgba(28, 32, 29, 0.13);
  --shadow: 0 22px 60px rgba(35, 31, 24, 0.13);
  --radius: 24px;
  --shell: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(216, 166, 76, 0.14), transparent 25rem),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 42%, #f3ecdf 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--forest);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.9);
  border-bottom: 1px solid rgba(28, 32, 29, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--shell), calc(100% - 40px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 8px 22px rgba(23, 63, 53, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  color: #3d443f;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover {
  background: rgba(23, 63, 53, 0.07);
}

.site-nav .nav-cta {
  margin-left: 6px;
  padding-inline: 16px;
  color: #fff;
  background: var(--forest);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: 30px;
  z-index: -1;
  border: 1px solid rgba(183, 81, 46, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(183, 81, 46, 0.035),
    0 0 0 108px rgba(183, 81, 46, 0.025);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--rust);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 6.6vw, 6rem);
  line-height: 0.96;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
}

.book-search {
  max-width: 680px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 46px rgba(35, 31, 24, 0.12);
}

.book-search:focus-within {
  border-color: var(--forest-light);
  box-shadow: 0 0 0 4px rgba(39, 94, 80, 0.12), 0 16px 46px rgba(35, 31, 24, 0.12);
}

.search-icon {
  padding-left: 12px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.book-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.book-search input::placeholder,
.compact-search input::placeholder {
  color: #8a908b;
}

.button {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 24px rgba(23, 63, 53, 0.2);
}

.button-primary:hover {
  background: var(--forest-light);
}

.button-light {
  width: 100%;
  color: var(--forest);
  background: #fff;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.text-button,
.clear-button {
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  font-weight: 850;
  cursor: pointer;
}

.text-button:hover,
.clear-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-links {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-links button {
  padding: 6px 10px;
  color: #414842;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.quick-links button:hover {
  color: var(--forest);
  background: #fff;
}

.spotlight-card {
  min-height: 500px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(150px, 0.76fr) minmax(190px, 1fr);
  gap: 24px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(23, 63, 53, 0.97), rgba(13, 39, 33, 0.94)),
    url("/assets/bg-autumn-coffee.webp") center / cover;
  border-radius: 34px 34px 34px 8px;
  box-shadow: 0 28px 70px rgba(23, 63, 53, 0.25);
}

.spotlight-card.is-changing .spotlight-cover,
.spotlight-card.is-changing .spotlight-copy {
  opacity: 0.15;
  transform: translateY(6px);
}

.spotlight-cover-wrap {
  position: relative;
}

.spotlight-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 12px -10px -12px 10px;
  background: var(--gold);
  border-radius: 11px;
  transform: rotate(3deg);
}

.spotlight-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.spotlight-copy {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.spotlight-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #f0ca7e;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.spotlight-copy h2 {
  margin-bottom: 3px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1;
}

.spotlight-author {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.spotlight-copy > p:not(.spotlight-author) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.spotlight-meta {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-meta span {
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.trust-strip {
  background: var(--forest);
}

.trust-grid {
  min-height: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.trust-grid > div {
  padding: 0 28px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.trust-grid span {
  font-size: 0.83rem;
  font-weight: 700;
}

.discover,
.authors-section {
  padding-top: 94px;
  padding-bottom: 100px;
  scroll-margin-top: 80px;
}

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

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 1;
}

.section-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.compact-search input {
  width: min(280px, 100%);
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-bar {
  padding: 16px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.genre-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  padding: 8px 12px;
  color: #4c534e;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover {
  color: var(--forest);
  background: rgba(23, 63, 53, 0.07);
}

.filter-chip.is-active {
  color: #fff;
  background: var(--forest);
}

.mood-select {
  flex: 0 0 auto;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.mood-select select {
  padding: 9px 34px 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.results-line {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.results-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.book-card {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 13px 35px rgba(35, 31, 24, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.book-cover-link {
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.025);
}

.book-body {
  padding: 18px;
}

.book-tags {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-tags span {
  padding: 4px 7px;
  color: var(--forest);
  background: rgba(23, 63, 53, 0.07);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.book-body h3 {
  margin-bottom: 4px;
  font-size: 1.42rem;
  line-height: 1.08;
}

.book-author {
  margin-bottom: 12px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
}

.book-hook {
  min-height: 66px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

.book-link {
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.book-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalogue-more,
.author-list-more {
  display: flex;
  justify-content: center;
}

.catalogue-more {
  margin-top: 30px;
}

.catalogue-more .button,
.author-list-more .button {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: none;
}

.catalogue-more .button:hover,
.author-list-more .button:hover {
  background: #fff;
}

.empty-state,
.noscript-message {
  padding: 46px 24px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed rgba(23, 63, 53, 0.28);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.7rem;
}

.empty-state .button {
  margin-top: 8px;
}

.mood-section {
  padding: 96px 0;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(23, 63, 53, 0.98), rgba(12, 42, 35, 0.97)),
    url("/assets/bg-autumn-coffee.webp") center / cover fixed;
  scroll-margin-top: 72px;
}

.section-heading-light .eyebrow {
  color: #f0ca7e;
}

.section-heading-light p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mood-card {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mood-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.45);
}

.mood-number {
  margin-bottom: auto;
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.mood-card strong {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.mood-card > span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.mood-cosy {
  background: linear-gradient(150deg, #97563c, #6e3228);
}

.mood-fast {
  background: linear-gradient(150deg, #58464e, #272d3c);
}

.mood-dark {
  background: linear-gradient(150deg, #253f45, #101d24);
}

.mood-thoughtful {
  background: linear-gradient(150deg, #687347, #38482f);
}

.author-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.author-link {
  min-height: 82px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.44);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  font-weight: 700;
  text-decoration: none;
}

.author-link::after {
  content: "↗";
  color: var(--rust);
  font-family: system-ui, sans-serif;
  transition: transform 0.16s ease;
}

.author-link:hover {
  background: #fff;
}

.author-link:hover::after {
  transform: translate(2px, -2px);
}

.author-list-more {
  margin-top: 24px;
}

.author-cta {
  margin-bottom: 100px;
  padding: clamp(32px, 5vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 166, 76, 0.22), transparent 18rem),
    #e8dfcf;
  border: 1px solid rgba(183, 81, 46, 0.16);
  border-radius: 30px;
}

.author-cta h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.author-cta p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.author-cta .button {
  flex: 0 0 auto;
}

.site-footer {
  padding: 54px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #102d26;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: end;
}

.footer-brand {
  color: #fff;
}

.footer-grid > div > p {
  margin: 14px 0 0;
  font-size: 0.86rem;
}

.footer-grid nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.footer-grid nav a {
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .spotlight-card {
    min-height: 0;
    grid-template-columns: 190px 1fr;
  }

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

  .filter-bar {
    align-items: stretch;
  }

  .author-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .trust-grid > div {
    padding: 18px 10px;
    flex-direction: column;
    gap: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-search,
  .compact-search input {
    width: 100%;
  }

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

  .author-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .shell,
  .nav-shell {
    width: min(100% - 26px, var(--shell));
  }

  .brand > span:last-child {
    font-size: 0.92rem;
  }

  .site-nav .nav-cta {
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 42px;
  }

  .book-search {
    padding: 10px;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-icon {
    display: none;
  }

  .book-search input {
    width: 100%;
    flex-basis: 100%;
    padding: 10px 4px;
  }

  .book-search .button {
    width: 100%;
  }

  .spotlight-card {
    padding: 18px;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    border-radius: 24px 24px 24px 8px;
  }

  .spotlight-copy h2 {
    font-size: 1.65rem;
  }

  .spotlight-copy > p:not(.spotlight-author),
  .spotlight-meta {
    display: none;
  }

  .spotlight-copy .button {
    min-height: 40px;
    padding: 9px 11px;
    font-size: 0.75rem;
  }

  .trust-grid strong {
    font-size: 1.25rem;
  }

  .trust-grid span {
    font-size: 0.7rem;
  }

  .discover,
  .authors-section {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .genre-filters {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .mood-select {
    width: 100%;
    align-self: stretch;
    justify-content: space-between;
  }

  .book-grid {
    gap: 12px;
  }

  .book-body {
    padding: 13px;
  }

  .book-body h3 {
    font-size: 1.12rem;
  }

  .book-hook {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mood-grid,
  .author-list {
    grid-template-columns: 1fr;
  }

  .mood-card {
    min-height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .mood-section {
    background-attachment: scroll;
  }
}
