:root {
  color-scheme: light;
  --black: #1d1d1d;
  --site-black: #1e1e1e;
  --footer-black: #232323;
  --ink: #111111;
  --muted: #5f5f5f;
  --pink: #fe267b;
  --pink-soft: #fff3f8;
  --pink-line: #ff6aa9;
  --paper: #ffffff;
  --soft: #f7f7f7;
  --line: #eeeeee;
  --shadow: 10px 10px 0 #000000;
  --content-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  background-color: var(--site-black);
  background-image: linear-gradient(var(--site-black), var(--site-black));
  color: #ffffff;
}

.header-inner {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 21px 0 0;
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid #3a3a3a;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  text-decoration: none;
}

.brand-mark img {
  width: 60px;
  height: 60px;
  display: block;
  border-radius: 50%;
}

.site-search {
  width: min(245px, 45vw);
  min-height: 46px;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 44px;
  border-radius: 999px;
  overflow: hidden;
  background: #444444;
}

.site-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0 0 0 20px;
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 1px;
}

.site-search input::placeholder {
  color: #ffffff;
  opacity: 0.72;
}

.site-search input:focus,
.site-search input:focus-visible {
  border-color: transparent;
  background-color: transparent;
  color: #ffffff;
  outline: 0;
  box-shadow: none;
}

.site-search input:-webkit-autofill,
.site-search input:-webkit-autofill:hover,
.site-search input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 0 0 1000px #444444 inset;
  caret-color: #ffffff;
}

.site-search button {
  border: 0;
  overflow: hidden;
  color: transparent;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.site-search button::before {
  content: "";
  position: absolute;
  background: #ffffff;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 3C5.9 3 3 5.9 3 9.5S5.9 16 9.5 16c1.6 0 3.1-.6 4.2-1.5l4.4 4.4 1.8-1.8-4.4-4.4c.9-1.1 1.5-2.6 1.5-4.2C17 5.9 14.1 3 10.5 3h-1zm0 2.5h1c2.2 0 4 1.8 4 4s-1.8 4-4 4h-1c-2.2 0-4-1.8-4-4s1.8-4 4-4z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.5 3C5.9 3 3 5.9 3 9.5S5.9 16 9.5 16c1.6 0 3.1-.6 4.2-1.5l4.4 4.4 1.8-1.8-4.4-4.4c.9-1.1 1.5-2.6 1.5-4.2C17 5.9 14.1 3 10.5 3h-1zm0 2.5h1c2.2 0 4 1.8 4 4s-1.8 4-4 4h-1c-2.2 0-4-1.8-4-4s1.8-4 4-4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.primary-nav {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4.3vw, 59px);
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  line-height: 32px;
}

.primary-nav a,
.footer-nav a {
  text-decoration: none;
}

.primary-nav a {
  color: #ffffff;
}

.primary-nav a:hover,
.primary-nav .active {
  color: rgb(252, 65, 111);
}

.library-hero {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 96px) 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 54px;
  align-items: start;
}

.library-hero h1::after {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  margin-top: 18px;
  background: var(--pink);
  border-radius: 0;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgb(254, 38, 123);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.library-hero > .hero-copy > .eyebrow,
.library-heading > div > .eyebrow {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
.hero-stats dt {
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: rgb(10, 10, 10);
  font-size: 58px;
  font-weight: 700;
  line-height: 59px;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgb(85, 85, 85);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
}

.hero-stats {
  width: min(100%, 530px);
  margin: 0;
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div {
  min-height: 158px;
  padding: 42px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  box-shadow: 9px 9px 0 #000000;
}

.hero-stats dt {
  margin: 0;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  max-width: 100%;
  white-space: nowrap;
}

.hero-stats dd {
  margin: 16px 0 0;
  color: #4f4f4f;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.affiliate-note {
  background: var(--soft);
}

.affiliate-note p {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #4f4f4f;
  font-size: 0.95rem;
}

.library-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 110px;
}

.library-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px 24px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--pink-line);
}

.library-heading > div {
  grid-column: 1 / -1;
  min-width: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.98;
}

.library-heading h2 {
  font-size: 30px;
  line-height: 1.02;
}

.library-heading-copy {
  max-width: none;
  margin: 18px 0 0;
  color: rgb(85, 85, 85);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  white-space: nowrap;
}

