@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

img {
  max-width: 100%;
}

@media (max-width: 760px) {
  header {
    padding: 16px 20px !important;
  }

  header + div nav {
    padding: 28px 20px !important;
    gap: 22px !important;
  }

  .navlink {
    font-size: clamp(30px, 10vw, 40px) !important;
    overflow-wrap: anywhere;
  }

  section[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 42px !important;
  }

  section[style*="grid-template-rows"] {
    grid-template-rows: auto auto !important;
    min-height: auto !important;
  }

  section[style*="grid-template-rows"] > div:first-child {
    padding: 56px 20px !important;
  }

  section[style*="grid-template-rows"] > div:last-child {
    min-height: 52vh;
  }

  section[style*="padding: 168px 56px"] {
    padding: 136px 20px 56px !important;
  }

  section[style*="padding: 120px 56px"],
  section[style*="padding: 96px 56px"],
  section[style*="padding: 88px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section[style*="padding: 96px 56px 140px"] {
    padding: 72px 20px 96px !important;
  }

  section[style*="padding: 88px 56px 120px"] {
    padding: 56px 20px 88px !important;
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  footer > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  h1 {
    overflow-wrap: anywhere;
  }

  [style*="display: flex"][style*="gap: 18px"] {
    flex-wrap: wrap;
  }

  button[aria-label="Zurück"] {
    left: 0 !important;
  }

  button[aria-label="Weiter"] {
    right: 0 !important;
  }
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif !important;
}

/* Shared book and story image treatment */
.scroll-scale {
  transform: scale(1) !important;
  transition: transform 0.38s cubic-bezier(.2, .8, .2, 1) !important;
}

.scroll-scale:hover,
a:hover > img[src*="uploads/"],
.story-card:hover .story-card-image {
  transform: scale(1.04) !important;
}

a > img[src*="uploads/"],
.book-cover,
.book-detail-cover {
  border-radius: 18px;
  transition: transform 0.38s cubic-bezier(.2, .8, .2, 1);
}

/* Home portrait */
.home-hero {
  min-height: 760px;
  grid-template-rows: auto !important;
}

.home-hero-portrait {
  align-self: center;
  height: clamp(520px, 68vh, 650px);
  margin: 48px 56px 48px 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, 0.7);
}

.home-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

/* Symmetrical alternating book rows */
.book-row {
  width: 100%;
  grid-template-columns: minmax(0, 420px) minmax(0, 520px) !important;
  justify-content: center;
  gap: 52px !important;
  padding: 88px max(28px, calc((100vw - 1080px) / 2)) !important;
}

.book-row.book-row-reversed {
  grid-template-columns: minmax(0, 520px) minmax(0, 420px) !important;
}

.book-row-copy {
  width: 100%;
  max-width: 520px;
}

.book-cover-link,
.book-detail-cover-link {
  display: block;
  width: min(100%, 400px);
  margin: 0 auto;
  border-radius: 18px;
}

.book-detail-cover-link {
  width: min(100%, 420px);
}

.book-cover,
.book-detail-cover {
  width: 100% !important;
  margin: 0 !important;
}

/* Author note modal */
.author-words-trigger {
  padding: 15px 28px;
  border: 1.5px solid #171512;
  border-radius: 8px;
  color: #171512;
  background: transparent;
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.author-words-trigger:hover {
  color: #fbf8f1;
  background: #171512;
}

.author-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: #171512;
  background: #fbf8f1;
  box-shadow: 0 28px 90px rgba(23, 21, 18, 0.35);
}

.author-dialog::backdrop {
  background: rgba(23, 21, 18, 0.68);
  backdrop-filter: blur(3px);
}

.author-dialog-inner {
  position: relative;
  padding: 52px 52px 46px;
}

.author-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(23, 21, 18, 0.18);
  border-radius: 50%;
  color: #171512;
  background: #f2ebdb;
  cursor: pointer;
  font: 500 24px/1 Arial, sans-serif;
}

.author-dialog-close:hover {
  color: #fbf8f1;
  background: #c6401f;
}

.author-dialog-kicker {
  display: block;
  margin-bottom: 16px;
  color: #c6401f;
  font: 700 12px/1.3 "Bricolage Grotesque", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-dialog h2 {
  margin: 0 0 24px;
  font: 800 clamp(30px, 5vw, 44px)/1.08 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.025em;
}

.author-dialog p {
  margin: 0 0 18px;
  color: #333029;
  font: 18px/1.72 "Newsreader", Georgia, serif;
}

.author-dialog-signature {
  margin-top: 28px !important;
  color: #625c54 !important;
  font-style: italic !important;
}

/* Supported organizations */
.organization-section {
  text-align: center;
}

.organization-section > p {
  margin-right: auto !important;
  margin-left: auto !important;
}

.organization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(840px, 100%);
  margin: 64px auto 0;
  gap: 56px 72px;
}

