:root {
  color-scheme: dark;
  --paper: #13231e;
  --paper-light: #f3e9d2;
  --paper-dark: #0d1915;
  --heading: #f3e6c8;
  --ink: #eadfc6;
  --muted: #a7b3a3;
  --rule: #4b6154;
  --cloth: #1f4a3d;
  --cloth-deep: #0a1612;
  --gold: #c9a45c;
  --ribbon: #d9473a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font: 17px/1.6 var(--serif);
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 70% 25%, #3a4a2c55 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, #1f3a31 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, #00000066, transparent 55%),
    var(--grain),
    var(--paper);
}
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--ribbon); outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 5rem)); margin-inline: auto; }

/* Masthead */
.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.masthead { border-bottom: 3px double var(--rule); }
.wordmark { font: 700 1.35rem var(--serif); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.masthead .wordmark { display: inline-flex; align-items: center; gap: .65rem; }
.masthead .wordmark::before {
  content: "";
  width: .65rem;
  height: 1.1rem;
  background: var(--ribbon);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}
nav { display: flex; gap: clamp(.8rem, 4vw, 2.5rem); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.spotify { font-weight: 700; color: var(--ribbon); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}
.byline { display: flex; align-items: center; gap: .65rem; margin: 0 0 1.15rem; color: var(--muted); font-style: italic; }
.sound-mark { display: inline-flex; gap: 2px; align-items: center; height: 1rem; color: var(--ribbon); }
.sound-mark i { width: 2px; height: 45%; background: currentColor; border-radius: 1px; }
.sound-mark i:nth-child(2) { height: 90%; }
.sound-mark i:nth-child(3) { height: 65%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
h1 {
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: .86;
  letter-spacing: -.05em;
  margin: 0;
  color: var(--heading);
  text-shadow: 2px 3px 0 #00000066;
}
.intro { font: italic clamp(1.25rem, 2.3vw, 1.6rem)/1.4 var(--serif); max-width: 46ch; text-wrap: balance; margin: 1.6rem 0 2rem; }
.intro::first-letter { font-size: 3.05em; float: left; line-height: .78; padding: .05em .08em 0 0; color: var(--ribbon); font-style: normal; }
@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
  .intro::first-letter { initial-letter: 2; -webkit-initial-letter: 2; font-size: 1em; line-height: inherit; float: none; padding: 0; margin-right: calc(.1em + 2px); }
}
.button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .6rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: var(--cloth);
  color: var(--paper-light);
  text-decoration: none;
  font: 600 .86rem/1.3 var(--serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold), 3px 6px 0 #00000055;
  margin: 0 4px 6px 0;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: #2a5c4c; transform: translateY(-2px); }

/* Hero stage: lamplight, book, rising thoughts */
.stage { position: relative; display: grid; place-items: center; min-height: 360px; isolation: isolate; }
.stage::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -2;
  background: radial-gradient(circle at 50% 55%, #ffc76a55 0%, #ffc76a1c 38%, transparent 68%);
}
.book {
  width: 100%;
  max-width: 400px;
  position: relative;
  isolation: isolate;
  transform: rotate(3deg);
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(8px 18px 14px #32251666);
}
.book::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5px -8px -9px 9px;
  border: 1px solid #8b7758;
  border-radius: 3px 7px 8px 4px;
  background: repeating-linear-gradient(0deg, #e6d6b2 0 2px, #b39d78 2px 3px);
}
.podcast-logo { display: block; width: 100%; height: auto; border-radius: 3px 6px 7px 3px; }
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: visible; }
.motes i {
  position: absolute;
  left: var(--x);
  bottom: 12%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ffe3a1;
  box-shadow: 0 0 calc(var(--s) * 3) calc(var(--s) / 2) #ffc95e88;
  opacity: 0;
  animation: rise var(--d) ease-in infinite;
  animation-delay: var(--t);
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  15% { opacity: .95; }
  60% { transform: translate(14px, -190px) scale(1); opacity: .7; }
  100% { transform: translate(-12px, -340px) scale(.4); opacity: 0; }
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-8px); } }

.ornament { text-align: center; color: var(--rule); font-size: 1.6rem; display: flex; align-items: center; gap: 1.2rem; }
.ornament::before, .ornament::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }

/* Contents / episodes */
/* Eski bir kitap sayfası */
.episodes {
  --paper: #efe4cc;
  --paper-light: #f7efdc;
  --ink: #2a2118;
  --muted: #6b5d48;
  --rule: #b9a47c;
  --heading: #17372f;
  --cloth: #17372f;
  --ribbon: #a8261c;
  position: relative;
  isolation: isolate;
  margin-block: clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4.5rem);
  color: var(--ink);
  border-radius: 2px 7px 7px 2px;
  background:
    linear-gradient(90deg, #3a2a1038 0, #3a2a1014 1.6%, transparent 5.5%),
    radial-gradient(ellipse at 50% 45%, transparent 52%, #b0833a38 82%, #8a5f2a55 100%),
    radial-gradient(circle at 12% 18%, #a8793a1c 0, transparent 14%),
    radial-gradient(circle at 88% 74%, #a8793a1a 0, transparent 12%),
    var(--grain),
    #efe4cc;
  box-shadow:
    1px 0 0 #d8c8a0, 3px 0 0 #ece0c4, 4px 0 0 #cbb88e, 6px 0 0 #e8dbbd, 7px 0 0 #bba378,
    0 1px 0 #c9b68c, 0 3px 0 #e8dbbd, 0 4px 0 #bba378,
    0 26px 40px #00000070;
}
/* Sayfa köşesi kıvrımı */
.episodes::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(34px, 5vw, 56px);
  aspect-ratio: 1;
  z-index: -1;
  background: linear-gradient(135deg, #cdb98f 0%, #f3e8cd 45%, #fbf4e1 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -4px -4px 8px #00000030;
}
/* Sayfadan sarkan ayraç */
.episodes::before {
  content: "";
  position: absolute;
  top: -10px;
  right: clamp(1.5rem, 8%, 5rem);
  width: 22px;
  height: 78px;
  background: linear-gradient(90deg, #8e1d15, #c0392d 45%, #8e1d15);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  filter: drop-shadow(1px 3px 2px #00000055);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 3px double var(--rule);
}
.eyebrow { margin: 0 0 .5rem; font-style: italic; color: var(--muted); }
h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.02em; color: var(--heading); }
.section-links { display: flex; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--ribbon); font-weight: 700; }
#status { color: var(--muted); font-style: italic; }
#status:empty, .episode-list:empty { display: none; }
.episode-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 1.4rem; align-items: start; }

.episode {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: 29rem;
  overflow: hidden;
  padding: .8rem .8rem 1.1rem;
  background: linear-gradient(180deg, #f7efdc, #f0e5cb);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 0 0 3px #efe4cc, 0 0 0 4px var(--rule), 3px 7px 0 #00000040;
  animation: page-in .6s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform .25s ease, box-shadow .25s ease;
}
.episode:hover { transform: translateY(-4px); box-shadow: 0 0 0 3px #efe4cc, 0 0 0 4px var(--gold), 3px 12px 0 #00000045; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.episode-cover-wrap {
  position: relative;
  margin-bottom: .7rem;
  padding: 4px;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  box-shadow: 2px 3px 0 #00000040;
}
.episode-cover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--cloth); }
.episode-no {
  position: absolute;
  top: -6px;
  right: 8px;
  padding: .45rem .35rem .85rem;
  background: var(--ribbon);
  color: #fff3e0;
  font: 700 .68rem/1 var(--serif);
  letter-spacing: .08em;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  text-align: center;
  min-width: 1.9rem;
}
.episode-content { overflow-wrap: anywhere; padding-inline: .3rem; }
.episode-kicker { margin: 0 0 .3rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ribbon); font-weight: 700; }
.episode-list h3 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 3.12rem; font-size: 1.3rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; color: var(--heading); }
.episode-tagline { margin: .4rem 0 0; font: italic 1rem/1.4 var(--serif); }
.episode-meta { font-size: .88rem; margin-top: .5rem; color: var(--muted); }
.episode-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--cloth);
  color: var(--paper-light);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.episode-play:hover { background: var(--ribbon); transform: scale(1.06); }
.episode-play[aria-pressed="true"] { background: var(--ribbon); }
.play-icon { display: block; width: .76rem; height: .85rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.episode-play .play-icon { margin-left: 2px; }
.episode-play[aria-pressed="true"] .play-icon {
  margin-left: 0;
  clip-path: polygon(0 0, 33% 0, 33% 100%, 0 100%, 0 0, 67% 0, 100% 0, 100% 100%, 67% 100%, 67% 0);
}
.episode-player { display: block; width: 100%; min-width: 0; margin-top: .5rem; }
.episode-extras { margin-top: auto !important; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; margin-top: .3rem; padding-inline: .3rem; }
.episode-link, .episode-notes summary { font-size: .9rem; }
.episode-link { color: var(--ribbon); font-weight: 600; }
.episode-notes { color: var(--muted); max-width: 100%; }
.episode-notes summary { cursor: pointer; width: fit-content; font-style: italic; }
/* Notlar açılınca kartın üstünü kaplar; kart yüksekliği sabit kalır */
.episode-notes[open] { position: absolute; inset: 0; z-index: 3; padding: 1rem; overflow-y: auto; background: #f7efdc; }
.episode-description {
  max-width: 100%;
  margin: .7rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--ribbon);
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.episode-feedback { margin: 0; padding-inline: .3rem; color: var(--ribbon); font-size: .9rem; font-style: italic; }
.episode-feedback:empty { display: none; }
.episode.skeleton { min-height: 9.5rem; background: linear-gradient(90deg, transparent, #ffffff12, transparent) 0 0 / 200% 100% no-repeat; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* About: end-paper */
.about {
  color: #f1e7cf;
  background:
    var(--grain),
    repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, #00000014 0 1px, transparent 1px 4px),
    #1a3d33;
  border-block: 4px solid var(--cloth-deep);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 7px #1a3d33, inset 0 0 0 8px #c9a45c88;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.about-inner { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1.5rem 3rem; }
.about h2 { color: #f6ecd2; }
.about p { font: 1.22rem/1.65 var(--serif); margin: 0 0 1.1rem; max-width: 55ch; }
.about p:first-child::first-letter { font-size: 3.1em; float: left; line-height: .8; padding: .08em .1em 0 0; color: var(--gold); }
.about p:last-child { margin-bottom: 0; }
.footer { color: var(--muted); font-size: .9rem; }
.footer .wordmark { font-size: 1.1rem; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead, .footer { min-height: 62px; }
  .masthead { flex-wrap: wrap; gap: .6rem 1rem; padding-block: .85rem; }
  .masthead nav { flex-wrap: wrap; gap: .5rem 1rem; }
  .hero, .about-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.6rem; }
  .stage { min-height: 0; padding-top: 1rem; }
  .book { max-width: min(78%, 300px); }
  h1 br { display: none; }
  h1 { font-size: clamp(3.4rem, 15vw, 5.65rem); line-height: .95; }
  .episode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .episode-play { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book, .motes i, .episode, .episode.skeleton { animation: none; }
  .motes i { opacity: .6; }
}
@media (scripting: none) { #status { display: none; } }