.affiliate-disclosure {
  margin: 8px 0 0;
  color: rgb(85, 85, 85);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.result-count {
  margin: 0;
  grid-column: 2;
  justify-self: end;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.library-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 22px;
}

.filter-sidebar {
  position: sticky;
  top: 24px;
  padding-top: 16px;
}

.toolbar {
  display: grid;
  gap: 16px;
  padding: 0 0 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #73717c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

input,
select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #ddd8d2;
  border-radius: 8px;
  background-color: #ffffff;
  color: #45444c;
  padding: 0 12px;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(29, 29, 29, 0.02);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 8.2 10 11.7l3.5-3.5' fill='none' stroke='%2373717c' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 9px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

input::placeholder {
  color: #8a8790;
  opacity: 1;
}

.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-button {
  position: relative;
  min-height: 36px;
  width: 100%;
  border: 1px solid #ddd8d2;
  border-radius: 8px;
  background: #ffffff;
  color: #45444c;
  padding: 0 32px 0 12px;
  text-align: left;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(29, 29, 29, 0.02);
}

.custom-select-button::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: #73717c;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 8.2 10 11.7l3.5-3.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 8.2 10 11.7l3.5-3.5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.custom-select.open .custom-select-button {
  border-color: #ffb5d3;
  background: #fff8fb;
  box-shadow: 0 0 0 3px rgba(254, 38, 123, 0.12);
}

.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 274px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #eadde3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(29, 29, 29, 0.12);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-select.open .custom-select-menu {
  display: grid;
  gap: 2px;
}

.custom-select-option {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #45444c;
  padding: 0 10px;
  text-align: left;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.active {
  background: #fff0f7;
  color: var(--pink);
}

.custom-select-menu::-webkit-scrollbar {
  display: none;
}

input:focus,
select:focus {
  border-color: #ffb5d3;
  background-color: #fff8fb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(254, 38, 123, 0.12);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 47, 135, 0.24);
  outline-offset: 2px;
}

.quick-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 0;
}

.chip {
  min-height: 28px;
  border: 1px solid var(--pink-line);
  background: #ffffff;
  color: var(--ink);
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chip:hover,
.chip.active {
  background: var(--pink);
  color: #ffffff;
}

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

.book-card {
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  background: transparent;
}

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

.book-number {
  display: none;
}

.book-cover {
  width: 100%;
  aspect-ratio: 0.66;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 47, 135, 0.13), rgba(255, 255, 255, 0.52)),
    #f8f8f8;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.book-cover.cover-fallback {
  padding: 24px;
  border: 1px solid var(--pink-line);
  background: var(--pink-soft);
}

.book-cover.cover-fallback span {
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
}

.book-body {
  min-width: 0;
  min-height: 74px;
  padding: 12px 0 7px;
}

.book-genre {
  display: none;
}

