@font-face {
  font-family: "Piazzolla";
  src: url("../fonts/Piazzolla-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Plex";
  src: url("../fonts/IBMPlexSans-VF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Amiri";
  src: url("../fonts/Amiri-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #09090a;
  --graphite: #101012;
  --graphite-raised: #171719;
  --graphite-soft: #202024;
  --oxblood: #80201c;
  --oxblood-bright: #a92f28;
  --oxblood-text: #d1584e;
  /* Closing-panel sepia: the dominant tone of the cover photograph (28.8%),
     chosen to hold the same luminance step off the page as the oxblood it
     replaces (2.00 vs 2.03) so the section still reads as its own region. */
  --sepia-panel: #50402d;
  --sepia-ink: #241c11;
  --header-h: 74px;
  --ivory: #f1ede5;
  --muted: #aaa49b;
  --muted-dark: #8a857e;
  --gold: #b28b4f;
  --gold-soft: #d2b06f;
  --rule: rgba(241, 237, 229, 0.15);
  --rule-strong: rgba(241, 237, 229, 0.28);
  --display: "Piazzolla", Georgia, serif;
  --sans: "Plex", Arial, sans-serif;
  --arabic: "Amiri", serif;
  --shell: min(1280px, calc(100vw - 64px));
  --section-space: clamp(96px, 10vw, 164px);
}

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

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 1px solid rgba(241, 237, 229, 0.08);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--oxblood-bright);
  color: #fff;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 440;
  text-wrap: balance;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4.1vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--ivory);
  color: var(--black);
  font-weight: 650;
  transform: translateY(-160%);
}

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

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

/* Sticky, because this is a selling page 8,000px long: the imprint and the
   purchase control must stay reachable. At rest it is transparent over the
   hero (identical to the flat header it replaces); once the reader commits to
   scrolling it materialises into a surface. The change is colour only, so it
   stays legible under prefers-reduced-motion. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    border-bottom-color 240ms cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 240ms cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-condensed {
  border-bottom-color: var(--rule);
  background: rgba(9, 9, 10, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

/* Anchored sections must clear the sticky bar rather than hide beneath it. */
#main-content,
main section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.imprint {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  color: var(--ivory);
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.24em;
}

.header-purchase {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid var(--oxblood-bright);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 610;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

[aria-disabled="true"] {
  cursor: default;
}

.hero {
  position: relative;
  min-height: calc(100svh - 75px);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--black);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - 75px);
  grid-template-columns: minmax(0, 1.06fr) minmax(500px, 0.94fr);
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
  padding-block: clamp(46px, 6vh, 74px) 34px;
}

.hero-copy {
  align-self: center;
  padding-bottom: 24px;
}

.author-line {
  width: max-content;
  max-width: 100%;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oxblood-bright);
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 570;
  letter-spacing: 0.04em;
}

h1 {
  color: var(--ivory);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.title-context,
.title-subject {
  display: block;
}

.title-context {
  max-width: 24ch;
  font-size: clamp(2.45rem, 4.1vw, 4.45rem);
  font-weight: 360;
}

.title-subject {
  margin-top: 0.13em;
  color: #fffaf1;
  font-size: clamp(4rem, 7vw, 7.55rem);
  font-weight: 500;
}

.hero-premise {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-style: italic;
  line-height: 1.4;
}

.hero-offer {
  display: flex;
  max-width: 620px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(34px, 5vh, 58px);
  padding-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.price-block,
.purchase-action {
  display: flex;
  flex-direction: column;
}

.price {
  font-family: var(--display);
  font-size: clamp(2.15rem, 3.4vw, 3.4rem);
  font-variant-numeric: lining-nums;
  font-weight: 460;
  letter-spacing: -0.04em;
  line-height: 1;
}

.format-short {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-control {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid rgba(241, 237, 229, 0.4);
  border-radius: 2px;
  background: var(--oxblood);
  color: #fff;
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.purchase-control[aria-disabled="true"] {
  border-color: var(--rule-strong);
  background: var(--graphite-soft);
  color: #c7c1b8;
}

.hero-art {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}

.hero-art::before {
  position: absolute;
  inset: 22% 0 4%;
  background: radial-gradient(ellipse at 48% 77%, rgba(211, 166, 75, 0.13), transparent 62%);
  content: "";
  pointer-events: none;
}

.hero-cover {
  position: relative;
  display: grid;
  min-height: min(72vh, 690px);
  width: 100%;
  margin: 0;
  place-items: center;
  transform: translateX(clamp(-128px, -6vw, -86px));
}

.hero-cover-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(83vh, 810px);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.62), 0 4px 14px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  transform-style: preserve-3d;
  will-change: transform;
}

.section-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.2em;
}

.question-section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--rule);
  background: var(--graphite);
}

