/* =========================================================
   FOLIO & KEY
   COMBINED STAGE B — STORY + EDITIONS
   ========================================================= */


/* =========================================================
   STORY — LUXURY EDITORIAL SPREAD
   ========================================================= */

.editorial-story {
  position: relative;

  overflow: hidden;

  padding:
    120px 7%;

  color:
    #173128;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(212,179,115,.10),
      transparent 25%
    ),
    linear-gradient(
      105deg,
      #F7EEDC 0%,
      #F1E5CF 52%,
      #EADCC2 100%
    );
}


/* subtle paper grain */
.editorial-story::before {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: .22;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(78,52,32,.035) 0,
      rgba(78,52,32,.035) 1px,
      transparent 1px,
      transparent 4px
    );
}


.editorial-story-shell {
  position: relative;
  z-index: 2;

  max-width: 1480px;

  margin-inline: auto;
}


.editorial-story-index {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 50px;

  color:
    #8B6B38;

  font-family:
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .20em;

  text-transform: uppercase;
}


.editorial-story-index span:first-child {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(93,68,34,.25);

  border-radius: 50%;
}


.editorial-story-main {
  display: grid;

  grid-template-columns:
    1.06fr .94fr;

  gap:
    clamp(70px, 9vw, 150px);

  align-items: center;
}


.story-title-side {
  position: relative;
}


.story-symbol {
  width: 100px;
  height: auto;

  margin-bottom: 28px;

  opacity: .92;
}


.editorial-story h2 {
  max-width: 670px;

  margin: 0;

  color:
    #16372D;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(48px, 5vw, 76px);

  font-weight: 400;

  line-height: 1.08;
}


html[lang="ar"] .editorial-story h2 {
  font-family:
    "Amiri",
    "Noto Naskh Arabic",
    serif;

  font-size:
    clamp(57px, 5.5vw, 88px);

  line-height: 1.30;
}


.story-copy-side {
  position: relative;

  padding-inline-start:
    46px;

  border-inline-start:
    1px solid rgba(67,50,30,.18);
}


.story-copy-side::before {
  content: "“";

  position: absolute;

  top: -55px;

  inset-inline-start: 28px;

  color:
    rgba(139,107,56,.16);

  font-family:
    Georgia,
    serif;

  font-size: 160px;

  line-height: 1;
}


.story-copy-side p {
  position: relative;
  z-index: 2;

  margin:
    0 0 26px;

  color:
    rgba(23,49,40,.82);

  font-family:
    Arial,
    sans-serif;

  font-size: 17px;

  line-height: 1.85;
}


html[lang="ar"] .story-copy-side p {
  font-family:
    "Noto Naskh Arabic",
    serif;

  font-size: 19px;

  line-height: 2;
}


.story-copy-side .story-lead {
  color:
    #173128;

  font-size: 20px;
}


html[lang="ar"] .story-copy-side .story-lead {
  font-size: 21px;
}


.story-quiet-mark {
  display: flex;
  align-items: center;

  gap: 14px;

  margin-top: 38px;

  color:
    #896837;

  font-family:
    Arial,
    sans-serif;

  font-size: 10px;

  letter-spacing: .24em;
}


.story-quiet-mark span {
  width: 52px;
  height: 1px;

  background:
    rgba(137,104,55,.55);
}


.story-bottom-ornament {
  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 16px;

  width: min(100%, 700px);

  margin:
    90px auto
    0;

  color:
    #A5844B;
}


.story-bottom-ornament span {
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(137,104,55,.35),
      transparent
    );
}


.story-bottom-ornament i {
  font-size: 11px;
  font-style: normal;
}


/* =========================================================
   EDITIONS — COLLECTIBLE VOLUMES
   ========================================================= */

.collectible-editions {
  position: relative;

  overflow: hidden;

  padding:
    125px 7%
    145px;

  color:
    #F7EBD5;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(212,179,115,.12),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #041F19 0%,
      #07352B 52%,
      #021814 100%
    );
}


.collectible-editions::before {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: .13;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(212,179,115,.08) 0,
      rgba(212,179,115,.08) 1px,
      transparent 1px,
      transparent 125px
    );
}


