/* Varsayılanlar; asıl değerler panelin Tasarım sekmesinden gelir (<style id="design-vars">) */
:root {
  --bg: #f7f3ee;
  --card: #fffdfa;
  --ink: #2b2620;
  --muted: #7a6f63;
  --accent: #9c7c5c;
  --line: #e6ddd2;
  --hero-ink: #ffffff;
  --hero-shade: #14100c;
  --hero-bg1: #b9a58f;
  --hero-bg2: #2e2620;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --amp-font: var(--display);
  --names-scale: 1;
  --names-spacing: .06em;
  --subtitle-spacing: .6em;
  --hero-h: 100svh;
  --radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.upper { text-transform: uppercase; }

.preview-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: #2b2620; color: #fff; text-align: center;
  font: 500 13px/1 system-ui, sans-serif; padding: 10px 16px;
}
.preview-bar a { color: #e9cfa9; margin-left: 8px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: var(--hero-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--hero-ink);
  background: radial-gradient(120% 90% at 50% 30%, var(--hero-bg1) 0%, var(--hero-bg2) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero[data-valign="top"] { align-items: start; }
.hero[data-valign="bottom"] { align-items: end; }
.hero[data-align="left"] { text-align: left; }
.hero[data-align="right"] { text-align: right; }
.hero[data-align="left"] .countdown { justify-content: flex-start; }
.hero[data-align="right"] .countdown { justify-content: flex-end; }

.hero-shade { position: absolute; inset: 0; background: var(--hero-shade); opacity: var(--shade, .4); }
.hero-inner { position: relative; padding: 96px clamp(16px, 6vw, 72px) 120px; width: 100%; max-width: 1180px; }

.names {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: var(--names-spacing);
  font-size: calc(clamp(34px, 7.2vw, 92px) * var(--names-scale));
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.names span { display: inline-block; }
.amp { font-family: var(--amp-font); }
.names .amp { margin: 0 .25em; }

.subtitle {
  margin: .9em 0 0;
  font: 500 clamp(13px, 1.6vw, 20px)/1.3 var(--sans);
  letter-spacing: var(--subtitle-spacing);
}
/* Ortalı metinde harf aralığı sağa kaydırmasın */
.hero[data-align="center"] .subtitle { padding-left: var(--subtitle-spacing); }
.date {
  margin: 2.2em 0 0;
  font: 400 clamp(14px, 1.5vw, 18px)/1 var(--sans);
  letter-spacing: .35em;
}
.hero[data-align="center"] .date { padding-left: .35em; }

.countdown {
  display: flex; justify-content: center; gap: clamp(12px, 3vw, 40px);
  margin-top: 28px;
}
.countdown div { min-width: 64px; }
.countdown b {
  display: block;
  font: 400 clamp(30px, 4.5vw, 52px)/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block; margin-top: 8px;
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .85;
}
.countdown-done { font-style: italic; font-size: 22px; margin-top: 24px; }

.hero-footer {
  position: absolute; left: 0; right: 0; bottom: 64px; margin: 0; text-align: center;
  font: 500 clamp(11px, 1.2vw, 15px)/1 var(--sans);
  text-transform: uppercase; letter-spacing: .5em; padding-left: .5em;
}
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  opacity: .8; animation: nudge 2s infinite;
}
@keyframes nudge { 50% { transform: translateY(6px) rotate(45deg); } }

/* ---------- sections ---------- */
main { display: flex; flex-direction: column; }
.section { width: 100%; max-width: 980px; margin: 0 auto; padding: 88px 16px; text-align: center; }
.section ~ .section:not([hidden]) { border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 18px;
  font: 500 12px/1.4 var(--sans); letter-spacing: .45em; text-transform: uppercase; color: var(--accent);
}
.big-date { margin: 0; font: 400 clamp(32px, 5vw, 54px)/1.15 var(--display); }
.muted { color: var(--muted); }
.lead { max-width: 620px; margin: 24px auto 0; font-size: 23px; font-style: italic; }

.story { display: grid; gap: 40px; text-align: left; align-items: center; }
.story.has-image { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.story img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.story p { margin: 0 0 1em; }
.story:not(.has-image) { text-align: center; max-width: 720px; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.event {
  background: var(--card); border: 1px solid var(--line); padding: 32px 24px; border-radius: var(--radius);
}
.event h3 { margin: 0 0 10px; font: 500 30px/1.2 var(--serif); }
.event p { margin: 4px 0; }
.event .when { font: 500 13px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.event .venue { font-size: 22px; }
.btn {
  display: inline-block; margin-top: 18px; padding: 11px 22px;
  border: 1px solid var(--ink); text-decoration: none; border-radius: var(--radius);
  font: 500 12px/1 var(--sans); letter-spacing: .25em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }

.gallery { columns: 3 200px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; }
.gallery img { width: 100%; transition: opacity .2s; border-radius: var(--radius); }
.gallery a:hover img { opacity: .85; }

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  background: rgba(12, 10, 8, .92);
  animation: lb-in .18s ease-out;
}
.lightbox[hidden], .lightbox button[hidden] { display: none; }
.lightbox img {
  grid-column: 2; justify-self: center;
  max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox button {
  border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font: 300 32px/1 system-ui, sans-serif;
  display: grid; place-items: center; margin: 0 16px; transition: background .15s;
}
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; margin: 0; }
.lightbox .lb-prev { grid-column: 1; }
.lightbox .lb-next { grid-column: 3; }
.lightbox .lb-count {
  position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center;
  color: rgba(255, 255, 255, .7); font: 500 13px/1 system-ui, sans-serif; letter-spacing: .1em;
}
html.lb-open { overflow: hidden; }
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 720px) {
  .lightbox button { width: 40px; height: 40px; font-size: 26px; margin: 0 4px; }
  .lightbox .lb-prev, .lightbox .lb-next { background: transparent; }
}

.footer { text-align: center; padding: 64px 16px 80px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }
.footer .sign { font: 400 30px/1.4 var(--display); }

@media (max-width: 720px) {
  body { font-size: 18px; }
  .story.has-image { grid-template-columns: 1fr; }
  .names span { display: block; }
  .names .amp { margin: .1em 0; }
  .countdown div { min-width: 0; }
  .hero-footer { letter-spacing: .3em; padding-left: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint { animation: none; }
}