.question-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 9vw, 150px);
}

.section-heading {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}

.question-body {
  border-top: 1px solid var(--rule-strong);
}

.supplication {
  padding: clamp(40px, 6vw, 78px) 0 clamp(54px, 7vw, 92px) clamp(26px, 4vw, 62px);
  border-left: 1px solid var(--gold);
}

.supplication .arabic {
  max-width: 24ch;
  margin-left: auto;
  color: #fff;
  font-family: var(--arabic);
  font-size: clamp(2rem, 3.5vw, 3.55rem);
  line-height: 1.8;
  text-align: right;
}

.supplication > p:not(.arabic) {
  max-width: 46ch;
  margin-top: 34px;
  color: #c6c0b8;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.38rem);
  line-height: 1.65;
}

.supplication cite {
  display: block;
  margin-top: 25px;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.central-question {
  padding: clamp(54px, 7vw, 96px) 0 0 clamp(26px, 4vw, 62px);
  border-top: 1px solid var(--rule-strong);
}

.central-question p {
  max-width: 28ch;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(2rem, 4.15vw, 4.5rem);
  font-weight: 430;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.central-question span {
  display: block;
  margin-top: 30px;
  color: var(--oxblood-text);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.themes-section {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--rule);
}

.themes-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 11vw, 176px);
}

.themes-intro h2 {
  max-width: 13ch;
}

.themes-intro > p {
  max-width: 38ch;
  margin-top: 30px;
  color: var(--muted);
}

.theme-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-list li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  padding-block: clamp(34px, 5vw, 62px);
  border-top: 1px solid var(--rule-strong);
}

.theme-list li:last-child {
  border-bottom: 1px solid var(--rule-strong);
}

.theme-index {
  color: var(--oxblood-text);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 280;
  line-height: 1;
}

.theme-list h3 {
  max-width: 22ch;
}

.theme-list p {
  max-width: 52ch;
  margin-top: 17px;
  color: var(--muted);
}

.purchase-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(68px, 8vw, 112px);
  background: var(--sepia-panel);
  color: #fff;
}

.purchase-section::before {
  position: absolute;
  top: -45%;
  right: 12%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(210, 176, 111, 0.24);
  border-radius: 50%;
  content: "";
}

.purchase-section::after {
  position: absolute;
  top: 0;
  right: 31%;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.purchase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}

.purchase-cover {
  overflow: hidden;
  box-shadow: 18px 24px 48px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
}

.purchase-cover img {
  width: 100%;
  height: auto;
}

.purchase-imprint {
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.22em;
}

.purchase-copy h2 {
  max-width: 19ch;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 4.25rem);
}

.purchase-copy > p:last-child {
  margin-top: 18px;
  color: #efe7d8;
  font-family: var(--display);
  font-size: 1.1rem;
}

.purchase-action {
  align-items: flex-start;
}