.editions-shell {
  position: relative;
  z-index: 2;

  max-width: 1480px;

  margin-inline: auto;
}


.editions-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 70px;

  margin-bottom: 68px;
}


.editions-index {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 28px;

  color:
    #D4B373;

  font-family:
    Arial,
    sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .20em;

  text-transform: uppercase;
}


.editions-index span:first-child {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border:
    1px solid rgba(212,179,115,.32);

  border-radius: 50%;
}


.collectible-editions h2 {
  max-width: 750px;

  margin: 0;

  color:
    #F7EBD5;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(46px, 4.7vw, 72px);

  font-weight: 400;

  line-height: 1.09;
}


html[lang="ar"] .collectible-editions h2 {
  font-family:
    "Amiri",
    "Noto Naskh Arabic",
    serif;

  font-size:
    clamp(55px, 5vw, 82px);

  line-height: 1.32;
}


.editions-heading > p {
  max-width: 450px;

  margin: 0;

  color:
    rgba(247,235,213,.68);

  font-family:
    Arial,
    sans-serif;

  font-size: 16px;

  line-height: 1.8;
}


html[lang="ar"] .editions-heading > p {
  font-family:
    "Noto Naskh Arabic",
    serif;

  font-size: 18px;

  line-height: 2;
}


/* library */
.edition-library {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 24px;
}


/* individual volume */
.edition-volume {
  position: relative;

  min-height: 515px;

  display: grid;

  grid-template-columns:
    52px 1fr;

  overflow: hidden;

  border:
    1px solid rgba(212,179,115,.24);

  border-radius:
    3px 9px 9px 3px;

  box-shadow:
    0 28px 65px rgba(0,0,0,.25);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}


html[dir="rtl"] .edition-volume {
  border-radius:
    9px 3px 3px 9px;
}


.edition-volume:hover {
  transform:
    translateY(-8px);

  border-color:
    rgba(212,179,115,.55);

  box-shadow:
    0 36px 80px rgba(0,0,0,.36);
}


/* different editions */
.edition-gift {
  background:
    linear-gradient(
      145deg,
      #EEE1C8,
      #D8C39C
    );

  color:
    #173128;
}


.edition-signature {
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(212,179,115,.12),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #7B283A,
      #4B1726
    );

  color:
    #F7EBD5;
}


.edition-one {
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(212,179,115,.12),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #124A3A,
      #052A22
    );

  color:
    #F7EBD5;
}


/* spine */
.volume-spine {
  position: relative;

  display: flex;

  align-items: end;
  justify-content: center;

  padding-bottom: 30px;

  border-inline-end:
    1px solid rgba(212,179,115,.24);

  box-shadow:
    8px 0 18px rgba(0,0,0,.08);
}


.volume-spine span {
  color:
    #D4B373;

  font-family:
    Arial,
    sans-serif;

  font-size: 10px;

  letter-spacing: .15em;

  writing-mode:
    vertical-rl;

  transform:
    rotate(180deg);
}


.edition-gift .volume-spine {
  border-color:
    rgba(73,51,29,.18);
}


.edition-gift .volume-spine span {
  color:
    #7C5D2F;
}


/* content */
.volume-inner {
  position: relative;

  display: flex;
  flex-direction: column;

  padding:
    46px 38px
    36px;
}


.volume-inner::before {
  content: "";

  position: absolute;

  inset: 16px;

  pointer-events: none;

  border:
    1px solid rgba(212,179,115,.17);
}


.edition-gift .volume-inner::before {
  border-color:
    rgba(87,61,30,.16);
}


.volume-status {
  position: relative;
  z-index: 2;

  color:
    #D4B373;

  font-family:
    Arial,
    sans-serif;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: .18em;

  text-transform: uppercase;
}


.edition-gift .volume-status {
  color:
    #7A5A2F;
}


.volume-inner h3 {
  position: relative;
  z-index: 2;

  margin:
    auto 0
    20px;

  color:
    inherit;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(36px, 3vw, 49px);

  font-weight: 400;

  line-height: 1.04;
}


html[lang="ar"] .volume-inner h3 {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
}


.volume-inner p {
  position: relative;
  z-index: 2;

  min-height: 105px;

  margin: 0;

  color:
    rgba(247,235,213,.70);

  font-family:
    Arial,
    sans-serif;

  font-size: 15px;

  line-height: 1.75;
}


