@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ebg-400-l.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ebg-400.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ebg-500-l.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ebg-500.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ebg-600-l.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ebg-600.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ebg-400i-l.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/ebg-400i.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f8efdd;
  --paper-deep: #efe2c6;
  --navy: #16264d;
  --navy-soft: #2c3d66;
  --ink: #142140;
  --muted: #5b5a52;
  --gold: #b98b35;
  --gold-light: #dcb96a;
  --vermilion: #c2553a;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 10px;
  background: radial-gradient(120% 90% at 50% 0%, #fbf5e8 0%, var(--paper) 55%, var(--paper-deep) 100%);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

/* Kitap sayfası: lacivert pervaz, iki ince altın çizgi, noktalı tezhip hattı. */
.page {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--paper);
  border: 9px solid var(--navy);
  box-shadow:
    inset 0 0 0 1.5px var(--gold),
    inset 0 0 0 5px var(--paper),
    inset 0 0 0 6px var(--gold-light),
    0 24px 60px -30px rgba(22, 38, 77, 0.45);
}
.page::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px dotted var(--gold-light);
  pointer-events: none;
}

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 10px 10px 0;
  background:
    radial-gradient(circle, var(--navy) 1.4px, transparent 1.8px) 0 50% / 14px 14px repeat-x,
    linear-gradient(180deg, #e2c47c 0%, #cfa553 55%, #c39643 100%);
  border-top: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
}
.band:last-child { margin: 0 10px 10px; }
.band svg { display: block; height: 30px; width: auto; }

.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 22px 26px;
}

.logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}

