/* ============================================================
   Denge Ustası — Bir Teşekkür Mektubu
   Akan mektup + paragraf aralarında büyük açılan tablolar.
   ============================================================ */

:root {
  --bg:        #0c0a0e;
  --ink:       #efe6d3;
  --ink-soft:  #b8ad9c;
  --ink-faint: #6f675d;

  --gold:   #d9a441;
  --teal:   #2f9a92;
  --rose:   #c2417a;
  --orange: #e2612f;
  --violet: #8a6fc0;

  --readw: 700px;

  --serif-display: "Fraunces", Georgia, serif;
  --serif-body: "Newsreader", Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #1a1206; }

.overline {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
em { font-style: italic; color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__mesh {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(38% 44% at 18% 22%, rgba(47,154,146,.55), transparent 60%),
    radial-gradient(34% 40% at 82% 18%, rgba(217,164,65,.45), transparent 60%),
    radial-gradient(46% 50% at 72% 82%, rgba(194,65,122,.42), transparent 62%),
    radial-gradient(40% 46% at 22% 84%, rgba(226,97,47,.38), transparent 60%);
  filter: blur(30px) saturate(115%);
  animation: drift 26s var(--ease) infinite alternate;
}
@keyframes drift {
  0%   { transform: scale(1) translate(0,0) rotate(0deg); }
  50%  { transform: scale(1.12) translate(2%, -1.5%) rotate(3deg); }
  100% { transform: scale(1.05) translate(-2%, 2%) rotate(-2deg); }
}
.hero__grain, .creed__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, var(--bg) 92%);
}
.hero__inner { padding: 0 1.2rem; }
.hero__title {
  font-family: var(--serif-display);
  font-weight: 300;
  font-size: clamp(4rem, 17vw, 12rem);
  line-height: .92;
  letter-spacing: -.02em;
  margin: .3rem 0 0;
  display: flex; flex-direction: column;
}
.hero__title span { display: block; }
.hero__title--em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--gold), var(--rose) 55%, var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-family: var(--serif-body); font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--ink-soft); margin: 1.6rem 0 0; letter-spacing: .01em;
}
.hero__scroll { position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); }
.hero__scroll span {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollpulse 2.4s ease-in-out infinite; transform-origin: top;
}
@keyframes scrollpulse {
  0%,100% { transform: scaleY(.4); opacity: .4; }
  50%     { transform: scaleY(1);  opacity: 1; }
}

/* ============================================================
   PROSE (mektup metni)
   ============================================================ */
.prose {
  max-width: var(--readw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.4rem, 6vw, 2rem);
}
.prose p { margin: 0 0 1.9rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose p em { color: var(--ink); }

.lead {
  font-family: var(--serif-display);
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.22;
  font-weight: 300;
  color: var(--ink) !important;
  margin-bottom: 2.4rem !important;
}

.prose--center { text-align: center; }

/* Elimden çıkanlar kapısı */
.gate { padding-top: clamp(5rem, 13vh, 9rem); }
.gate__title {
  font-family: var(--serif-display);
  font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: .5rem 0 0; letter-spacing: -.015em; color: var(--ink);
}
.gate__note {
  font-family: var(--serif-body); font-style: italic;
  color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 1.1rem 0 0 !important;
}

/* Ara sözler */
.interlude {
  font-family: var(--serif-display);
  font-style: italic; font-weight: 300;
  text-align: center;
  color: var(--ink);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.3;
  max-width: 22ch;
  margin: clamp(3rem, 8vh, 6rem) auto;
  padding: 0 1.4rem;
}

/* ============================================================
   FELSEFE / CREED
   ============================================================ */
.creed {
  position: relative; isolation: isolate;
  max-width: 980px; margin: 0 auto; text-align: center;
  padding: clamp(4.5rem, 11vh, 8rem) clamp(1.4rem, 6vw, 2rem);
}
.creed__quote {
  font-family: var(--serif-display); font-weight: 300;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.12; letter-spacing: -.015em;
  margin: 0 auto; max-width: 16ch;
}
.creed__hl { font-style: italic; font-weight: 500; color: var(--gold); }
.creed__body {
  max-width: 56ch; margin: 2.6rem auto 0; color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

/* ============================================================
   ÜÇ KELİME
   ============================================================ */
.triad {
  max-width: var(--readw); margin: 0 auto;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.4rem, 6vw, 2rem) clamp(3.5rem, 9vh, 6rem);
}
.triad__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(239,230,211,.14);
  border-bottom: 1px solid rgba(239,230,211,.14);
}
.triad__grid li {
  padding: clamp(2rem, 5vw, 3.2rem) .4rem; text-align: center;
  border-left: 1px solid rgba(239,230,211,.08);
}
.triad__grid li:first-child { border-left: none; }
.triad__num {
  display: block; font-family: var(--serif-body); font-style: italic;
  font-size: .8rem; letter-spacing: .3em; color: var(--gold); margin-bottom: 1rem;
}
.triad__word {
  font-family: var(--serif-display); font-weight: 300;
  font-size: clamp(1.25rem, 3.2vw, 2.2rem); letter-spacing: -.01em;
}

/* ============================================================
   PLATE (büyük tablolar)
   ============================================================ */
