:root {
  --black: #110d0a;
  --ivory: #fff2d9;
  --gold: #d4af73;
  --paper: #eee5d4;
  --rule: #caaa7663;
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ivory);
  background: var(--black);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.top {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--rule);
  background: #110d0a;
}
.top .wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 14px; }
.brand { font: 400 clamp(21px, 3vw, 34px)/1 Georgia, serif; letter-spacing: .24em; }
.buy {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
  padding: 9px 19px;
  border: 1px solid #e9c58d;
  border-radius: 2px;
  color: #1c140d;
  background: linear-gradient(118deg, #f5ddaf, #d6ae71);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.buy:hover { background: #fff0cb; }
.buy:focus-visible { outline: 2px solid var(--ivory); outline-offset: 5px; }
.book {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #b78a52;
  background: #15100c;
}
.book::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0f0b0844, transparent 34%, #110d0acd 60%, #110d0a 96%),
    linear-gradient(0deg, #110d0a 0%, transparent 26%, transparent 76%, #110d0a69 100%),
    url("assets/basalt-portal.webp") center 47% / cover no-repeat;
}
.book .wrap {
  min-height: 640px;
  padding-block: 73px 86px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 104px);
  align-items: center;
}
.book-copy { max-width: 33rem; }
h1, h2 { margin: 0; font-family: "Noto Naskh Arabic", "Amiri", "Times New Roman", serif; }
h1 {
  font-size: clamp(65px, 9.1vw, 138px);
  font-weight: 700;
  line-height: .9;
  color: #fbe9cb;
  text-shadow: 0 6px 25px #0009;
}
h1 span { display: block; }
h1 span + span { margin-block-start: 6px; }
.book-question {
  margin: 27px 0 0;
  font: 700 clamp(20px, 2.2vw, 32px)/1.45 "Noto Naskh Arabic", "Amiri", "Times New Roman", serif;
  color: #f2d6a3;
  text-wrap: balance;
}
.book-description { max-width: 30rem; margin: 11px 0 0; color: #e5d5bd; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.95; text-wrap: pretty; }
.eye { position: relative; display: grid; place-items: center; width: 150px; height: 64px; margin-block-end: 22px; }
.eye::before, .eye::after { content: ""; position: absolute; top: 50%; width: 23px; height: 1px; background: var(--gold); opacity: .65; }
.eye::before { inset-inline-start: 0; }
.eye::after { inset-inline-end: 0; }
.eye__halo { position: absolute; width: 67px; aspect-ratio: 1; border: 1px solid #c7a1686b; border-radius: 50%; box-shadow: 0 0 0 7px #c7a16819; }
.eye__opening {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 46px;
  background: linear-gradient(#fbdfab, #ad7842 60%, #eed09e);
  clip-path: path("M0 23 Q50 -23 100 23 Q50 69 0 23Z");
  animation: eye-opens 2.1s .18s cubic-bezier(.19,.65,.22,1) both;
}
.eye__opening::before {
  position: absolute;
  inset: 1.5px;
  content: "";
  background: radial-gradient(ellipse, #7e522a, #1c110a 74%);
  clip-path: path("M0 21.5 Q48.5 -21.5 97 21.5 Q48.5 64.5 0 21.5Z");
}
.eye__iris {
  position: relative;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid #ffe2a6;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 32%, #fff8dc 0 5%, transparent 9%),
    radial-gradient(circle, #190f08 0 23%, #80511f 24% 32%, #edbc6e 34% 46%, #75491f 50% 63%, #d59a52 72%);
  box-shadow: 0 0 20px #eab568aa;
}
@keyframes eye-opens {
  0%, 13% { transform: scaleY(.045); filter: brightness(.65); }
  100% { transform: scaleY(1); filter: brightness(1); }
}
.book-cover {
  width: min(100%, 332px);
  margin: 0;
  justify-self: center;
  position: relative;
}
.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d9ae7959;
  box-shadow: 0 23px 70px #000d, 0 0 55px #edb46032;
}
.exhibit {
  padding-block: clamp(50px, 7vw, 96px);
  color: #1c150f;
  background: radial-gradient(ellipse at 80% 0%, #fcf2df, transparent 56%), var(--paper);
}
h2 { display: flex; align-items: center; gap: 22px; font-size: clamp(39px, 5.2vw, 72px); line-height: 1.2; }
h2::after { flex: 1; height: 1px; content: ""; background: linear-gradient(to left, #956d3d8c, transparent); }
.exhibit-description { margin: 8px 0 0; color: #53402f; line-height: 1.7; font-size: 15px; }
.gallery { list-style: none; margin: clamp(24px, 3.2vw, 42px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.15vw, 28px); }
.gallery li { overflow: hidden; border: 1px solid #5b4630; border-radius: 4px; background: #120e0b; box-shadow: 0 9px 26px #442c181f; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .top .wrap { min-height: 64px; }
  .brand { letter-spacing: .16em; }
  .buy { min-height: 44px; padding-inline: 11px; font-size: 12px; }
  .book::before {
    background:
      linear-gradient(#110d0a 3%, #110d0aee 30%, #110d0a32 64%, #110d0a87 100%),
      url("assets/basalt-portal.webp") 30% 68% / auto 100% no-repeat;
  }
  .book .wrap { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 32px; padding-block: 30px 48px; }
  .book-copy { margin-inline: auto; }
  .eye { margin: 0 auto 12px; scale: .76; }
  h1 { font-size: clamp(56px, 13vw, 78px); }
  h1 span { display: inline-block; }
  h1 span + span { margin-block-start: 0; margin-inline-start: .13em; }
  .book-question { margin-block-start: 18px; }
  .book-description { margin: 9px auto 0; }
  .book-cover { width: min(65vw, 290px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .eye__opening { animation: none; }
}
