:root {
  --gece: #0a0808;
  --kul-koyu: #2b2523;
  --kul: #9a918b;
  --kemik: #efe8df;
  --kor: #ec6a2e;
  --sarap: #5e1219;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "Spectral", Georgia, serif;
  --ui: "Jost", "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, .84, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--gece); }
body {
  margin: 0;
  background: var(--gece);
  color: var(--kemik);
  font: 300 clamp(18px, 1.25vw, 21px)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--kor); outline-offset: 4px; }
h1, h2, p, dl, dd, ul, figure { margin: 0; padding: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 20;
  padding: 8px 16px; background: var(--kemik); color: var(--gece);
  font-family: var(--ui); transform: translateY(-200%);
}
.skip:focus { transform: none; }

.eyebrow {
  font: 500 12px/1.2 var(--ui);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--kul);
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--gutter);
  font: 500 12px/1 var(--ui);
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: transform .5s var(--ease), padding .4s var(--ease), background-color .4s;
}
.nav.is-stuck {
  padding-block: 14px;
  background: rgba(10, 8, 8, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__progress {
  position: absolute; inset: auto 0 0; height: 1px;
  background: var(--kor);
  transform: scaleX(var(--p, 0)); transform-origin: left;
  opacity: 0; transition: opacity .4s;
}
.nav.is-stuck .nav__progress { opacity: 1; }
.nav nav a[aria-current]::after { transform: scaleX(1); }
section[id] { scroll-margin-top: 70px; }
::selection { background: var(--kor); color: var(--gece); }

/* Fine film grain over everything, like the photographic print */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nav nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav a { position: relative; padding: 6px 0; transition: color .3s; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: .28em; bottom: 0; height: 1px;
  background: var(--kor); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav nav a:hover { color: #fff; }
.nav nav a:hover::after { transform: scaleX(1); }

/* Hero: the name splits around her head, the book stands beside her */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: 3;
  background: linear-gradient(to top, var(--gece) 8%, transparent);
  pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: 0;
  right: -6vw; bottom: -18vh; width: 62vw; height: 80vh;
  background:
    radial-gradient(closest-side at 62% 72%, rgba(236, 106, 46, .30), transparent 70%),
    radial-gradient(closest-side at 55% 60%, rgba(94, 18, 25, .55), transparent 100%);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .7; } to { opacity: 1; } }

.hero__name {
  position: absolute; inset: 0; z-index: 1;
  font: 400 clamp(84px, 12.6vw, 250px)/.9 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.02em;
  pointer-events: none;
}
.hero__first, .hero__last { position: absolute; top: clamp(90px, 14vh, 170px); overflow: hidden; padding: .06em .04em .1em; }
.hero__first { right: 69vw; }
.hero__last { left: 49vw; }
.hero__first > span, .hero__last > span { display: block; animation: rise 1.5s var(--ease) .25s both; }
.hero__last > span { animation-delay: .4s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

.hero__portrait {
  position: absolute; z-index: 2;
  left: 39vw; bottom: 0;
  height: 96%; width: auto; max-width: none;
  transform: translateX(-50%);
  animation: emerge 2.2s ease-out both;
}
@keyframes emerge { from { opacity: 0; filter: brightness(.25); } to { opacity: 1; filter: none; } }

.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero__book {
  position: absolute; z-index: 5;
  right: clamp(32px, 9vw, 170px);
  bottom: clamp(36px, 8vh, 90px);
  --w: clamp(190px, min(20vw, 36vh), 340px);
  width: var(--w);
  perspective: 1400px;
  animation: arrive 1.6s var(--ease) .9s both;
}
@keyframes arrive { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }

.book { display: block; }
.book:hover .book__body { --hover: 10deg; }
.book__body {
  display: block; position: relative;
  transform-style: preserve-3d;
  transform: translateX(var(--shift, 0)) scale(var(--scale, 1)) rotateY(calc(-20deg + var(--hover, 0deg) + var(--rx, 0deg))) rotateX(calc(3deg + var(--ry, 0deg)));
  transition: transform .9s var(--ease);
  --depth: clamp(20px, 2vw, 32px);
}
.book__body img { position: relative; width: 100%; border-radius: 1px 3px 3px 1px; transform: translateZ(calc(var(--depth) / 2)); }
.book, .book__leaves { transform-style: preserve-3d; }

/* Hero book opens on hover: the cover swings on its spine and the pages turn */
.book__cover {
  display: block; position: relative;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--depth) / 2));
  transform-origin: left center;
  transition: transform 1s var(--ease);
}
.book__cover img { transform: none; backface-visibility: hidden; }
.book__inside {
  position: absolute; inset: 0;
  background: linear-gradient(to left, #2a0d10, #120808 45%);
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.book__leaves {
  position: absolute; inset: .7% 1.2% .7% 0;
  transform: translateZ(calc(var(--depth) / 2 - 1px));
  opacity: 0;
  transition: opacity .3s;
}
.leaf {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
}
/* Each leaf has two printed sides; the back is turned so it reads correctly once landed */
.leaf__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: .7em;
  padding: 12% 12% 12% 16%;
  background:
    linear-gradient(to right, rgba(40, 24, 16, .4), transparent 14%),
    #e9e0d2;
  color: #241815;
  font: 400 calc(var(--w) * .066)/1.42 var(--body);
  backface-visibility: hidden;
}
.leaf__back {
  transform: rotateY(180deg);
  background:
    linear-gradient(to left, rgba(40, 24, 16, .4), transparent 14%),
    #e9e0d2;
  padding: 12% 16% 12% 12%;
}
.leaf__face em {
  font: italic 400 calc(var(--w) * .088)/1.22 var(--display);
}
.leaf__face b {
  font: 400 calc(var(--w) * .082)/1.15 var(--display);
  color: #7a1d20;
}
.leaf__title { text-align: center; align-items: center; }
.leaf__title b { font-size: calc(var(--w) * .105); color: inherit; }
.leaf__title small { font: 500 calc(var(--w) * .034)/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; }

/* One page lifts every 1.8s, slow enough to read each spread */
.leaf:not(.leaf--rest), .leaf:not(.leaf--rest) .leaf__face {
  animation: 9s cubic-bezier(.45, .05, .4, 1) infinite paused;
  animation-delay: var(--d);
}
.leaf:not(.leaf--rest) { animation-name: turn; }
.leaf:not(.leaf--rest) .leaf__front { animation-name: page-front; animation-timing-function: linear; }
.leaf:not(.leaf--rest) .leaf__back { animation-name: page-back; animation-timing-function: linear; }
.leaf:nth-child(2) { --d: -7.2s; }
.leaf:nth-child(3) { --d: -5.4s; }
.leaf:nth-child(4) { --d: -3.6s; }
.leaf:nth-child(5) { --d: -1.8s; }
.leaf:nth-child(6) { --d: 0s; }
@keyframes turn {
  0% { transform: rotateY(0); }
  25%, 100% { transform: rotateY(-164deg); }
}
/* The front shows only while this page is next or turning, so the right page changes in sequence */
@keyframes page-front {
  0%, 19% { opacity: 1; }
  20%, 79% { opacity: 0; }
  80%, 100% { opacity: 1; }
}
@keyframes page-back {
  0%, 45% { opacity: 1; }
  52%, 99% { opacity: 0; }
  100% { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Moves right and shrinks as it opens, so the open pages stay clear of the portrait */
  .hero__book:hover .book__body, .hero .book:focus-visible .book__body { --hover: 20deg; --shift: 25%; --scale: .78; }
  .hero__book:hover .book__cover, .hero .book:focus-visible .book__cover {
    transform: translateZ(calc(var(--depth) / 2)) rotateY(-176deg);
  }
  .hero__book:hover .book__leaves, .hero .book:focus-visible .book__leaves { opacity: 1; }
  .hero__book:hover .leaf, .hero__book:hover .leaf__face,
  .hero .book:focus-visible .leaf, .hero .book:focus-visible .leaf__face { animation-play-state: running; }
}

.book__pages {
  position: absolute; top: 1%; bottom: 1%; right: 0; width: var(--depth);
  background: repeating-linear-gradient(to right, #d8cfc2 0 1px, #a79d90 1px 2px);
  transform: translateX(50%) rotateY(90deg);
}
.book__back {
  position: absolute; inset: 0; background: #060505;
  transform: translateZ(calc(var(--depth) / -2));
  box-shadow: -30px 40px 80px rgba(0, 0, 0, .9), 0 0 90px rgba(236, 106, 46, .28);
}

.hero__intro {
  position: absolute; z-index: 5;
  left: var(--gutter); bottom: clamp(36px, 8vh, 90px);
  width: clamp(200px, 22vw, 340px);
  animation: arrive 1.4s var(--ease) 1.2s both;
}
.hero__title {
  margin: 14px 0 22px;
  font: italic 400 clamp(26px, 2.5vw, 42px)/1.1 var(--display);
}
.link {
  display: inline-block; padding-bottom: 6px;
  font: 500 13px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--kor);
  transition: color .3s;
}
.link span { display: inline-block; transition: transform .4s var(--ease); }
.link:hover { color: var(--kor); }
.link:hover span { transform: translateX(6px); }

/* Roman: the sentence catches fire as you read down */
.roman { padding: clamp(110px, 20vh, 220px) var(--gutter) clamp(90px, 16vh, 180px); }
.burn {
  margin-top: 32px;
  max-width: 17ch;
  font: 400 clamp(44px, 7.6vw, 136px)/1.04 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.015em;
}
.burn .w { color: var(--kul-koyu); transition: color .5s linear, text-shadow .7s linear; }
.burn .w.lit { color: var(--kor); text-shadow: 0 0 .35em rgba(236, 106, 46, .55); }
.burn .w.ash { color: var(--kemik); text-shadow: none; }

.quote { margin: 0; }
.roman__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(40px, 9vw, 160px);
  margin-top: clamp(80px, 16vh, 170px);
}
.roman__book {
  position: sticky; top: 110px;
  width: min(100%, 380px); margin-inline: auto;
  perspective: 1400px;
}
.roman__lead {
  max-width: 19em;
  font: italic 400 clamp(28px, 3vw, 50px)/1.18 var(--display);
}
.cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: clamp(40px, 6vh, 64px) 0; }
.cast dt { margin-bottom: 10px; font: 400 clamp(22px, 1.8vw, 28px)/1.2 var(--display); color: var(--kor); }
.cast dd { margin: 0; color: #cfc7be; }
.roman__body > .sbtn { margin-top: 40px; }
.facts { font-family: var(--ui); font-size: 15px; }
.facts div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-top: 1px solid var(--kul-koyu);
}
.facts div:last-child { border-bottom: 1px solid var(--kul-koyu); }
.facts dt { color: var(--kul); }
.facts dd { text-align: right; }

