:root {
  --wine: #491925;
  --wine2: #35131d;
  --dark: #29141b;
  --ink: #36262a;
  --cream: #f1ede5;
  --paper: #f7f2e9;
  --gold: #d3ba8c;
  --muted: #806f72;
  --line: rgba(54, 38, 42, 0.18);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
::selection {
  background: var(--wine);
  color: var(--cream);
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0;
  z-index: 100;
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 20;
  color: #fff9ee;
  border-bottom: 1px solid #ffffff30;
}
.monogram {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}
.monogram span {
  color: var(--gold);
  font-size: 24px;
}
.desktop-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.desktop-nav a {
  position: relative;
}
.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: 0.25s;
}
.desktop-nav a:hover:after {
  width: 100%;
}
.header-connect {
  font-size: 14px;
  border: 1px solid #ffffff60;
  border-radius: 50px;
  padding: 10px 18px;
}
.header-connect span {
  margin-left: 15px;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
}
.hero {
  min-height: 720px;
  height: 90svh;
  max-height: 920px;
  background: var(--wine);
  color: #fff8ec;
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  filter: brightness(0.92) saturate(0.9);
  transform: scale(1.01);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(73, 25, 37, 0.88) 0%,
      rgba(73, 25, 37, 0.79) 24%,
      rgba(73, 25, 37, 0.56) 42%,
      rgba(73, 25, 37, 0.24) 58%,
      rgba(73, 25, 37, 0.06) 100%
    ),
    linear-gradient(
      0deg,
      rgba(42, 18, 27, 0.3) 0%,
      rgba(42, 18, 27, 0) 42%,
      rgba(42, 18, 27, 0.14) 100%
    );
}
.hero-inner {
  position: relative;
  height: 100%;
  padding: 146px 4% 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #eadcc8;
}
.hero h1 {
  font: clamp(54px, 7.3vw, 118px) / 0.96 var(--serif);
  letter-spacing: -0.045em;
  margin: 18px 0 0;
  max-width: 780px;
  font-weight: 400;
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--gold);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 7vw;
  align-items: end;
  max-width: 980px;
}
.hero-lead {
  font: clamp(22px, 2.35vw, 38px) / 1.12 var(--serif);
  max-width: 560px;
  margin: 0;
}
.hero-meta {
  border-left: 1px solid #ffffff3b;
  padding-left: 26px;
  display: grid;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e6d9c8;
  margin-top: 4px;
}
.hero-meta strong {
  font: 30px var(--serif);
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff8ed;
  font-weight: 400;
}
.scroll-link {
  position: absolute;
  right: 4%;
  bottom: 48px;
  width: 112px;
  height: 112px;
  border: 1px solid #d8c4a58f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 29px;
  transition: 0.3s;
}
.scroll-link:hover {
  transform: translateY(-5px);
  background: #ffffff0c;
}
.scroll-link--reading {
  position: absolute;
  overflow: visible;
}
.scroll-link--reading .scroll-copy {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  overflow: visible;
  pointer-events: none;
  animation: reading-ring 18s linear infinite;
}
.scroll-link--reading .scroll-copy text {
  fill: #f4eadb;
  font-family: var(--sans);
  font-size: 8.2px;
  font-weight: 500;
  letter-spacing: 0.75px;
}
.scroll-link--reading .scroll-arrow {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 29px;
  line-height: 1;
}
@keyframes reading-ring {
  to {
    transform: rotate(360deg);
  }
}
.section {
  padding: 95px 6%;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 70px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10%;
  align-items: start;
}
.display {
  font: clamp(48px, 6vw, 92px) / 1.02 var(--serif);
  letter-spacing: -0.04em;
  font-weight: 400;
  margin: 0;
}
.display em {
  font-family: Georgia, serif;
  color: var(--wine);
}
.intro-copy p {
  font-size: 18px;
  color: #67575b;
  max-width: 720px;
  margin: 0 0 24px;
}
.intro-copy p:first-child {
  font-size: 22px;
  line-height: 1.52;
  color: var(--ink);
}
.statline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 28px;
}
.statline div {
  padding-right: 25px;
  border-right: 1px solid var(--line);
}
.statline div + div {
  padding-left: 25px;
}
.statline div:last-child {
  border: 0;
}
.statline strong {
  font: 46px var(--serif);
  display: block;
  font-weight: 400;
}
.statline span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.picks {
  background: var(--wine);
  color: var(--cream);
  --line: #ffffff22;
}
.picks .section-head {
  color: #dacabc;
}
.picks .display em {
  color: var(--gold);
}
.picks-title {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 45px;
}
.picks-title p {
  max-width: 350px;
  color: #d5c4bd;
  font-size: 14px;
  margin: 0 0 8px;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ffffff30;
  border-left: 1px solid #ffffff18;
}
.pick-card {
  position: relative;
  min-height: 205px;
  padding: 24px 26px 30px;
  border-right: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff18;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}