.purchase-action > span:nth-child(2) {
  margin-top: 11px;
  color: #efe7d8;
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.purchase-control-light {
  width: 100%;
  margin-top: 27px;
  border-color: rgba(255, 255, 255, 0.62);
  background: var(--ivory);
  color: var(--sepia-ink);
}

.purchase-control-light[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(9, 9, 10, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.spec-chips li {
  padding: 5px 11px;
  border: 1px solid rgba(241, 237, 229, 0.22);
  border-radius: 999px;
  color: #ded2bc;
  font-size: 0.66rem;
  font-weight: 560;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.purchase-action small {
  margin-top: 12px;
  color: #ded2bc;
  font-size: 0.75rem;
  line-height: 1.45;
}

footer {
  padding-block: 27px;
  background: var(--black);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.75rem;
  font-weight: 610;
  letter-spacing: 0.16em;
}

/* WCAG 2.5.8: the footer link stands alone in a column, so it needs a
   target of its own rather than the 18px its line box gives it. */
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-inline: 4px;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) {
  .purchase-control:not([aria-disabled="true"]):hover {
    border-color: var(--gold-soft);
    background: var(--oxblood-bright);
    transform: translateY(-2px);
  }

  .purchase-control-light:not([aria-disabled="true"]):hover {
    background: #fff;
    color: var(--sepia-panel);
  }

  .imprint:hover,
  .footer-inner a:hover {
    color: var(--gold-soft);
  }
}

@media (max-width: 1050px) {
  :root {
    --shell: min(100% - 44px, 940px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 18px;
  }

  .title-context {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }

  .title-subject {
    font-size: clamp(3.6rem, 7.4vw, 5.8rem);
  }

  .hero-offer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-offer .purchase-control {
    align-self: flex-start;
  }

  .purchase-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .purchase-action {
    grid-column: 2;
  }

  .purchase-section::after {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 40px);
    --section-space: 92px;
  }

  body::before {
    display: none;
  }

  .header-inner {
    min-height: 64px;
  }

  .imprint {
    font-size: 0.7rem;
  }

  .header-purchase {
    max-width: 140px;
    justify-content: flex-end;
    font-size: 0.7rem;
    line-height: 1.25;
    text-align: right;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    right: 20px;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 66px 62px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .title-context {
    max-width: 19ch;
    font-size: clamp(2.25rem, 9vw, 4rem);
    line-height: 1.03;
  }

  .title-subject {
    max-width: 9ch;
    font-size: clamp(4rem, 16vw, 7rem);
    line-height: 0.94;
  }

  .hero-premise {
    max-width: 25ch;
  }

  .hero-offer {
    max-width: 440px;
    margin-top: 38px;
  }

  .hero-cover {
    min-height: auto;
    padding: 4px 18px 12px;
    transform: none;
  }

  .hero-cover-image {
    width: min(88vw, 600px);
    height: auto;
  }

  .question-grid,
  .themes-grid {
    grid-template-columns: 1fr;
  }

  .question-grid,
  .themes-grid {
    gap: 58px;
  }

  .section-heading {
    position: static;
  }

  .supplication {
    padding-left: 24px;
  }

  .central-question {
    padding-left: 24px;
  }

  .themes-intro h2 {
    max-width: 16ch;
  }

  .purchase-grid {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }

  .purchase-action {
    grid-column: 1 / -1;
    width: min(100%, 460px);
    padding-top: 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: calc(100% - 40px);
    --section-space: 82px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    gap: 14px;
  }

  .imprint span {
    letter-spacing: 0.14em;
  }

  .header-purchase {
    max-width: 120px;
    letter-spacing: 0.055em;
  }

  .author-line {
    width: auto;
    max-width: 33ch;
  }

  .title-context {
    font-size: clamp(2.05rem, 9.7vw, 3rem);
  }

  .title-subject {
    font-size: clamp(3.45rem, 16.5vw, 5rem);
  }

  .hero-offer .purchase-control {
    width: 100%;
  }

  .theme-list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .theme-index {
    font-size: 2.4rem;
  }

  .purchase-grid {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 28px;
  }

  .purchase-copy h2 {
    font-size: 1.76rem;
  }

  .footer-inner {
    gap: 11px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

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

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