.organization-card {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0;
  border: 0;
  color: #171512;
  background: transparent;
  text-align: center;
  transition: color .24s ease, transform .24s ease;
}

.organization-card:hover {
  color: #c6401f;
  transform: translateY(-3px);
}

.organization-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.35) brightness(.3);
  transition: filter .24s ease;
}

.organization-card:hover .organization-logo {
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(332deg) brightness(.72);
}

.organization-card strong {
  font: 700 14px/1.3 "Bricolage Grotesque", sans-serif;
}

.organization-card-arrow {
  display: none;
}

/* Short-story carousel on book pages */
.book-story-carousel {
  position: relative;
  width: min(816px, calc(100% - 112px));
  margin: 0 auto;
}

.book-story-carousel-window {
  overflow: hidden;
}

.book-story-card {
  display: flex;
  width: 180px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  color: #171512;
}

.book-story-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  transition: transform .35s ease, box-shadow .35s ease;
}

.book-story-card:hover img {
  transform: scale(1.035);
  box-shadow: 0 18px 36px -22px rgba(23, 21, 18, .45);
}

.book-story-card span {
  font: 700 15px/1.3 "Bricolage Grotesque", sans-serif;
}

@media (max-width: 760px) {
  .organization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
  }

  .book-story-carousel {
    width: calc(100% - 80px);
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero-portrait {
    width: calc(100% - 40px);
    height: 54vh;
    min-height: 420px !important;
    margin: 0 20px 40px;
  }

  .book-row,
  .book-row.book-row-reversed {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 38px !important;
    padding: 64px 20px !important;
  }

  .book-row-reversed .book-row-copy {
    order: 2 !important;
  }

  .book-row-reversed .book-cover-link {
    order: 1 !important;
  }

  .author-dialog-inner {
    padding: 50px 24px 34px;
  }
}

/* Global navigation and footer removal */
footer {
  display: none !important;
}

header:not(.shared-site-header):not(.story-hero),
.menu-overlay,
sc-if[value*="isMenuOpen"] {
  display: none !important;
}

.shared-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid rgba(23, 21, 18, 0.12);
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(10px);
}

.shared-site-brand {
  flex: 0 0 auto;
  color: #171512;
  font: 700 22px/1 "Playfair Display", Georgia, serif;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.shared-menu-button {
  display: flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #171512;
  background: transparent;
  cursor: pointer;
}

.shared-menu-button span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: transform .28s ease, opacity .2s ease;
}

.shared-menu-button.is-open span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.shared-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.shared-menu-button.is-open span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

.shared-menu-overlay {
  position: fixed;
  inset: 88px 0 0;
  z-index: 999;
  background: #171512;
}

.shared-menu-overlay[hidden] {
  display: none;
}

.shared-menu-nav {
  display: flex;
  width: min(1180px, 100%);
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  padding: 48px 56px;
}

.shared-menu-nav a {
  position: relative;
  color: #fbf8f1;
  font: 700 clamp(40px, 6vw, 72px)/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -.025em;
  text-decoration: none;
}

.shared-menu-nav a:hover,
.shared-menu-nav a:focus-visible,
.shared-menu-nav a[aria-current="page"] {
  color: #e8875c;
}

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

/* Home introduction */
.home-hero {
  margin-top: 88px !important;
}

.home-name {
  font-family: "Playfair Display", Georgia, serif !important;
  white-space: nowrap;
}

.home-intro {
  display: flex;
  max-width: 660px;
  flex-direction: column;
  gap: 0;
  color: #d9cfc0;
  font: 18px/1.58 "Newsreader", Georgia, serif;
}

.home-intro p {
  margin: 0;
}

.home-outline-button {
  padding: 15px 28px;
  border: 1.5px solid #fbf8f1;
  border-radius: 2px;
  color: #fbf8f1 !important;
  background: transparent;
  font: 700 15px/1 "Bricolage Grotesque", sans-serif;
  text-decoration: none;
  transition: color .22s ease, background .22s ease;
}

.home-outline-button:hover {
  color: #171512 !important;
  background: #fbf8f1;
}

.home-engagement {
  color: #171512 !important;
  background: #f2ebdb !important;
}

.home-engagement p {
  color: #4a4640 !important;
}

.home-engagement blockquote {
  color: #171512 !important;
}

.home-engagement .engagement-outline {
  border-color: #171512 !important;
  color: #171512 !important;
}

/* Book index alignment */
.book-row-reversed .book-row-copy {
  justify-self: start;
}

.book-row:not(.book-row-reversed) .book-cover-link {
  justify-self: start;
  margin: 0;
}

.book-row-reversed .book-cover-link {
  justify-self: end;
  margin: 0;
}

/* Author words are now part of the page flow */
.author-words-inline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 21, 18, 0.12);
}