.pick-card:hover {
  background: #ffffff08;
  transform: translateY(-2px);
}
.pick-no {
  font-size: 11px;
  color: #cbb9ae;
}
.pick-card h3 {
  font: 30px/1.15 var(--serif);
  font-weight: 400;
  margin: 22px 0;
  color: #fff7ec;
}
.pick-mark {
  font-size: 18px;
  color: var(--gold);
  align-self: flex-end;
}
.library {
  padding-top: 0;
}
.library-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: end;
  margin-bottom: 0;
  padding-bottom: 70px;
}
.library-heading p {
  color: #6c5c60;
  max-width: 520px;
  margin: 0 0 8px;
}
.library-tools {
  position: sticky;
  top: 90px;
  z-index: 15;
  background: rgba(241, 237, 229, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 6%;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr auto;
  gap: 24px;
  align-items: center;
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #6e5a60;
  background: transparent;
  padding: 12px 32px 12px 0;
  color: var(--ink);
  outline: none;
}
.search input:focus {
  border-color: var(--wine);
}
.search span {
  position: absolute;
  right: 3px;
  top: 10px;
  font-size: 20px;
}
.alphabet {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.alphabet a {
  font-size: 12px;
  color: #7f6d71;
  padding: 4px 3px;
  border-bottom: 1px solid transparent;
}
.alphabet a:hover,
.alphabet a.active {
  color: var(--wine);
  border-color: var(--wine);
}
.results {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #806f72;
  white-space: nowrap;
}
.letters-wrap {
  padding: 25px 6% 110px;
}
.letter-section {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 55px 0;
  scroll-margin-top: 185px;
}
.letter-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 195px;
  align-self: start;
}
.letter-rail > span {
  font: 78px/0.8 var(--serif);
  color: var(--wine);
}
.letter-rail small {
  font-size: 11px;
  color: #9a888c;
  letter-spacing: 0.1em;
}
.book-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 38px;
}
.book-item {
  min-height: 62px;
  border-top: 1px solid rgba(54, 38, 42, 0.13);
  padding: 17px 4px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  line-height: 1.45;
  transition: 0.2s;
}
.book-item:hover {
  padding-left: 9px;
  color: var(--wine);
}
.book-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a7880;
  border: 1px solid #b99aa155;
  border-radius: 30px;
  padding: 3px 6px;
  flex: 0 0 auto;
}
.letter-section[hidden],
.book-item[hidden] {
  display: none !important;
}
.empty {
  display: none;
  padding: 80px 0;
  text-align: center;
  font: 40px var(--serif);
  color: #8b777c;
}
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 90px 6% 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbbbc0;
}
.footer h2 {
  font: clamp(58px, 10vw, 160px) / 1.05 var(--serif);
  letter-spacing: -0.04em;
  margin: 35px 0 55px;
  font-weight: 400;
}
.footer h2 em {
  font-family: Georgia, serif;
  color: var(--gold);
}
.footer-social {
  display: flex;
  gap: 40px;
  font-size: 14px;
}
.footer-social a:last-child {
  margin-left: auto;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff22;
  margin-top: 85px;
  padding-top: 24px;
  font-size: 11px;
  color: #b7a7ad;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.6, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1000px) {
  .pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-tools {
    grid-template-columns: 1fr auto;
  }
  .letter-section {
    scroll-margin-top: 230px;
  }
  .letter-rail {
    top: 240px;
  }
  .alphabet {
    grid-column: 1/-1;
    order: 3;
    justify-content: flex-start;
  }
}
@media (max-width: 700px) {
  .header {
    height: 68px;
    padding: 0 6%;
  }
  .desktop-nav,
  .header-connect {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    min-height: 0;
    height: clamp(520px, 103vw, 720px);
    max-height: 720px;
  }
  .hero-photo {
    inset: 0;
    background: var(--wine);
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    filter: brightness(0.86) saturate(0.88);
    transform: none;
  }
  .hero-fade {
    background:
      linear-gradient(
        90deg,
        rgba(53, 19, 29, 0.94) 0%,
        rgba(73, 25, 37, 0.82) 34%,
        rgba(73, 25, 37, 0.42) 61%,
        rgba(41, 20, 27, 0.12) 100%
      ),
      linear-gradient(
        0deg,
        rgba(42, 18, 27, 0.36) 0%,
        rgba(42, 18, 27, 0) 48%,
        rgba(42, 18, 27, 0.16) 100%
      );
  }
  .hero-inner {
    height: 100%;
    padding: 92px 6% 30px;
    justify-content: flex-start;
    gap: 34px;
  }
  .hero-kicker {
    font-size: 10px;
  }
  .hero h1 {
    font-size: clamp(38px, 11.5vw, 58px);
    line-height: 0.97;
    max-width: 88%;
    margin-top: 12px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 78%;
  }
  .hero-lead {
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.16;
    max-width: 100%;
  }
  .hero-meta {
    display: none;
  }
  .scroll-link {
    width: 68px;
    height: 68px;
    right: 6%;
    bottom: 24px;
    font-size: 23px;
  }
  .scroll-link--reading .scroll-copy {
    inset: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
  }
  .scroll-link--reading .scroll-copy text {
    font-size: 8.8px;
    letter-spacing: 0.4px;
  }
  .scroll-link--reading .scroll-arrow {
    font-size: 23px;
  }
  .section {
    padding: 65px 6%;
  }
  .section-head {
    margin-bottom: 42px;
    font-size: 10px;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .display {
    font-size: 50px;
  }
  .intro-copy p:first-child {
    font-size: 19px;
  }
  .statline strong {
    font-size: 38px;
  }
  .statline span {
    font-size: 9px;
  }
  .picks-title {
    display: block;
  }
  .picks-title p {
    margin: 22px 0 0;
  }
  .pick-grid {
    grid-template-columns: 1fr;
  }
  .pick-card {
    min-height: 155px;
  }
  .library-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 55px;
    align-items: start;
  }
  .library-heading p {
    margin: 0;
  }
  .library-tools {
    top: 68px;
    padding: 14px 6%;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .alphabet {
    gap: 10px;
    max-height: 52px;
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .letters-wrap {
    padding: 15px 6% 80px;
  }
  .letter-section {
    grid-template-columns: 62px 1fr;
    padding: 38px 0;
  }
  .letter-rail > span {
    font-size: 52px;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .book-item {
    min-height: 56px;
  }
  .footer {
    padding: 65px 6% 25px;
  }
  .footer h2 {
    font-size: 62px;
  }
  .footer-social {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-social a:last-child {
    margin-left: 0;
  }
  .footer-bottom {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 60px;
  }
}
@media (max-width: 430px) {
  .hero {
    height: 520px;
    min-height: 0;
    max-height: 520px;
  }
  .hero-inner {
    padding: 84px 6% 24px;
    gap: 28px;
  }
  .hero-photo img {
    object-position: 74% center;
    transform: none;
  }
  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    max-width: 92%;
  }
  .hero-bottom {
    max-width: 84%;
  }
  .hero-lead {
    font-size: clamp(16px, 4.6vw, 20px);
  }
  .scroll-link {
    width: 60px;
    height: 60px;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-link--reading .scroll-copy {
    animation: none;
  }
}

/* Allow long titles and tags to fit narrow phone columns. */
.book-grid,
.book-item,
.book-item > span:first-child {
  min-width: 0;
}
.book-item > span:first-child {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .letter-section {
    grid-template-columns: 62px minmax(0, 1fr);
    scroll-margin-top: 205px;
  }
  .letter-rail {
    top: 215px;
  }
}

/* Book 3: compact editorial hero with all content arranged in one row. */
@media (min-width: 1101px) {
  .book-3 .hero {
    height: clamp(460px, 55svh, 540px);
    min-height: 0;
    max-height: 540px;
  }

  .book-3 .hero-photo img {
    object-position: 66% center;
    filter: brightness(0.75) saturate(0.82);
  }

  .book-3 .hero-fade {
    background:
      linear-gradient(
        90deg,
        rgba(62, 17, 31, 0.98) 0%,
        rgba(62, 17, 31, 0.94) 30%,
        rgba(62, 17, 31, 0.82) 53%,
        rgba(62, 17, 31, 0.66) 72%,
        rgba(62, 17, 31, 0.52) 100%
      ),
      linear-gradient(0deg, rgba(31, 8, 17, 0.3), rgba(31, 8, 17, 0.04));
  }

  .book-3 .hero-inner {
    padding: 118px 4% 38px;
    display: grid;
    grid-template-columns: minmax(440px, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(34px, 3.2vw, 62px);
  }

  .book-3 .hero h1 {
    margin-top: 14px;
    max-width: none;
    font-size: clamp(68px, 5vw, 96px);
  }

  .book-3 .hero-bottom {
    width: 100%;
    max-width: none;
    padding-right: 142px;
    grid-template-columns: minmax(310px, 1.25fr) minmax(155px, 0.55fr);
    gap: clamp(24px, 2.2vw, 42px);
    align-items: center;
  }

  .book-3 .hero-lead {
    max-width: 520px;
    font-size: clamp(25px, 1.78vw, 34px);
  }

  .book-3 .hero-meta {
    padding-left: 22px;
    gap: 8px;
  }

  .book-3 .scroll-link {
    top: 56%;
    bottom: auto;
    width: 100px;
    height: 100px;
    transform: translateY(-50%);
  }

  .book-3 .scroll-link:hover {
    transform: translateY(calc(-50% - 5px));
  }
}
