/* the Muhit — themuhit.com
   Uygulamayla birebir marka: Cloud Dancer zemin, Cutive başlık, Playfair italik logotip,
   Lemon Icing fosforlu kalem vurgusu, yarım ton gazete kupürleri. */

:root {
  --bg: #F0EEE9;          /* Cloud Dancer */
  --paper: #FAF9F6;
  --ink: #0E0B06;
  --ink-soft: #35322E;
  --muted: #6E6B66;
  --line: #D5D5D8;
  --hl: #F6EBC8;          /* Lemon Icing */
  --hl-ink: #A3410E;
  --tape: rgba(246, 235, 200, 0.75);
  --radius: 22px;
  --gutter: clamp(18px, 5vw, 32px);
  --serif: "Cutive", "Courier New", Georgia, serif;
  --brand: "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hl-ink); }
:focus-visible { outline: 2px solid var(--hl-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--hl); color: var(--hl-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Logotip: markanın tek italik yeri. */
.brand { font-family: var(--brand); font-style: italic; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.wordmark { font-size: 26px; line-height: 1; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }

/* Fosforlu kalem: kelimelerin altına hafif eğik bir sarı darbe. */
.hl {
  position: relative; display: inline-block; color: var(--hl-ink);
  padding: 0 .16em; isolation: isolate; white-space: nowrap;
}
.hl::before {
  content: ""; position: absolute; z-index: -1;
  inset: .1em -.02em .02em -.04em;
  background: var(--hl);
  border-radius: .12em .28em .18em .32em / .3em .22em .34em .2em;
  transform: rotate(-.6deg) skewX(-4deg);
  transform-origin: left center;
}

/* Kupür: yarım ton fotoğraf keskin kenarlı kalır; üstünde yarı saydam bant. */
.clip { position: relative; margin: 0; }
.clip img { width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(14, 11, 6, .10)); }
.tape::after {
  content: ""; position: absolute; top: -9px; left: 50%;
  width: 92px; height: 26px; margin-left: -46px;
  background: var(--tape);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(14, 11, 6, .06);
  /* bant uçları yırtık */
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 98% 62%, 100% 100%, 2% 96%, 0 64%, 3% 34%);
}

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
  box-shadow: 0 1px 0 rgba(14, 11, 6, .08);
}
.btn:hover { color: var(--paper); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(14, 11, 6, .45); }
.btn:active { transform: translateY(0); }
.btn[aria-disabled="true"] { cursor: default; }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 11, 6, .15); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(14, 11, 6, .25), 0 10px 22px -12px rgba(14, 11, 6, .3); }
.btn .apple { width: 15px; height: 18px; margin-top: -2px; fill: currentColor; }

/* Yükleniş: başlık → alt metin → görsel, sırayla. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes swipe { from { transform: rotate(-.6deg) skewX(-4deg) scaleX(0); } to { transform: rotate(-.6deg) skewX(-4deg) scaleX(1); } }
.reveal { animation: rise .9s var(--ease) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .2s; }
.reveal-3 { animation-delay: .38s; }
.reveal-4 { animation-delay: .55s; }
.reveal .hl::before { animation: swipe .7s .55s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ana sayfa: tek ekran ---------- */
.home {
  min-height: 100vh; min-height: 100svh; height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) max(12px, env(safe-area-inset-bottom));
  overflow: hidden; position: relative;
}
.home__top { display: flex; justify-content: center; padding-top: 6px; }
.home__top .wordmark { font-size: clamp(22px, 3.2svh, 28px); }
.home__main {
  width: 100%; max-width: 620px; margin: 0 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  gap: clamp(8px, 2svh, 22px);
}
.headline {
  margin: 0; font-family: var(--serif); font-weight: 400; color: var(--ink);
  /* her ifade tek satır: genişlik ve yükseklikle ölçeklenir */
  font-size: clamp(22px, min(7.6vw, 6.4svh), 54px);
  line-height: 1.12; letter-spacing: -.01em;
  display: flex; flex-direction: column; gap: .08em;
}
.headline > span { white-space: nowrap; }
.headline__lead { align-self: flex-start; }
.headline__em { align-self: flex-end; }
.subline {
  margin: 0; text-align: center; color: var(--muted);
  font-size: clamp(14px, min(3.9vw, 2.3svh), 18px); line-height: 1.5;
}
.hero {
  margin: clamp(4px, 1.5svh, 18px) auto 0; width: 100%;
  display: flex; justify-content: center; min-height: 0;
}
.hero .clip { transform: rotate(-2.5deg); width: min(100%, calc(42svh * 1.731)); }
.hero .tape::after { left: 58%; top: -6px; transform: rotate(3deg); }
.cta { display: flex; justify-content: center; padding-top: clamp(8px, 2svh, 22px); }
.cta .btn { min-width: min(100%, 300px); }
@media (max-width: 599px) {
  .hero .clip { width: calc(100% + 16px); margin: 0 -8px; }
  .cta .btn { width: 100%; max-width: 420px; }
}
.home__foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 14px; font-size: 13px; color: var(--muted); padding-top: 10px;
}
.home__foot nav { display: flex; gap: 6px; align-items: center; }
.home__foot a { color: var(--muted); text-decoration: none; }
.home__foot a:hover { color: var(--ink); text-decoration: underline; }
.dot { color: var(--line); }
.cities { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--ink-soft); }