h1 {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: clamp(27px, 7.4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  margin: 12px 0 0;
  max-width: 30ch;
  font-size: 19px;
  color: var(--navy-soft);
  text-wrap: pretty;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin-top: 22px;
}
.signup input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fffaf0;
  border: 1.5px solid #cdb27a;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup input[type="email"]::placeholder { color: #8a8170; }
.signup input[type="email"]:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(185, 139, 53, 0.3); }
.signup button {
  height: 50px;
  padding: 0 26px;
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fbf3e2;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--navy), inset 0 0 0 3px var(--gold);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.signup button:hover { background: #1d3163; }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: 0.7; cursor: progress; }
.signup button:focus-visible, .social a:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.status { margin: 10px 0 0; max-width: 400px; font-size: 17px; min-height: 0; }
.status:empty { display: none; }
.status.ok { padding: 12px 14px; background: #f1e6cb; border: 1px solid #d8bf86; border-radius: 4px; color: var(--ink); }
.status.err { color: #9c3a22; }
.status a { color: var(--navy); font-weight: 600; }

.note {
  margin: 12px 0 0;
  max-width: 380px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.note a, .foot a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 2px; }

.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 24px 0 14px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { transform: scaleX(-1); }
.rule svg { width: 22px; height: 22px; flex: none; }

.label {
  margin: 0 0 12px;
  font-style: italic;
  font-size: 18px;
  color: var(--navy-soft);
}
.nw { white-space: nowrap; }
.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; max-width: 400px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 6px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  background: #fffaf0;
  border: 1.5px solid #d3b97f;
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.social a:hover { border-color: var(--navy); background: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.foot { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

.sr, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) {
  body { padding: 32px 16px 18px; }
  .page { border-width: 12px; }
  .band { height: 46px; margin: 12px 12px 0; }
  .band:last-child { margin: 0 12px 12px; }
  .band svg { height: 34px; }
  .inner { padding: 30px 44px 34px; }
  .logo { width: 168px; height: 168px; }
  .signup { flex-direction: row; }
  .signup input[type="email"] { flex: 1; }
  .social { gap: 10px; }
  .social a { gap: 8px; font-size: 17px; }
}

/* Gizlilik sayfası */
.doc .inner { text-align: left; align-items: stretch; }
.doc h1 { text-align: center; font-size: clamp(28px, 7vw, 34px); }
.doc .meta { text-align: center; margin: 6px 0 10px; font-size: 15px; color: var(--muted); font-style: italic; }
.doc h2 { margin: 20px 0 4px; font-size: 20px; font-weight: 600; color: var(--navy); }
.doc p, .doc li { margin: 0 0 8px; font-size: 17px; }
.doc ul { margin: 0 0 8px; padding-left: 20px; }
.doc a { color: var(--navy); }
.doc .back { margin-top: 18px; text-align: center; }

/* Açılış: altın çizgi çerçeveyi dolaşır, logo halkası çizilir, logo yukarıdan aşağı açılır (önce hilal).
   Yalnız süs katmanı hareket eder; yazı ve form ilk karede hazırdır. */
.cizim {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.cizim rect {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ciz 1.3s cubic-bezier(.55, .1, .3, 1) forwards, sondur .5s ease 1.3s forwards;
}
.emblem { position: relative; width: 150px; height: 150px; }
.emblem .logo { display: block; animation: ac 1s ease-out .25s both; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: .9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: ciz 1.1s cubic-bezier(.55, .1, .3, 1) forwards, sondur .4s ease 1.2s forwards;
}
@keyframes ciz { to { stroke-dashoffset: 0; } }
@keyframes sondur { to { opacity: 0; } }
@keyframes ac {
  from { clip-path: inset(0 0 100% 0); opacity: .2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Son hikâye kartı */
.story-card {
  width: 100%;
  max-width: 440px;
  margin-top: 26px;
  padding: 16px 14px 18px;
  background: #fbf4e4;
  border: 1px solid #d8bf86;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px #fbf4e4, inset 0 0 0 5px rgba(185, 139, 53, .45);
}
.eyebrow { margin: 0 0 10px; font-style: italic; font-size: 17px; color: var(--navy-soft); }
.story-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.player { position: relative; width: 100%; max-width: 250px; aspect-ratio: 9 / 16; border-radius: 4px; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 1.5px var(--gold), 0 12px 30px -16px rgba(22, 38, 77, .55); }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.unmute {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  font: inherit; font-size: 15.5px; font-weight: 500; color: #fbf3e2; white-space: nowrap;
  background: rgba(22, 38, 77, .86); border: 1px solid var(--gold-light); border-radius: 999px; cursor: pointer;
}
.unmute svg, .listen svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.story-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.story-side h2 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.15; }
.story-side h2 a { color: var(--ink); text-decoration: none; }
.hikmet {
  margin: 0; padding: 0 6px;
  font-style: italic; font-size: 19px; line-height: 1.45; color: var(--navy);
  text-wrap: balance;
}
.hikmet::before { content: "“"; color: var(--gold); }
.hikmet::after { content: "”"; color: var(--gold); }
.listen {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--navy);
  background: #fffaf0; border: 1.5px solid var(--gold); border-radius: 999px; cursor: pointer;
}
.listen[aria-pressed="true"] { background: var(--navy); color: #fbf3e2; border-color: var(--navy); }
.links { margin: 0; font-size: 15.5px; color: var(--muted); }
.links a, .crumb a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 2px; }

/* Hikâye sayfası */
.story .inner h1, .archive .inner h1 { margin-top: 4px; }
.crumb { margin: 0; font-size: 15.5px; font-style: italic; }
.player-page { max-width: 300px; margin: 18px 0 14px; }
.story-text { max-width: 30em; margin-top: 14px; text-align: left; }
.story-text p { margin: 0 0 12px; font-size: 19px; line-height: 1.6; }
.story-text p:first-child::first-letter { float: left; font-size: 3.1em; line-height: .9; padding: 4px 8px 0 0; color: var(--navy); font-weight: 500; }
.story .hikmet { margin-top: 6px; }
.soru {
  margin: 14px 0 0; padding: 12px 16px;
  font-size: 20px; font-weight: 500; color: var(--navy);
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}

/* Arşiv kartları */
.tcards { list-style: none; margin: 20px 0 0; padding: 0; width: 100%; display: grid; gap: 12px; }
.tcard {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; text-align: left; text-decoration: none; color: var(--ink);
  background: #fbf4e4; border: 1px solid #d8bf86; border-radius: 6px;
  box-shadow: inset 0 0 0 3px #fbf4e4, inset 0 0 0 4px rgba(185, 139, 53, .4);
  transition: border-color .15s, transform .15s;
}
.tcard:hover { border-color: var(--navy); transform: translateY(-1px); }
.tcard img { width: 72px; height: 128px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--gold); flex: none; }
.tcard-text { display: flex; flex-direction: column; gap: 4px; }
.tcard-title { font-size: 22px; font-weight: 500; color: var(--navy); }
.tcard-desc { font-size: 16px; font-style: italic; color: var(--muted); line-height: 1.4; }

@media (min-width: 640px) {
  .emblem { width: 168px; height: 168px; }
  .story-grid { flex-direction: row; align-items: center; gap: 22px; }
  .story-card .player { width: 210px; flex: none; }
  .story-side { align-items: flex-start; text-align: left; }
  .hikmet { padding: 0; }
  .player-page { max-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .cizim, .ring { display: none; }
  .emblem .logo { animation: none; }
}