.edition-gift .volume-inner p {
  color:
    rgba(23,49,40,.75);
}


html[lang="ar"] .volume-inner p {
  font-family:
    "Noto Naskh Arabic",
    serif;

  font-size: 17px;

  line-height: 1.95;
}


.volume-footer {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;

  gap: 14px;

  margin-top: 30px;
}


.volume-rule {
  flex: 1;

  height: 1px;

  background:
    rgba(212,179,115,.30);
}


.edition-gift .volume-rule {
  background:
    rgba(83,59,31,.26);
}


.volume-monogram {
  color:
    #D4B373;

  font-family:
    Georgia,
    serif;

  font-size: 18px;

  font-style: italic;
}


.edition-gift .volume-monogram {
  color:
    #76562D;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .editorial-story-main {
    gap: 60px;
  }


  .edition-library {
    grid-template-columns:
      1fr;
  }


  .edition-volume {
    min-height: 385px;
  }


  .volume-inner h3 {
    margin-top: 90px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .editorial-story {
    padding:
      85px 24px;
  }


  .editorial-story-index {
    margin-bottom: 35px;
  }


  .editorial-story-main {
    grid-template-columns:
      1fr;

    gap: 45px;
  }


  .story-symbol {
    width: 82px;

    margin-bottom: 20px;
  }


  html[lang="ar"] .editorial-story h2 {
    font-size:
      clamp(48px, 12vw, 63px);

    line-height: 1.34;
  }


  .story-copy-side {
    padding-inline-start: 25px;
  }


  .story-copy-side::before {
    font-size: 115px;
  }


  html[lang="ar"] .story-copy-side p,
  html[lang="ar"] .story-copy-side .story-lead {
    font-size: 18px;
  }


  .story-bottom-ornament {
    margin-top: 65px;
  }


  /* EDITIONS */

  .collectible-editions {
    padding:
      90px 23px
      105px;
  }


  .editions-heading {
    flex-direction: column;

    align-items: start;

    gap: 25px;

    margin-bottom: 48px;
  }


  html[lang="ar"] .collectible-editions h2 {
    font-size:
      clamp(48px, 12vw, 62px);

    line-height: 1.35;
  }


  .editions-heading > p {
    max-width: 100%;
  }


  .edition-library {
    gap: 20px;
  }


  .edition-volume {
    min-height: 420px;

    grid-template-columns:
      42px 1fr;
  }


  .volume-inner {
    padding:
      36px 27px
      30px;
  }


  .volume-inner h3 {
    margin-top: 80px;

    font-size: 38px;
  }


  .volume-inner p {
    min-height: 0;
  }

}


/* =========================================================
   EDITION PREVIEW ARTWORK
   ========================================================= */

.volume-preview {
  position: relative;
  z-index: 2;

  width: 100%;
  aspect-ratio: 3 / 2;

  margin:
    34px 0
    28px;

  overflow: hidden;

  border:
    1px solid rgba(212, 179, 115, .26);

  background:
    rgba(0, 0, 0, .12);

  box-shadow:
    0 18px 34px
    rgba(0, 0, 0, .18);
}


.volume-preview::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.02),
      transparent 45%,
      rgba(0,0,0,.15)
    );
}


.volume-preview img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .55s ease,
    filter .55s ease;
}


.edition-volume:hover .volume-preview img {
  transform:
    scale(1.035);

  filter:
    brightness(1.04);
}


/* Gift Edition uses darker frame on ivory */
.edition-gift .volume-preview {
  border-color:
    rgba(76, 53, 29, .22);

  box-shadow:
    0 18px 34px
    rgba(72, 48, 24, .12);
}


/* Adjust old title spacing now that previews exist */
.volume-inner h3 {
  margin:
    0 0
    18px;
}


/* Give cards more height for preview */
.edition-volume {
  min-height:
    610px;
}


/* Mobile */
@media (max-width: 700px) {

  .edition-volume {
    min-height:
      auto;
  }


  .volume-preview {
    margin:
      28px 0
      24px;
  }


  .volume-inner h3 {
    margin-top:
      0;
  }

}