.author-words-inline .author-dialog-kicker {
  margin: 0;
  color: #171512;
}

.author-words-inline h2 {
  margin: 0 0 2px;
  font: 800 clamp(26px, 3vw, 34px)/1.08 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
}

.author-words-inline p {
  margin: 0;
  color: #333029;
  font: 18px/1.72 "Newsreader", Georgia, serif;
}

.author-words-inline .author-dialog-signature {
  margin-top: 8px !important;
}

/* Books and stories discovery on every book detail */
[data-short-story-carousel] {
  padding: 82px 56px 96px !important;
}

.book-discovery-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr);
  width: min(1240px, 100%);
  margin: 0 auto;
  gap: 56px;
  align-items: start;
}

.book-discovery-grid h2 {
  margin: 0 0 34px;
  color: #171512;
  font: 800 clamp(28px, 3vw, 40px)/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
}

.book-discovery-book-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.book-discovery-book {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: #171512;
  text-decoration: none;
}

.book-discovery-book img {
  width: 76px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 14px 28px -18px rgba(23, 21, 18, .5);
}

.book-discovery-book span {
  font: 700 16px/1.25 "Bricolage Grotesque", sans-serif;
}

.book-discovery-stories {
  min-width: 0;
}

.book-discovery-stories .book-story-carousel {
  width: calc(100% - 44px);
}

/* Uploaded activism photographs */
.activism-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activism-gallery {
  padding: 104px 56px 112px;
  background: #fbf8f1;
}

.activism-gallery-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.activism-gallery h2 {
  margin: 0 0 18px;
  font: 800 clamp(32px, 4vw, 48px)/1.05 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.025em;
}

.activism-gallery > .activism-gallery-inner > p {
  max-width: 630px;
  margin: 0 0 42px;
  color: #4a4640;
  font: 18px/1.65 "Newsreader", Georgia, serif;
}

.activism-photo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.activism-photo-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #e1d6c5;
  scroll-snap-align: start;
}

.activism-photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 760px;
  margin-top: 88px;
  overflow: hidden;
  color: #fbf8f1;
  background: #171512;
}

.about-hero-portrait {
  position: relative;
  align-self: center;
  height: clamp(520px, 68vh, 650px);
  margin: 48px 56px 48px 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px -32px rgba(0, 0, 0, .7);
}

.about-portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
}

.about-portrait-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #171512 0%, rgba(23, 21, 18, 0) 14%);
  pointer-events: none;
}

.about-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 64px 5vw 64px 56px;
  z-index: 2;
}

.about-kicker {
  color: #e8875c;
  font: 700 13px/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about-name {
  margin: 0;
  font: 700 clamp(48px, 5.7vw, 86px)/.98 "Playfair Display", Georgia, serif;
  letter-spacing: -.03em;
}

.about-hero-copy p {
  max-width: 660px;
  margin: 0;
  color: #d9cfc0;
  font: 18px/1.58 "Newsreader", Georgia, serif;
}

.about-biography {
  padding: 104px 56px 120px;
  background: #f2ebdb;
}

.about-biography-inner {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  width: min(1080px, 100%);
  margin: 0 auto;
  gap: 72px;
}

.about-biography h2 {
  margin: 0;
  font: 800 clamp(34px, 4vw, 50px)/1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -.025em;
}

.about-biography-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-biography-copy p {
  margin: 0;
  color: #333029;
  font: 20px/1.72 "Newsreader", Georgia, serif;
}

@media (max-width: 900px) {
  .shared-site-header {
    min-height: 76px;
    padding: 0 24px;
  }

  .shared-menu-overlay {
    inset-block-start: 76px;
  }

  .home-hero,
  .about-hero,
  section[style*="margin-top: 88px"] {
    margin-top: 76px !important;
  }

  .book-discovery-grid,
  .about-biography-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  [data-short-story-carousel],
  .activism-gallery,
  .about-biography {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .home-name {
    white-space: normal;
  }

  .book-discovery-grid {
    gap: 48px;
  }

  .book-discovery-book-list {
    grid-template-columns: 1fr;
  }

  .book-discovery-stories .book-story-carousel {
    width: calc(100% - 36px);
  }

  .activism-photo-strip {
    grid-template-columns: none;
    grid-auto-columns: minmax(128px, 42vw);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #c6401f #eadfcd;
    scrollbar-width: thin;
  }

  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-hero-portrait {
    width: calc(100% - 40px);
    height: 54vh;
    min-height: 390px;
    margin: 0 20px 40px;
  }

  .about-hero-copy {
    padding: 56px 20px;
  }

  .about-biography-inner {
    gap: 34px;
  }
}

.speech-section > div {
  max-width: 1000px;
}

@media (max-width: 760px) {
  .speech-section {
    padding: 72px 20px 96px !important;
  }

  .speech-section p {
    font-size: 22px !important;
  }
}