.plate {
  margin: clamp(3rem, 9vh, 7.5rem) auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cap {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  text-align: center;
  max-width: 44ch;
  margin: 1.3rem auto 0;
  padding: 0 1.4rem;
  position: relative;
}
.cap::before {
  content: "";
  display: block;
  width: 34px; height: 1px;
  margin: 0 auto 1rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.plate img {
  border-radius: 3px;
  box-shadow: 0 34px 100px rgba(0,0,0,.62);
  outline: 1px solid rgba(217,164,65,.16);
  outline-offset: -1px;
}
/* Kare / yatay tablolar: ekranı boydan boya doldurur */
.plate--wide { padding: 0; }
.plate--wide img {
  width: 100%; max-width: 100%; height: auto;
  border-radius: 0; outline: none;
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
/* Dikey tablolar: mümkün olduğunca büyük ve geniş */
.plate--tall img { width: min(960px, 94vw); height: auto; max-height: none; }

/* ============================================================
   KAPANIŞ
   ============================================================ */
.closing {
  position: relative; text-align: center; isolation: isolate; overflow: hidden;
  padding: clamp(7rem, 18vh, 12rem) clamp(1.4rem, 6vw, 4rem);
}
.closing__mesh {
  position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(194,65,122,.30), transparent 60%),
    radial-gradient(44% 52% at 74% 62%, rgba(47,154,146,.26), transparent 62%),
    radial-gradient(40% 46% at 60% 20%, rgba(217,164,65,.24), transparent 60%);
  filter: blur(46px); animation: drift 30s var(--ease) infinite alternate;
}
.closing__text {
  font-family: var(--serif-body); font-style: italic; color: var(--ink-soft);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.7; margin: 0 0 1.8rem;
}
.closing__sign {
  font-family: var(--serif-display); font-weight: 300;
  font-size: clamp(1.9rem, 6vw, 4rem); line-height: 1.2; margin: 0; letter-spacing: -.015em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: clamp(3rem, 8vh, 5rem) 1.4rem 3.4rem;
  border-top: 1px solid rgba(239,230,211,.08);
}
.foot__note {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 48ch;
  margin: 0 auto .9rem;
  line-height: 1.6;
}
.foot__link {
  color: var(--ink-faint);
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  max-width: 52ch;
  margin: 0 auto 2.4rem;
  line-height: 1.6;
}
.foot__link a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,164,65,.4);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.foot__link a:hover { color: #f0c56a; border-color: var(--gold); }
.foot__base {
  color: var(--ink-faint);
  font-size: .8rem;
  letter-spacing: .14em;
  margin: 0;
}

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mesh, .closing__mesh, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 900px) {
  .creed__quote { max-width: 15ch; }
  .plate--tall img { width: min(680px, 92vw); }
}

/* ============================================================
   MOBİL (telefon)
   ============================================================ */
@media (max-width: 640px) {
  /* Genel okunurluk */
  body { font-size: 1.1rem; line-height: 1.75; }
  .overline { letter-spacing: .24em; font-size: .72rem; }

  /* Hero */
  .hero__title { font-size: clamp(3.6rem, 22vw, 6.5rem); }
  .hero__sub { font-size: 1.15rem; margin-top: 1.2rem; }
  .hero__scroll { bottom: 1.8rem; }
  .hero__mesh { filter: blur(24px) saturate(115%); }

  /* Metin blokları */
  .prose { padding: clamp(2.8rem, 8vh, 4.5rem) 1.4rem; }
  .prose p { margin-bottom: 1.6rem; }
  .lead { font-size: clamp(1.65rem, 8.5vw, 2.3rem); margin-bottom: 1.9rem !important; }

  /* Üç kelime alt alta */
  .triad { padding: 1.5rem 1.4rem 3rem; }
  .triad__grid { grid-template-columns: 1fr; }
  .triad__grid li { border-left: none; border-top: 1px solid rgba(239,230,211,.08); padding: 1.7rem .4rem; }
  .triad__grid li:first-child { border-top: none; }
  .triad__word { font-size: 1.8rem; }

  /* Felsefe */
  .creed { padding: clamp(3.5rem, 10vh, 6rem) 1.4rem; }
  .creed__quote { font-size: clamp(1.95rem, 9.5vw, 2.9rem); max-width: 13ch; line-height: 1.15; }
  .creed__body { font-size: 1.06rem; margin-top: 2rem; }

  /* Tablolar — kocaman ve kenara yakın */
  .plate { margin: clamp(2.4rem, 7vh, 4rem) auto; padding: 0 .7rem; }
  .plate--wide { padding: 0; }
  .plate--tall img { width: 94vw; }
  .plate img { box-shadow: 0 18px 50px rgba(0,0,0,.55); }
  .cap { font-size: 1.05rem; max-width: 34ch; padding: 0 1rem; margin-top: 1.15rem; }
  .cap::before { margin-bottom: .85rem; }

  /* Ara sözler */
  .interlude { font-size: clamp(1.4rem, 7.5vw, 2rem); max-width: 17ch; margin: clamp(2.6rem, 8vh, 4.5rem) auto; }

  /* Elimden çıkanlar */
  .gate { padding-top: clamp(4rem, 12vh, 6rem); }
  .gate__title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .gate__note { font-size: 1.08rem; }

  /* Kapanış */
  .closing { padding: clamp(5rem, 15vh, 8rem) 1.4rem; }
  .closing__text { font-size: 1.08rem; line-height: 1.7; }
  .closing__sign { font-size: clamp(1.75rem, 9vw, 2.7rem); }

  /* Alt bilgi */
  .foot { padding: clamp(2.6rem, 7vh, 4rem) 1.4rem 3rem; }
  .foot__note { font-size: 1.05rem; }
  .foot__link { font-size: 1rem; }
}

/* ============================================================
   KÜÇÜK TELEFON
   ============================================================ */
@media (max-width: 380px) {
  .hero__title { font-size: 3.3rem; }
  .lead { font-size: 1.55rem; }
  .creed__quote { font-size: 1.85rem; }
  .plate--tall img { width: 96vw; }
  .cap { font-size: 1rem; }
}