/* Masaüstü kolajı: yanlarda eğik kupürler (yalnız geniş ekranda). */
.collage { display: none; }
@media (min-width: 1080px) and (min-height: 640px) {
  .collage { display: block; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
  .collage .clip { position: absolute; width: clamp(150px, 15vw, 230px); }
  .collage .c1 { left: 5vw; top: 22svh; transform: rotate(-6deg); }
  .collage .c2 { right: 5vw; top: 16svh; transform: rotate(5deg); width: clamp(160px, 16vw, 250px); }
  .collage .c3 { right: 10vw; bottom: 8svh; width: 110px; transform: rotate(-3deg); opacity: .9; }
  .collage .c1 img, .collage .c2 img { opacity: .96; }
  .collage .reveal { animation-delay: .7s; }
}

/* ---------- İç sayfalar ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page__top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 760px; width: 100%; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 8px;
}
.page__top .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.page__top .back:hover { color: var(--ink); }
.page__main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px var(--gutter) 40px; }
.page__foot {
  max-width: 760px; width: 100%; margin: 0 auto; padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between;
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
}
.page__foot nav { display: flex; gap: 6px; flex-wrap: wrap; }
.page__foot a { color: var(--muted); text-decoration: none; }
.page__foot a:hover { color: var(--ink); text-decoration: underline; }

.title {
  font-family: var(--serif); font-weight: 400; margin: 0 0 10px;
  font-size: clamp(30px, 7vw, 46px); line-height: 1.15; letter-spacing: -.01em;
}
.lede { color: var(--ink-soft); margin: 0 0 24px; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.card {
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid rgba(213, 213, 216, .7);
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 1px 0 rgba(14, 11, 6, .03), 0 20px 40px -32px rgba(14, 11, 6, .35);
}

.prose { color: var(--ink-soft); font-size: 16px; }
.prose h2 {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: 22px; line-height: 1.3; margin: 34px 0 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; color: var(--ink); margin: 20px 0 4px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note {
  background: var(--hl); color: var(--ink-soft); border-radius: 14px;
  padding: 12px 14px; font-size: 15px; margin: 12px 0 16px;
}

.head-art { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.head-art .clip { width: 96px; flex: none; transform: rotate(-4deg); }
.head-art .clip.tape::after { width: 54px; height: 18px; margin-left: -27px; top: -6px; }

/* ---------- Davet / plan ---------- */
.center { text-align: center; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.art { width: clamp(120px, 34vw, 168px); margin: 8px auto 4px; }
.invite-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 7vw, 40px); line-height: 1.2; margin: 0; }
.invite-title .who { white-space: normal; }
.actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin: 10px auto 0; }
.actions .btn { width: 100%; }
.soon { font-size: 13px; color: var(--muted); margin: 2px 0 0; }

.plan-card { text-align: left; }
.plan-card .eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.plan-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 7vw, 38px); line-height: 1.2; margin: 0 0 14px; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.facts b { font-weight: 500; color: var(--muted); font-size: 13px; padding-top: 1px; }
.plan-note { font-style: normal; color: var(--ink-soft); border-left: 2px solid var(--hl); padding: 2px 0 2px 12px; margin: 0 0 16px; }
.goers { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.goers h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 10px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.chips li { background: var(--bg); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--ink); }
.chips li.me { background: var(--hl); color: var(--hl-ink); }
.counts { font-size: 13px; color: var(--muted); margin: 0; }

.rsvp { margin-top: 18px; }
.rsvp h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 4px; }
.rsvp p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.field input {
  font: 16px var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid transparent; border-radius: 14px; padding: 13px 14px; min-height: 48px;
  transition: border-color .2s, background-color .2s;
}
.field input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answers .btn { min-height: 48px; padding: 0 8px; font-size: 15px; }
.answers .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.answers .btn--ghost[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.status.err { color: var(--hl-ink); }
.loading { color: var(--muted); font-size: 15px; padding: 40px 0; text-align: center; }
.loading::after { content: "…"; }
[hidden] { display: none !important; }

@media (min-width: 720px) {
  .actions { flex-direction: row; max-width: 440px; }
}
