/* ==========================================================
   Melikşah Alkan — site stylesheet
   Renkler, fontlar ve ölçüler en üstteki değişkenlerden yönetilir.
   ========================================================== */

:root {
  --bg: #ece6dc;
  --surface: #f4efe7;
  --text: #1a1611;
  --dim: #6f6558;
  --accent: #8a5a3b;
  --border: rgba(138, 90, 59, .22);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, serif;

  --nav-h: 76px;
  --wrap: 1080px;
  --grain-opacity: .045;
  --grain-blend: multiply;
}

[data-theme="dark"] {
  --bg: #111010;
  --surface: #181716;
  --text: #e9e4dc;
  --dim: #a9a196;
  --accent: #c9a26f;
  --border: rgba(201, 162, 111, .2);
  --grain-opacity: .03;
  --grain-blend: overlay;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}

/* ince kâğıt dokusu */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

main { flex: 1; padding-top: var(--nav-h); }

/* ---------- Üst menü ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.nav-links { display: flex; gap: clamp(18px, 2.6vw, 36px); list-style: none; }

.nav-links a {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
}

.nav-tools { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); cursor: pointer;
  transition: border-color .25s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 16px; height: 1px; background: currentColor; margin: 2px 0; transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Mobil yan panel ---------- */
.overlay {
  position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 60;
}
.overlay.active { opacity: 1; pointer-events: auto; }

.side-panel {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 36px;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 70;
  overflow-y: auto;
}
.side-panel.open { transform: none; }
.side-panel nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 6px 0;
  color: var(--dim);
}
.side-panel nav a.active, .side-panel nav a:hover { color: var(--text); }
.side-panel .sp-meta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .95rem; color: var(--dim); }

/* ---------- Genel düzen ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * clamp(20px, 5vw, 56px)); margin-inline: auto; }

.page-head { padding: clamp(56px, 9vw, 110px) 0 clamp(28px, 4vw, 48px); }
.eyebrow {
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
h3 { font-size: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--dim); max-width: 40ch; margin-top: 16px; }

.rule { height: 1px; background: var(--border); margin: 0; border: 0; }

section.block { padding: clamp(36px, 6vw, 72px) 0; }

.prose p + p { margin-top: 1.1em; }
.prose { max-width: 66ch; }

/* ---------- Ana sayfa ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: 48px;
}
.hero-text h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; }
.hero-text .role {
  margin-top: 22px;
  font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dim);
}
.hero-text .lead { margin-top: 28px; }
.hero-links { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }

.link-arrow {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
  transition: color .25s;
}
.link-arrow:hover { color: var(--accent); }

.frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  padding: 14px;
  background: var(--surface);
}
.frame img, .frame .placeholder { width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 12px, var(--border) 12px 13px);
  color: var(--dim); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Eserler / Etkinlikler listesi ---------- */
.list { list-style: none; border-top: 1px solid var(--border); }
.list > li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.list .meta { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 6px; }
.list .title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.2; }
.list .title em { font-style: italic; }
.list .detail { color: var(--dim); margin-top: 6px; }
.list .detail a { border-bottom: 1px solid var(--border); }
.list .detail a:hover { color: var(--accent); }

.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter button {
  font: inherit; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  background: none; color: var(--dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 16px; cursor: pointer;
}
.filter button.active, .filter button:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Galeri ---------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin-bottom: 18px; }
.gallery .placeholder { aspect-ratio: 4 / 3; border: 1px solid var(--border); }
.gallery figcaption { font-size: .85rem; color: var(--dim); margin-top: 8px; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-item .eyebrow { margin-bottom: 6px; }
.contact-item a { font-family: var(--font-display); font-size: 1.6rem; }
.contact-item a:hover { color: var(--accent); }

.social { display: flex; gap: 12px; }
.social a { width: 40px; height: 40px; }

/* ---------- Alt bilgi ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px clamp(20px, 5vw, 56px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}

/* ---------- Duyarlı (mobil) ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero .frame { max-width: 420px; order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .list > li { grid-template-columns: 1fr; gap: 6px; }
}