/* Yazar */
.yazar {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(40px, 8vh, 100px) var(--gutter) clamp(80px, 14vh, 150px);
}
/* Closer crop than the hero, so the one portrait reads as a second picture */
.yazar__photo {
  order: 2; justify-self: end; width: min(100%, 540px);
  aspect-ratio: 4 / 5; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.yazar__photo img { width: 135%; max-width: none; margin: -6% 0 0 -17.5%; }
.yazar__text { max-width: 32em; }
.bio p + p { margin-top: 1.1em; color: #cfc7be; }
.bio__lead { font: italic 400 clamp(23px, 1.9vw, 31px)/1.3 var(--display); }
.bio cite { font-style: italic; color: var(--kemik); }
.yazar h2 {
  margin: 20px 0 28px;
  font: 400 clamp(52px, 6.4vw, 112px)/1 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.015em;
}

.social { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Social buttons: a dark coal that lights from below on hover */
.sbtn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--kul-koyu);
  border-radius: 2px;
  color: var(--kemik);
  font: 500 12px/1 var(--ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: border-color .4s, box-shadow .5s, color .3s;
}
.sbtn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 130% at 50% 115%, var(--kor), var(--sarap) 55%, transparent 88%);
  opacity: 0; transform: translateY(35%);
  transition: opacity .45s, transform .6s var(--ease);
}
.sbtn svg { width: 20px; height: 20px; flex: none; }
.sbtn:hover { border-color: var(--kor); box-shadow: 0 8px 34px rgba(236, 106, 46, .3); color: #fff; }
.sbtn:hover::before { opacity: 1; transform: none; }
.sbtn--solid { background: var(--kemik); border-color: var(--kemik); color: var(--gece); }
.sbtn--solid:hover { background: transparent; }
.sbtn--icon { width: 44px; min-height: 44px; padding: 0; }
.sbtn--icon svg { width: 18px; height: 18px; }

/* Satın al */
.satin {
  position: relative;
  padding: clamp(100px, 18vh, 200px) var(--gutter);
  background: radial-gradient(70% 90% at 80% 110%, rgba(94, 18, 25, .6), transparent 70%),
              radial-gradient(40% 50% at 82% 112%, rgba(236, 106, 46, .28), transparent 75%);
  border-top: 1px solid var(--kul-koyu);
}
.satin__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin: 28px 0 clamp(52px, 9vh, 96px);
}
.satin__book { flex: none; width: clamp(180px, 21vw, 340px); margin-right: clamp(0px, 5vw, 90px); perspective: 1400px; }
.satin__title {
  font: 400 clamp(64px, 13vw, 240px)/.92 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.02em;
}
.satin__title em { padding-left: .9em; color: var(--kor); }
.stores { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 44px); }
.stores a {
  display: flex; justify-content: space-between; align-items: baseline;
  min-height: 44px; padding: 16px 0;
  border-top: 1px solid var(--kul);
  font: 400 clamp(22px, 2vw, 32px)/1.2 var(--display);
  transition: color .3s, border-color .3s;
}
.stores a span { font-family: var(--ui); font-size: .7em; transition: transform .4s var(--ease); }
.stores a:hover { color: var(--kor); border-color: var(--kor); }
.stores a:hover span { transform: translate(3px, -3px); }

