:root {
  --duvar-ust: #e1e9dd;
  --duvar-alt: #8db29c;
  --duvar-serit: #4c7660;
  --pano: #1d2943;
  --yaldiz: #c9a54e;
  --kagit: #f7f6f1;
  --murekkep: #000;
  --kirmizi: #b3162a;
  --zimba: #8e1420;
  --yazi-genis: "Antonio", "Arial Narrow", sans-serif;
  --yazi-metin: "Old Standard TT", Georgia, serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  color: var(--murekkep);
  font-family: var(--yazi-metin);
  background:
    linear-gradient(to bottom,
      var(--duvar-ust) 0 64%,
      var(--duvar-serit) 64% calc(64% + 5px),
      var(--duvar-alt) calc(64% + 5px) 100%);
  background-attachment: fixed;
}

/* Sıva dokusu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.duvar {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 16px;
  overflow: clip;
}

/* Pano: takvimin asıldığı karton */

.takvim {
  position: relative;
  width: min(400px, 100%);
  background: var(--pano);
  border-radius: 3px;
  padding: 22px 18px 20px;
  transform: rotate(-.5deg);
  box-shadow:
    0 2px 3px rgba(20, 40, 30, .3),
    0 22px 34px -14px rgba(20, 40, 30, .55);
}

.takvim::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--yaldiz);
  outline: 1px solid var(--yaldiz);
  outline-offset: 3px;
  opacity: .7;
  pointer-events: none;
}

.civi {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2f2f2, #9a9a9a 55%, #555);
  box-shadow: 2px 4px 4px rgba(0, 0, 0, .35);
  z-index: 2;
}

.pano {
  text-align: center;
  color: var(--yaldiz);
  padding-bottom: 16px;
}

.cerceve {
  width: 118px;
  height: 142px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 4px;
  background: var(--yaldiz);
  box-shadow: 0 0 0 3px var(--pano), 0 0 0 4px var(--yaldiz);
}

.cerceve img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: sepia(.3) contrast(1.05) saturate(.85);
}

.pano h1 {
  margin: 0;
  font-family: var(--yazi-metin);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.pano-alt {
  margin: 2px 0 0;
  font-family: var(--yazi-genis);
  font-size: 15px;
  letter-spacing: .06em;
}

/* Yaprak destesi */

.blok { position: relative; }

.zimba {
  position: relative;
  height: 20px;
  background: linear-gradient(to bottom, #b32030, var(--zimba) 60%, #6c0f18);
  border-radius: 2px 2px 0 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
}

.zimba i {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #e9e9e9, #8d8d8d);
}

.deste {
  position: relative;
  background: var(--kagit);
  box-shadow:
    0 1px 0 #dcd9ce,
    0 2px 0 var(--kagit),
    0 3px 0 #d6d3c8,
    0 4px 0 #f1f0ea,
    0 5px 0 #cfccc1,
    0 6px 0 #eeede6,
    0 7px 0 #c6c3b8,
    0 10px 12px -4px rgba(0, 0, 0, .4);
}

.sayfa {
  position: relative;
  background: var(--kagit);
  padding: 14px 18px 12px;
  --gun-renk: var(--murekkep);
}

/* Koparma çizgisi */
.sayfa::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: radial-gradient(circle, rgba(0, 0, 0, .28) 1px, transparent 1.4px) 0 0 / 6px 2px repeat-x;
}

.sayfa.kirmizi { --gun-renk: var(--kirmizi); }

.sayfa-ust {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  font-family: var(--yazi-genis);
  font-weight: 700;
  font-size: 18px;
  padding: 4px 0 6px;
  border-bottom: 2px solid var(--murekkep);
}

.sayfa-ust .ay {
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--gun-renk);
}

.sayfa-ust > :last-child { text-align: right; }

.takvimler {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.3;
  padding-top: 8px;
}

.takvimler p { margin: 0; }
.takvimler p:last-child { text-align: right; }

.kucuk {
  display: block;
  font-style: italic;
  font-size: 12px;
  opacity: .7;
}

