:root {
  --bg: #FAFAF7;
  --text: #1F1B16;
  --text-soft: #6B6358;
  --accent: #B8945C;
  --gap: 0.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero .amp {
  font-family: "Apple Chancery", "Lucida Calligraphy", cursive;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0.3em;
}

.hero .date {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

main { padding: 0 1rem 2rem; max-width: 1200px; margin: 0 auto; }

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.gallery {
  column-count: 2;
  column-gap: var(--gap);
}

@media (min-width: 600px) {
  .gallery { column-count: 3; }
}

@media (min-width: 900px) {
  .gallery { column-count: 4; }
}

.cell {
  break-inside: avoid;
  margin-bottom: var(--gap);
  display: block;
  position: relative;
}

.cell a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.cell img,
.cell video {
  width: 100%;
  height: auto;
  display: block;
  background: #eee;
  transition: transform 250ms ease, filter 250ms ease;
}

.cell a:hover img,
.cell a:focus img {
  filter: brightness(1.05);
}

.cell .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.messages {
  max-width: 38rem;
  margin: 5rem auto 0;
  padding: 0 1rem;
}

.messages h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.message {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(31, 27, 22, 0.08);
}

.message:last-child {
  border-bottom: none;
}

.message p {
  font-size: 1.0625rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--text);
}

.message footer {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-style: normal;
}

.lightbox {
  border: none;
  background: rgba(0, 0, 0, 0.95);
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  color: white;
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.95); }

.lb-stage {
  width: 100%;
  height: calc(100% - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lb-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}

.lb-author {
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  color: white;
}

.lb-message {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close { top: 0.5rem; right: 0.5rem; font-size: 2.5rem; line-height: 1; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.cell a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .lb-prev, .lb-next { display: none; } /* mobilde swipe yeterli */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