.book-card h3 {
  margin: 0;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.16;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-author {
  margin: 3px 0 0;
  color: #111111;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.book-meta {
  display: none;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  padding: 0;
}

.book-button {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pink);
  padding: 4px 7px;
  text-decoration: none;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.book-button.amazon {
  width: 100%;
  flex: 0 0 100%;
  min-height: 30px;
  height: 30px;
  border-color: #f0a500;
  border-radius: 5px;
  background: linear-gradient(#ffd978, #f7b84b);
  color: #111111;
  padding: 0 8px;
  line-height: 30px;
  text-align: center;
}

.amazon-button-inner {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
  line-height: 1;
  transform: translateY(1px);
  white-space: nowrap;
}

.amazon-buy-text {
  display: inline-block;
  line-height: 1;
}

.amazon-wordmark {
  display: inline-block;
  padding: 0 1px;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
}

.book-button.ozone {
  background: #ffffff;
  color: var(--pink);
}

.book-button.highlights {
  width: 100%;
  flex: 0 0 100%;
  min-height: 26px;
  border-color: #dddddd;
  border-radius: 5px;
  background: #ffffff;
  color: #9a9a9a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.book-button.highlights:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.book-button:hover,
.load-more:hover {
  transform: translateY(-1px);
}

.empty-state {
  margin: 28px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.load-row {
  display: flex;
  justify-content: center;
  padding-top: 42px;
}

.load-more {
  min-height: 48px;
  border: 2px solid var(--pink);
  border-radius: 5px;
  background: var(--pink);
  color: #ffffff;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.load-more[hidden] {
  display: none;
}

.library-notes {
  width: min(var(--content-width), calc(100% - 32px));
  margin: -56px auto 104px;
  padding-left: 220px;
  padding-top: 20px;
}

.library-notes p {
  margin: 0;
  padding-top: 20px;
  border-top: 2px solid var(--pink-line);
  color: rgb(85, 85, 85);
  font-size: 15px;
  line-height: 1.6;
}

.library-notes strong {
  color: var(--pink);
  font-weight: 900;
}

.library-notes sup {
  font-size: 0.65em;
  line-height: 0;
}

.modal-open {
  overflow: hidden;
}

.highlights-modal[hidden] {
  display: none;
}

.highlights-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.highlights-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.46);
}

.highlights-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #eadde3;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(29, 29, 29, 0.16);
  padding: 34px 38px 36px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.highlights-dialog::-webkit-scrollbar {
  display: none;
}

.highlights-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.highlights-dialog .eyebrow {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.highlights-dialog h2 {
  max-width: 540px;
  margin: 0 0 24px;
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.highlights-content {
  display: grid;
  gap: 12px;
}

.highlight-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #eadde3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 29, 29, 0.08);
  padding: 18px 20px;
}

.highlight-number {
  color: var(--pink);
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.highlight-line {
  margin: 0;
  color: rgb(85, 85, 85);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.site-footer {
  background: var(--footer-black);
  color: #ffffff;
  padding: 44px 0 22px;
}

.footer-inner {
  width: min(1000px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  align-items: center;
  gap: 28px;
  padding-bottom: 27px;
  border-bottom: 1px solid #2d2d2d;
}

.socials {
  display: flex;
  gap: 7px;
}

.socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #fe267b;
  border-radius: 3px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.socials .instagram-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.socials .instagram-icon circle:last-child {
  fill: currentColor;
  stroke: none;
}

.socials a:nth-child(1) {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 35%, #e1306c 62%, #fd1d1d 100%);
}

.socials a:nth-child(2) {
  background: #000000;
}

.socials a:nth-child(3) {
  background: #218bff;
}

.socials a:nth-child(4) {
  background: #0877a8;
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  transform: translate(14px, -2px);
  text-decoration: none;
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 32px;
  color: rgba(248, 248, 248, 0.92);
}

.footer-mail::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  background: var(--pink);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21,12.13C20.85,12.14 20.71,12.19 20.61,12.3L19.61,13.3L21.66,15.3L22.66,14.3C22.88,14.09 22.88,13.74 22.66,13.53L21.42,12.3C21.32,12.19 21.18,12.14 21.04,12.13M19.04,13.88L13,19.94V22H15.06L21.12,15.93M20,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H11V19.11L19.24,10.89C19.71,10.4 20.36,10.13 21.04,10.13C21.38,10.13 21.72,10.19 22.04,10.32V6C22.04,4.88 21.12,4 20,4M20,8L12,13L4,8V6L12,11L20,6'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21,12.13C20.85,12.14 20.71,12.19 20.61,12.3L19.61,13.3L21.66,15.3L22.66,14.3C22.88,14.09 22.88,13.74 22.66,13.53L21.42,12.3C21.32,12.19 21.18,12.14 21.04,12.13M19.04,13.88L13,19.94V22H15.06L21.12,15.93M20,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H11V19.11L19.24,10.89C19.71,10.4 20.36,10.13 21.04,10.13C21.38,10.13 21.72,10.19 22.04,10.32V6C22.04,4.88 21.12,4 20,4M20,8L12,13L4,8V6L12,11L20,6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footer-menu-toggle,
.footer-menu-close {
  display: none;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  transform: translate(-3px, -6px);
  color: rgba(248, 248, 248, 0.92);
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(248, 248, 248, 0.92);
}

.footer-nav .active {
  color: rgb(254, 38, 123);
  font-weight: 700;
}

.copyright {
  width: min(1000px, calc(100% - 32px));
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.34);
  text-align: center;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

@media (max-width: 980px) {
  .library-hero,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }

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

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

  .footer-menu-toggle {
    width: 22px;
    height: 22px;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    transform: translateY(5px);
  }

  .footer-menu-toggle span {
    position: absolute;
    right: 0;
    width: 22px;
    height: 2px;
    display: block;
    background: rgba(248, 248, 248, 0.92);
    border-radius: 0;
  }

  .footer-menu-toggle span:nth-child(1) {
    top: 4px;
  }

  .footer-menu-toggle span:nth-child(2) {
    top: 10px;
  }

  .footer-menu-toggle span:nth-child(3) {
    top: 16px;
  }

  .footer-menu-close {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    margin: 0 0 16px;
    overflow: hidden;
    color: transparent;
    background: transparent;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: calc(20vw + 10px);
    z-index: 1110;
  }

  .footer-menu-close::before,
  .footer-menu-close::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 22px;
    height: 2px;
    background: #ffffff;
    transform: rotate(45deg);
    transform-origin: center;
  }

  .footer-menu-close::after {
    transform: rotate(-45deg);
  }

  .footer-nav {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 20vw;
    width: 80vw;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 60px 60px 60px 10px;
    transform: none;
    overflow-y: auto;
    scrollbar-width: none;
    background: #000000;
    color: #ffffff;
    font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
  }

  .footer-nav::-webkit-scrollbar {
    display: none;
  }

  .footer-nav a {
    position: relative;
    box-sizing: border-box;
    display: block;
    margin: 0 5px;
    padding: 10px 5px 10px 51px;
    border-bottom: 1px solid var(--pink);
    color: #ffffff;
    font-weight: 400;
  }

  .footer-nav a::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 50%;
    width: 13px;
    height: 13px;
    background: var(--pink);
    transform: translateY(-50%);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .footer-nav .active {
    color: var(--pink);
    font-weight: 400;
  }

  body.footer-menu-open {
    overflow: hidden;
  }

  body.footer-menu-open .footer-nav {
    display: flex;
  }
}

@media (max-width: 680px) {
  :root {
    --mobile-gutter: 40px;
  }

  .header-inner {
    width: min(100%, calc(100% - var(--mobile-gutter)));
    padding-top: 20px;
  }

  .library-hero,
  .library-shell,
  .library-notes {
    width: min(100%, calc(100% - var(--mobile-gutter)));
  }

  .header-top {
    align-items: center;
    justify-content: center;
    padding-bottom: 18px;
    gap: 0;
  }

  .site-search {
    display: none;
  }

  .brand-mark,
  .brand-mark img {
    width: 60px;
    height: 60px;
  }

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

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

  .primary-nav {
    min-height: 54px;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(11px, 3vw, 17px);
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
  }

  .library-hero {
    padding-top: 55px;
    padding-bottom: 26px;
    gap: 30px;
  }

  h1 {
    font-size: 31px;
    font-weight: 700;
    line-height: 32px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 32px;
  }

  .library-hero h1::after {
    width: 58px;
    height: 5px;
    margin-top: 14px;
  }

  .hero-copy p:last-child {
    margin-top: 26px;
    color: rgb(85, 85, 85);
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
  }

  .library-heading-copy {
    margin-top: 18px;
    color: rgb(85, 85, 85);
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    white-space: normal;
  }

  .highlights-modal {
    padding: 12px;
  }

  .highlights-dialog {
    width: min(100%, 680px);
    max-height: calc(100vh - 24px);
    padding: 30px 14px 24px;
  }

  .highlights-dialog h2 {
    margin-bottom: 18px;
  }

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

  .hero-stats div {
    min-height: 146px;
    padding: 30px 22px 20px;
  }

  .hero-stats dd {
    margin-top: 14px;
    font-size: 13px;
    line-height: 20px;
  }

  .library-shell {
    padding-top: 22px;
  }

  .library-heading h2 {
    font-size: 24px;
    line-height: 1.05;
  }

  .book-grid {
    gap: 26px 18px;
  }

  .highlight-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 14px 12px;
  }

  .site-footer {
    padding: 20px 0 18px;
  }

  .footer-inner {
    width: min(100%, calc(100% - var(--mobile-gutter)));
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 7px;
    padding-bottom: 16px;
  }

  .socials {
    width: 62px;
    display: grid;
    grid-template-columns: repeat(2, 27px);
    gap: 8px;
    transform: translateY(9px);
  }

  .socials a {
    width: 27px;
    height: 27px;
    border-radius: 4px;
  }

  .socials svg {
    width: 14px;
    height: 14px;
  }

  .socials .instagram-icon {
    width: 16px;
    height: 16px;
  }

  .footer-mail {
    justify-self: center;
    transform: translateY(2px);
    color: rgb(248, 248, 248);
    font-size: 14px;
    font-weight: 400;
    line-height: 32px;
    white-space: nowrap;
  }

  .footer-mail::before {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .copyright {
    width: min(100%, calc(100% - var(--mobile-gutter)));
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 11px;
    font-weight: 400;
    line-height: 19px;
    text-align: center;
  }

  .library-notes {
    padding-left: 0;
  }
}

@media (max-width: 380px) {
  .header-inner {
    width: min(100%, calc(100% - var(--mobile-gutter)));
  }

  .library-hero,
  .library-shell,
  .library-notes,
  .footer-inner,
  .copyright {
    width: min(100%, calc(100% - var(--mobile-gutter)));
  }

  .primary-nav {
    gap: 11px;
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .footer-nav {
    position: fixed !important;
    z-index: 1100;
    top: 0;
    right: 0;
    bottom: 0;
    left: 20vw;
    width: 80vw;
    box-sizing: border-box;
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 60px 60px 60px 10px !important;
    transform: none !important;
    overflow-y: auto;
    scrollbar-width: none;
    background: #000000;
    color: #ffffff;
    font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4em;
    text-transform: uppercase;
  }

  body.footer-menu-open .footer-nav {
    display: flex !important;
  }

  .footer-nav a {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
    display: block;
    margin: 0 5px;
    padding: 10px 5px 10px 51px;
    border-bottom: 1px solid var(--pink);
    color: #ffffff;
    font-weight: 400;
  }

  .footer-nav a::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 50%;
    width: 13px;
    height: 13px;
    background: var(--pink);
    transform: translateY(-50%);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .footer-nav a::after {
    content: none;
  }
}