.gun {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gun-renk);
  padding: 2px 0 10px;
}

.gun-no {
  font-family: var(--yazi-genis);
  font-weight: 700;
  font-size: min(172px, 40vw, 19vh);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.gun-ad {
  font-family: var(--yazi-genis);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .05em;
  line-height: 1;
}

.ozel {
  font-style: italic;
  font-size: 14px;
  min-height: 1.4em;
  margin-top: 4px;
}

.soz {
  position: relative;
  margin: 0;
  padding: 10px 4px 14px;
  border-top: 1px solid var(--murekkep);
  text-align: center;
}

.soz figcaption {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 6px;
}

.soz blockquote {
  margin: 0;
  font-size: 23px;
  line-height: 1.32;
  text-wrap: balance;
  white-space: pre-line;
}

/* Favori sözün mührü */
.muhur {
  display: none;
  position: absolute;
  right: 2px;
  top: -34px;
  padding: 3px 8px 2px;
  font-family: var(--yazi-genis);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--kirmizi);
  border: 2px solid currentColor;
  border-radius: 3px;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  opacity: .85;
  mix-blend-mode: multiply;
  transform: rotate(-11deg);
}

.sayfa.favori .muhur {
  display: block;
  animation: muhur .3s .35s cubic-bezier(.3, 1.5, .5, 1) backwards;
}

.sayfa.kopan .muhur,
.sayfa.gelen .muhur { animation: none; }

@keyframes muhur {
  from { transform: rotate(-11deg) scale(1.9); opacity: 0; }
}

.sayfa-alt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 2px solid var(--murekkep);
  text-align: center;
}

.sayfa-alt > div { padding: 6px 2px 0; }
.sayfa-alt > div + div { border-left: 1px solid var(--murekkep); }

.sayfa-alt dt {
  font-style: italic;
  font-size: 12px;
}

.sayfa-alt dd {
  margin: 0;
  font-family: var(--yazi-genis);
  font-weight: 700;
  font-size: 18px;
}

/* Yaprak koparma */

.sayfa.kopan,
.sayfa.gelen {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.sayfa.kopan {
  transform-origin: 30% 0;
  animation: kop .75s cubic-bezier(.55, 0, .8, .2) forwards;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.sayfa.gelen {
  animation: gel .4s cubic-bezier(.2, .7, .3, 1) forwards;
}

@keyframes kop {
  0%   { transform: none; }
  18%  { transform: translateY(6px) rotate(-2deg); }
  100% { transform: translate(-60px, 120vh) rotate(-22deg); }
}

@keyframes gel {
  from { transform: translateY(-28px) rotate(1.5deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Düğmeler */

.dugmeler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 4;
}

.dugmeler button {
  font-family: var(--yazi-genis);
  font-size: 18px;
  color: var(--murekkep);
  background: var(--kagit);
  border: 1px solid rgba(0, 0, 0, .55);
  border-radius: 2px;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

.dugmeler button:hover:not(:disabled) { background: #fff; }
.dugmeler button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }

.dugmeler button:disabled {
  opacity: .45;
  cursor: default;
}

.dugmeler button:focus-visible {
  outline: 3px solid var(--pano);
  outline-offset: 2px;
}

@media (max-height: 880px) {
  .duvar { padding-block: 24px; gap: 18px; }
  .cerceve { width: 84px; height: 100px; margin-bottom: 6px; }
  .pano h1 { font-size: 24px; }
  .pano { padding-bottom: 12px; }
  .gun-no { font-size: min(172px, 40vw, 16vh); }
}

@media (max-width: 380px) {
  .takvim { padding: 18px 12px 16px; }
  .sayfa { padding: 12px 12px 10px; }
  .soz blockquote { font-size: 20px; }
  .dugmeler button { font-size: 16px; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sayfa.kopan, .sayfa.gelen { animation: none; display: none; }
  .sayfa.favori .muhur { animation: none; }
  .takvim { transform: none; }
}
