/* ─────────────────────────────────────────────
   Taştan Düş Yaratmak — design system
   ───────────────────────────────────────────── */

:root {
  /* Palette — dusty paper, soot, faded inks */
  --cream:        #f4ede0;
  --paper:        #ebe3d3;
  --paper-warm:   #e8dec7;
  --paper-edge:   #d4c8ac;
  --soot:         #1a1614;
  --ink:          #2a2521;
  --ink-soft:     #4a4137;
  --plum:         #3d1f2f;
  --navy:         #1f2a3d;
  --photo-grey:   #6d6862;
  --accent:       #7d4e3a;
  --accent-faint: #b59879;
  --rule:         rgba(26, 22, 20, 0.14);

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --measure: 62ch;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 8rem);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Subtle paper grain — pure CSS, no images */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(60, 45, 30, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(60, 45, 30, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* ─── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--soot);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.45;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}
em, .italic { font-style: italic; }

/* ─── Layout ────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.wrap--narrow { max-width: 760px; }

section { padding-block: var(--section); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ─── Header / Nav ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(235, 227, 211, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--soot);
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-top: 0.15rem;
}
.nav-mini {
  display: flex; gap: 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.nav-mini a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav-mini { display: none; }
}

/* ─── Hero ──────────────────────────────────── */
.hero {
  padding-block: clamp(5rem, 14vw, 10rem) clamp(3rem, 8vw, 6rem);
  text-align: center;
}
.hero h1 {
  font-style: italic;
  font-weight: 400;
}
.hero .lede {
  margin: 1.5rem auto 0;
  max-width: 48ch;
}
.hero-mark {
  width: 64px; height: 1px;
  background: var(--accent-faint);
  margin: 0 auto 2.5rem;
}

/* Scroll cue */
.scroll-cue {
  display: block;
  margin: 4rem auto 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--photo-grey);
  text-align: center;
}
.scroll-cue::after {
  content: ""; display: block;
  width: 1px; height: 48px;
  margin: 1rem auto 0;
  background: linear-gradient(to bottom, var(--photo-grey), transparent);
}

/* ─── Theme grid (5 series themes) ──────────── */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.theme {
  background: var(--paper);
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.45s ease, transform 0.45s ease;
  position: relative;
}
.theme:hover { background: var(--paper-warm); }
.theme--active { cursor: pointer; }
.theme--soon {
  color: var(--photo-grey);
  background: var(--paper);
  opacity: 0.55;
}
.theme--soon:hover { background: var(--paper); }
.theme h2 {
  font-style: italic;
  margin-bottom: 0.4em;
}
.theme p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.theme .theme-meta {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.theme--soon .theme-meta { color: var(--photo-grey); }

/* ─── Room cards (under Edebiyat) ───────────── */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.room {
  display: block;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}
.room:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(26, 22, 20, 0.35);
}
.room-figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-edge);
}
.room-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.02);
  transition: transform 1.2s ease;
}
.room:hover .room-figure img { transform: scale(1.04); }
.room-body { padding: 1.5rem 1.5rem 1.75rem; }
.room-body h3 { margin-bottom: 0.35em; }
.room-body p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ─── Archive room hero ─────────────────────── */
.room-hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.room-hero .qr-card {
  max-width: 380px;
  margin: 0 auto 3rem;
  filter: drop-shadow(0 24px 50px rgba(26, 22, 20, 0.25));
  border-radius: 2px;
}
.room-hero h1 { font-style: italic; }
.room-hero .lede { margin: 1.25rem auto 0; }

/* ─── Gallery ───────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.gallery figure {
  margin: 0;
  background: var(--paper-warm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.gallery figure:hover img {
  transform: scale(1.03);
  filter: sepia(0) contrast(1.05);
}

/* Empty-state placeholder (before archive is populated) */
.gallery-placeholder {
  border: 1px dashed var(--paper-edge);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--photo-grey);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-top: 2.5rem;
  background:
    repeating-linear-gradient(
      45deg,
      transparent, transparent 12px,
      rgba(125, 78, 58, 0.04) 12px, rgba(125, 78, 58, 0.04) 13px
    );
}

/* ─── Buttons / links ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  background: var(--soot);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--soot);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: transparent; color: var(--soot); }
.btn--ghost {
  background: transparent; color: var(--soot);
}
.btn--ghost:hover { background: var(--soot); color: var(--cream); }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: "←"; font-family: var(--serif); font-size: 1.2em; }

/* ─── Footer ────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
  font-size: 0.82rem;
  color: var(--photo-grey);
  text-align: center;
}
.site-footer p { margin: 0 auto; max-width: 48ch; }
.site-footer .colophon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* ─── Spotify embed ─────────────────────────── */
.spotify-frame {
  width: 100%;
  max-width: 640px;
  margin: 2.5rem auto 0;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  min-height: 380px;
  display: block;
}

/* ─── Utilities ─────────────────────────────── */
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.5rem 0;
  color: var(--photo-grey);
  font-family: var(--serif);
  font-style: italic;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

/* ─── Motion preferences ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