/* Çok yakında: no cover yet, so the book's own image stands in. Süveyda, the black point at the heart */
.yakin {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(80px, 14vh, 150px) var(--gutter) clamp(90px, 16vh, 170px);
  border-top: 1px solid var(--kul-koyu);
  text-align: center;
}
.yakin__mark {
  position: relative; display: grid; place-items: center;
  width: min(100%, 680px); aspect-ratio: 1;
}
.yakin__eclipse {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side,
    #040303 0 62%,
    #ffc08f 63%,
    var(--kor) 65%,
    rgba(94, 18, 25, .85) 72%,
    rgba(94, 18, 25, .25) 86%,
    transparent 100%);
  animation: smolder 6s ease-in-out infinite alternate;
}
@keyframes smolder {
  from { opacity: .72; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
.yakin__heading { position: relative; }
.yakin__heading .eyebrow { color: var(--kor); }
.yakin h2 {
  margin-top: 18px;
  font: 400 clamp(44px, 7vw, 104px)/1 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -.015em;
}
.yakin__text { max-width: 36em; margin-top: clamp(40px, 7vh, 72px); }
.yakin__dedication { margin-bottom: 1.4em; font: italic 400 clamp(21px, 1.7vw, 27px)/1.3 var(--display); color: var(--kul); }
.yakin__closing { margin-top: 1.4em; font: italic 400 clamp(25px, 2.4vw, 38px)/1.25 var(--display); }
.yakin__follow { margin-top: clamp(48px, 8vh, 80px); font: 400 14px/1.3 var(--ui); color: var(--kul); }
.yakin__follow .social { justify-content: center; margin-top: 18px; }
.bio__link { border-bottom: 1px solid var(--kor); transition: color .3s; }
.bio__link:hover, .bio__link:hover cite { color: var(--kor); }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--kul-koyu);
  font: 400 13px/1.3 var(--ui); color: var(--kul);
}
.foot a { padding: 4px 0; transition: color .3s; }
.foot a:hover { color: var(--kemik); }
.foot { align-items: center; }
.foot__social { display: flex; gap: 8px; }
.foot .sbtn { padding: 0; color: var(--kemik); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Phone and portrait tablet: name on top, her below, book at her side */
@media (max-width: 820px) {
  .nav { padding-block: 18px; font-size: 11px; letter-spacing: .2em; }
  .nav__brand { display: none; }
  .nav nav { width: 100%; justify-content: space-between; }

  .hero { height: auto; min-height: 100svh; padding-bottom: 0; }
  .hero__name { font-size: 18.5vw; line-height: .9; }
  .hero__first, .hero__last { top: 62px; }
  .hero__first { right: auto; left: calc(var(--gutter) - .04em); }
  .hero__last { left: auto; right: calc(var(--gutter) - .04em); }
  .hero__portrait { position: relative; display: block; left: -8vw; bottom: auto; transform: none; width: 112vw; height: auto; margin-top: calc(62px + 3vw); }
  .hero__book { right: var(--gutter); bottom: 150px; width: 36vw; }
  .hero__intro { left: var(--gutter); right: var(--gutter); bottom: 28px; width: auto; }
  .hero__title { margin: 8px 0 14px; font-size: 30px; }
  .hero__glow { width: 120vw; right: -40vw; }
  .hero::after { height: 40%; background: linear-gradient(to top, var(--gece) 34%, transparent); }

  .roman__grid, .yazar { grid-template-columns: minmax(0, 1fr); }
  .roman__book { position: static; width: 62%; }
  .cast { grid-template-columns: minmax(0, 1fr); }
  .yazar__text { order: -1; }
  .yazar__photo { order: 0; justify-self: center; }
  .satin__book { display: none; }
  .stores { grid-template-columns: minmax(0, 1fr); }
  .satin__title em { padding-left: .5em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .embers { display: none; }
}
