/* ===========================================================================
   Kardelen & Mehmet Alp — kardelenalp.com
   Onaylanan v3 tasarımının üretim stili.

   Değerler tasarım kaynağından (design/build.py) birebir taşınmıştır:
   palet, tipografi ölçeği, boşluklar ve sulu boya çizimlerin her kırılma
   noktasındaki konumları. Yeni renk veya ölçü uydurulmamıştır.

   Yerleşim mobil öncelikli kurulur:
     taban  ≤359  dar telefon  — yalnızca ince sürgün
     360+         375 kadrajı  — üst yay dar
     390+         ana kadraj   — üst yay + sol alt karşı ağırlık
     415+         430 kadrajı  — sağ üstten sarkan dal (farklı çizim)
     768+         tablet       — basılı menünün pahlı köşeli çerçevesi
     1200+        masaüstü     — çerçeve en net, dört köşe çizimi taşar
   ======================================================================== */

/* --------------------------------------------------------------- jetonlar */
:root {
  --ivory:      #F6F1E8;
  --ivory-deep: #EFE9DC;
  --green:      #30452D;
  --green-lift: #3C5537;
  --olive:      #61704A;
  --sage:       #8D9A72;
  --line:       #D5CCB8;
  --line-soft:  #E3DACA;
  --muted:      #8E8A76;
  --mandarin:   #C97633;
  --ink:        #3B4C36;
  --dark:       #232821;

  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans:  'Jost', 'Avenir Next', system-ui, -apple-system, sans-serif;

  --tile: repeating-linear-gradient(135deg, #E9E3D5 0 5px, #F1ECE1 5px 10px);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ----------------------------------------------------------------- temel */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ivory);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ivory);
  color: var(--green);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a {
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
a:hover { color: var(--green); border-color: var(--sage); }

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 99;
  padding: 10px 16px;
  background: var(--green); color: var(--ivory);
  border: none;
  transition: top .18s ease;
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

/* ============================ sulu boya çizim katmanı ==================== */
/* Çizimler hiçbir zaman kart içine girmez, hiçbir zaman tıklamayı engellemez
   ve hiçbir zaman metnin okunmasını zorlaştırmaz.                           */

.art {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.art img {
  position: absolute;
  width: auto;
  height: auto;
  max-width: none;   /* çizimler bilerek viewport dışına taşar */
  display: none;                 /* her kırılma noktası kendi parçasını açar */
  user-select: none;
  -webkit-user-drag: none;
}

/* --- taban: dar telefon (≤359) — yalnızca ince sürgün ------------------- */
.art img.art__sprig {
  display: block;
  top: -104px; right: -72px;
  width: 190px;
  opacity: .6;
  transform: scaleY(-1);
}

/* --------------------------- ince yeşil köşe parçaları ------------------ */
/* Basılı menünün çerçevesi mobilde kutu değil, köşe işareti olarak yaşar.  */
.corners {
  position: fixed;
  inset: 14px;
  z-index: 1;
  pointer-events: none;
}
.corners span {
  position: absolute;
  background: var(--line-soft);
}
.corners span:nth-child(1) { top: 0; left: 0;  width: 18px; height: 1px; }
.corners span:nth-child(2) { top: 0; left: 0;  width: 1px;  height: 18px; }
.corners span:nth-child(3) { bottom: 0; right: 0; width: 18px; height: 1px; }
.corners span:nth-child(4) { bottom: 0; right: 0; width: 1px;  height: 18px; }

/* ================================ kabuk ================================= */
.frame-rule { display: none; }

.shell {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: calc(20px + var(--safe-top)) 26px calc(20px + var(--safe-bottom));
}

/* ============================== tipografi =============================== */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 400 8.5px/1 var(--sans);
  letter-spacing: .38em;
  color: var(--sage);
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: none;
  width: 20px; height: 1px;
  background: var(--line);
}

/* İsim dizgisi — üç satır, ortada tek başına swash ampersand.
   Dar ekranda iki satıra düşer (aşağıda .wordmark--tight).                 */
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-style: italic;
  font-weight: 400;
  font-family: var(--serif);
  color: var(--green);
  line-height: 1;
}
.wordmark span:first-child,
.wordmark span:last-child { font-size: 30px; }
.wordmark .amp { color: var(--olive); font-size: 17px; }

.lead {
  max-width: 236px;
  font: 400 15.5px/1.45 var(--serif);
  color: var(--ink);
  text-wrap: pretty;
}
.sub {
  max-width: 226px;
  font: 300 12px/1.6 var(--sans);
  color: var(--olive);
  text-wrap: pretty;
}
.section-title {
  font: 400 25px/1.2 var(--serif);
  color: var(--green);
}
.signature {
  font: italic 400 19px/1.2 var(--serif);
  color: var(--green);
}

/* =============================== eylemler =============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border: none;
  border-radius: 2px;
  background: var(--green);
  color: var(--ivory);
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  cursor: pointer;
  box-shadow: 0 12px 26px -16px rgba(48, 69, 45, .7);
  transition: background .22s ease, transform .16s ease;
}
.btn:hover { background: var(--green-lift); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.btn--tight {
  font-size: 12.5px;
  letter-spacing: .12em;
}

.btn--ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--green); color: var(--ivory); }

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  font: 400 15px/1 var(--serif);
  letter-spacing: .05em;
  color: var(--olive);
  cursor: pointer;
}
.link:hover { color: var(--green); border-color: var(--sage); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  background: none;
  border: none;
  font: 400 11px/1 var(--sans);
  letter-spacing: .2em;
  color: var(--sage);
  cursor: pointer;
}
.back:hover { color: var(--green); }

.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 300 10.5px/1 var(--sans);
  color: var(--sage);
}
.privacy {
  font: 300 10px/1.7 var(--sans);
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}
.privacy a { color: var(--muted); border-bottom-color: #D6CDBB; }

/* ============================ açılış / hero ============================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 98px;
}
.hero .wordmark { margin-top: 12px; }
.hero .lead { margin-top: 14px; }
.hero .sub  { margin-top: 10px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin: 18px auto 0;
}
.spacer { flex: 1; min-height: 8px; }

/* Menü altlığındaki yatay ayraç yalnızca geniş ekranda görünür. */
.hero .divider-art { display: none; width: 246px; height: auto; }

/* ======================== yükleme akışı ekranları ======================= */
.screen { display: none; flex-direction: column; flex: 1; }
.screen[data-active='1'] { display: flex; animation: fadeIn .3s ease; }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes bloom  { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }

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

/* --- seçildi -------------------------------------------------------------*/
.selected-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.selected-head h2 { font: 400 22px/1.22 var(--serif); }
.text-action {
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 4px 2px;
  font: 400 11px/1 var(--sans);
  letter-spacing: .16em;
  color: var(--olive);
  cursor: pointer;
  white-space: nowrap;
}
.text-action:hover { color: var(--green); }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--tile);
  border: 1px solid var(--line);
  overflow: hidden;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.thumb__tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 6px;
  font: 400 8px/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: .1em;
  color: #A9A08D;
  background: linear-gradient(rgba(246, 241, 232, 0), rgba(246, 241, 232, .9) 55%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumb__video {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 0; height: 0;
  border-left: 9px solid var(--green);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: .62;
}
.thumb__remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 44px; height: 44px;      /* 44px dokunma alanı, 26px görsel daire */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}
.thumb__remove span {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(48, 69, 45, .86);
  color: var(--ivory);
  font: 300 15px/1 var(--sans);
}
/* dosya durumu */
.thumb[data-status='done']::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--olive);
}
.thumb[data-status='error'] { border-color: var(--mandarin); }
.thumb[data-status='error']::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  width: 6px; height: 6px;
  background: var(--mandarin);
  transform: rotate(45deg);
}
.thumb__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  background: var(--olive);
  width: 0;
  transition: width .25s linear;
}

.field { margin-top: 26px; }
.field__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 400 11px/1 var(--sans);
  letter-spacing: .22em;
  color: var(--green);
}
.field__hint {
  font: 300 11px/1 var(--sans);
  letter-spacing: 0;
  color: var(--muted);
}
.field input {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  padding: 0 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font: 400 19px/1.2 var(--serif);
  color: var(--green);
  outline: none;
}
.field input::placeholder { color: #B6AE9B; }
.field input:focus { border-color: var(--olive); }

.sticky-action {
  position: sticky;
  bottom: 0;
  margin: 22px -26px 0;
  margin-top: auto;
  padding: 18px 26px calc(10px + var(--safe-bottom));
  background: linear-gradient(rgba(246, 241, 232, 0), var(--ivory) 34%);
}

/* --- yükleniyor ----------------------------------------------------------*/
.state-centre {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 8px;
}
.divider-art { opacity: .42; }
.progress-count {
  margin-top: 14px;
  font: 400 13px/1 var(--sans);
  letter-spacing: .24em;
  color: var(--olive);
}
.progress-rail {
  width: 100%;
  max-width: 238px;
  height: 2px;
  margin-top: 24px;
  background: var(--line-soft);
}
.progress-rail i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--olive);
  transition: width .3s linear;
}

/* --- kısmi hata ----------------------------------------------------------*/
.failure-card {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 2px;
}
.failure-card h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 400 24px/1.26 var(--serif);
}
.failure-card h2::before {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  background: var(--mandarin);
  transform: rotate(45deg);
}
.failure-tally {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font: 400 11.5px/1 var(--sans);
  letter-spacing: .1em;
  color: var(--sage);
}
.failure-tally i {
  width: 1px; height: 11px;
  background: var(--line);
}

/* --- tamamlandı ----------------------------------------------------------*/
.success-bloom { animation: bloom .9s cubic-bezier(.2, .8, .3, 1) both; }
.success h2 {
  margin-top: 10px;
  font: 400 30px/1.2 var(--serif);
  animation: fadeUp .5s ease .14s both;
}
.success p {
  max-width: 266px;
  margin-top: 15px;
  font: 400 18px/1.55 var(--serif);
  color: var(--ink);
  text-wrap: pretty;
  animation: fadeUp .5s ease .22s both;
}
.success .divider-art { margin-top: 20px; opacity: .6; animation: fadeUp .5s ease .28s both; }
.success .signature { margin-top: 4px; animation: fadeUp .5s ease .32s both; }
.success-actions {
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp .5s ease .38s both;
}

/* ================================ albüm ================================= */
.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.album-head .signature { font-size: 16px; }
.album-title { text-align: center; padding: 38px 4px 0; }
.album-title h1 { font: 400 30px/1.16 var(--serif); }
.album-meta {
  margin-top: 11px;
  font: 300 10px/1.4 var(--sans);
  letter-spacing: .22em;
  color: var(--sage);
}

.album-grid {
  columns: 2;
  column-gap: 8px;
  margin-top: 28px;
}
.album-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 8px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--tile);
  cursor: pointer;
  overflow: hidden;
}
.album-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.album-item__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  font: 400 9px/1.4 ui-monospace, Menlo, monospace;
  letter-spacing: .12em;
  color: #A9A08D;
  padding: 10px;
  text-align: center;
}
.album-item__video {
  position: absolute;
  bottom: 9px; right: 9px;
  width: 0; height: 0;
  border-left: 10px solid var(--green);
  border-top: 6.5px solid transparent;
  border-bottom: 6.5px solid transparent;
  opacity: .7;
}
.album-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 34px;
}
.album-foot .year {
  font: 300 10.5px/1 var(--sans);
  letter-spacing: .28em;
  color: var(--muted);
}

/* --- tam ekran görüntüleyici --------------------------------------------*/
.viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  background: var(--dark);
  color: #EDE7DB;
  animation: fadeIn .24s ease;
}
.viewer[data-open='1'] { display: flex; }
.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 18px 0;
}
.viewer__bar button {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #EDE7DB;
  cursor: pointer;
}
.viewer__count {
  font: 400 11.5px/1 var(--sans);
  letter-spacing: .22em;
  opacity: .68;
}
.viewer__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  min-height: 0;
}
.viewer__stage img,
.viewer__stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.viewer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px calc(24px + var(--safe-bottom));
  color: #C9C0AF;
}
.viewer__who { font: 300 11.5px/1 var(--sans); }
.viewer__foot a {
  color: #C9C0AF;
  font: 400 11px/1 var(--sans);
  letter-spacing: .18em;
  border-bottom-color: rgba(201, 192, 175, .5);
  padding-bottom: 3px;
}
.viewer__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #EDE7DB;
  opacity: .55;
  cursor: pointer;
}
.viewer__nav:hover { opacity: 1; }
.viewer__nav--prev { left: 0; }
.viewer__nav--next { right: 0; }

/* ============================ basit içerik ============================== */
.prose { max-width: 62ch; margin: 0 auto; }
.prose h1 { font: 400 30px/1.18 var(--serif); }
.prose h2 {
  margin-top: 30px;
  font: 400 20px/1.3 var(--serif);
}
.prose p, .prose li {
  margin-top: 12px;
  font: 300 14px/1.75 var(--sans);
  color: var(--ink);
  text-wrap: pretty;
}
.prose ul { margin-top: 12px; }
.prose li { position: relative; padding-left: 18px; }
.prose li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  background: var(--sage);
  transform: rotate(45deg);
}

.notice {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 2px;
  text-align: center;
}

/* ======================== 360+ · 375 kadrajı ============================ */
@media (min-width: 360px) {
  .art img.art__sprig { display: none; }
  .art img.art__banner {
    display: block;
    top: -24px; right: -124px;
    width: 540px;
  }
  .corners { inset: 16px; }
  .corners span:nth-child(1),
  .corners span:nth-child(3) { width: 24px; }
  .corners span:nth-child(2),
  .corners span:nth-child(4) { height: 24px; }
  .corners span { background: var(--line); }

  .shell { padding-left: 30px; padding-right: 30px; }
  .hero { padding-top: 138px; }
  .eyebrow { font-size: 9px; letter-spacing: .4em; }
  .eyebrow::before, .eyebrow::after { width: 26px; }
  .wordmark { gap: 7px; }
  .wordmark span:first-child, .wordmark span:last-child { font-size: 35px; }
  .wordmark .amp { font-size: 18px; }
  .lead { max-width: 288px; font-size: 18px; }
  .sub  { max-width: 268px; font-size: 12.5px; }
  .hero-actions { max-width: 320px; margin-top: 20px; gap: 11px; }
  .btn { min-height: 54px; font-size: 13px; }
  .note { font-size: 11px; }
  .privacy { font-size: 10.5px; }
}

/* ========================= 390+ · ana kadraj ============================ */
@media (min-width: 390px) {
  .art img.art__banner { top: -28px; right: -92px; width: 566px; }
  .art img.art__cornerOrange {
    display: block;
    bottom: -126px; left: -146px;
    width: 340px;
    opacity: .46;
    transform: rotate(-5deg);
  }
  .corners { inset: 18px; }
  .corners span:nth-child(1),
  .corners span:nth-child(3) { width: 26px; }
  .corners span:nth-child(2),
  .corners span:nth-child(4) { height: 26px; }

  .shell { padding-left: 34px; padding-right: 34px; }
  .hero { padding-top: 172px; }
  .eyebrow { font-size: 9.5px; letter-spacing: .42em; }
  .eyebrow::before, .eyebrow::after { width: 30px; }
  .wordmark { gap: 9px; margin-top: 18px; }
  .wordmark span:first-child, .wordmark span:last-child { font-size: 42px; }
  .wordmark .amp { font-size: 21px; }
  .lead { max-width: 300px; margin-top: 22px; font-size: 20px; line-height: 1.5; }
  .sub  { max-width: 282px; margin-top: 13px; font-size: 13.5px; line-height: 1.65; }
  .hero-actions { margin-top: 28px; gap: 13px; }
  .btn { min-height: 56px; font-size: 14px; }
  .note { font-size: 11.5px; }
  .privacy { font-size: 11px; }

  .section-title { font-size: 30px; }
  .selected-head h2 { font-size: 24px; }
  .success h2 { font-size: 33px; }
  .success p { font-size: 19px; }
  .album-title h1 { font-size: 32px; }
  .signature { font-size: 20px; }
}

/* ======================= 415+ · 430 kadrajı ============================= */
/* Bilerek farklı bir çizim: aynı kompozisyonun büyütülmüşü değil.         */
@media (min-width: 415px) {
  .art img.art__banner { display: none; }
  .art img.art__cornerOrange { display: none; }
  .art img.art__branch {
    display: block;
    top: -96px; right: -136px;
    width: 430px;
  }
  .art img.art__sprig {
    display: block;
    top: auto; right: auto;
    bottom: -92px; left: -104px;
    width: 260px;
    opacity: .4;
    transform: rotate(8deg);
  }
  .corners { inset: 20px; }
  .corners span:nth-child(1),
  .corners span:nth-child(3) { width: 28px; }
  .corners span:nth-child(2),
  .corners span:nth-child(4) { height: 28px; }

  .shell { padding-left: 38px; padding-right: 38px; }
  .hero { padding-top: 222px; }
  .eyebrow { font-size: 10px; letter-spacing: .44em; }
  .eyebrow::before, .eyebrow::after { width: 34px; }
  .wordmark { gap: 10px; margin-top: 20px; }
  .wordmark span:first-child, .wordmark span:last-child { font-size: 46px; }
  .wordmark .amp { font-size: 23px; }
  .lead { max-width: 322px; margin-top: 24px; font-size: 21px; }
  .sub  { max-width: 300px; margin-top: 14px; font-size: 14px; }
  .hero-actions { max-width: 340px; margin-top: 30px; }
  .btn { min-height: 58px; font-size: 14.5px; }

  .thumb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================== 768+ tablet ============================= */
@media (min-width: 768px) {
  .art img.art__branch { top: -92px; right: -126px; width: 420px; opacity: .9; }
  .art img.art__cornerFull {
    display: block;
    top: -116px; left: -140px;
    width: 470px;
    opacity: .95;
  }
  .art img.art__sprig { display: none; }
  .art img.art__divider {
    display: block;
    bottom: 76px; left: 50%;
    width: 300px;
    opacity: .3;
    transform: translateX(-50%);
  }
  .corners { display: none; }   /* burada çerçeve gerçek çizgiye dönüşür */

  .shell {
    align-items: center;
    justify-content: center;
    padding: calc(32px + var(--safe-top)) 40px calc(28px + var(--safe-bottom));
  }

  /* Basılı menünün pahlı köşeli ince yeşil çerçevesi */
  .framed {
    position: relative;
    width: min(552px, 100%);
    padding: 70px 62px;
  }
  .frame-rule {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  /* Kart dikeyde ortalanır; boşluk doldurucu burada devre dışı kalır. */
  .spacer { display: none; }
  .screen[data-active='1'] { justify-content: center; }

  /* Kamera yakalama masaüstünde anlamlı değil: dosya seçici zaten aynı işi
     yapıyor ve dikey alanı kart için serbest bırakıyoruz. */
  .hero-actions [data-act='camera'] { display: none; }

  .hero { padding-top: 0; }
  .eyebrow { font-size: 10.5px; letter-spacing: .46em; }
  .eyebrow::before, .eyebrow::after { width: 36px; }
  .wordmark { gap: 11px; margin-top: 22px; }
  .wordmark span:first-child, .wordmark span:last-child { font-size: 50px; }
  .wordmark .amp { font-size: 25px; }
  .lead { max-width: 378px; margin-top: 26px; font-size: 22px; }
  .sub  { max-width: 346px; margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .hero-actions { max-width: 380px; margin-top: 34px; gap: 14px; }
  .btn { font-size: 14px; }
  .note { font-size: 12px; }
  .privacy { font-size: 11.5px; }

  .flow { width: min(620px, 100%); margin-inline: auto; }
  .thumb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sticky-action { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

  .album-shell { width: min(1100px, 100%); margin-inline: auto; }
  .album-grid { columns: 3; column-gap: 12px; }
  .album-item { margin-bottom: 12px; }
  .album-title h1 { font-size: 40px; }
}

/* ============================ 1200+ masaüstü =========================== */
@media (min-width: 1200px) {
  .art img.art__cornerFull { top: -104px; left: -118px; width: 520px; opacity: 1; }
  .art img.art__branch { top: -104px; right: -116px; width: 540px; opacity: 1; }
  .art img.art__cornerOrange {
    display: block;
    top: auto; left: auto;
    bottom: -138px; right: -104px;
    width: 350px;
    opacity: .45;
    transform: scaleX(-1) rotate(4deg);
  }
  .art img.art__sprig {
    display: block;
    top: auto; right: auto;
    bottom: -118px; left: -96px;
    width: 300px;
    opacity: .34;
    transform: none;
  }
  .art img.art__divider { display: none; }

  .framed { width: min(660px, 100%); padding: 64px 74px; }
  .eyebrow { font-size: 11px; letter-spacing: .48em; }
  .eyebrow::before, .eyebrow::after { width: 40px; }
  .wordmark { gap: 13px; margin-top: 26px; }
  .wordmark span:first-child, .wordmark span:last-child { font-size: 60px; }
  .wordmark .amp { font-size: 30px; }
  .lead { max-width: 420px; margin-top: 32px; font-size: 25px; line-height: 1.48; }
  .sub  { max-width: 382px; margin-top: 16px; font-size: 15px; }
  .hero-actions { max-width: 420px; margin-top: 38px; gap: 15px; }
  .btn { font-size: 15px; }
  .hero .divider-art { display: block; margin-top: 28px; opacity: .62; }

  .album-grid { columns: 4; }
  .album-title h1 { font-size: 46px; }
  .thumb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------------
   Albüm ve gizlilik sayfalarında çizim yalnızca başlık çevresinde durur:
   ızgaraya girildiğinde fotoğraflar tek başına konuşmalı.
   ------------------------------------------------------------------------ */
.page-album .art img,
.page-privacy .art img,
.page-album-closed .art img { display: none; }

.page-album .art img.art__banner,
.page-album-closed .art img.art__banner,
.page-privacy .art img.art__banner {
  display: block;
  top: -74px; right: -130px;
  width: 470px;
  opacity: .3;
}
/* Başlık şeridi çizimin altından başlar: yaprak yazının üstüne binmesin. */
.page-album .shell { padding-top: calc(58px + var(--safe-top)); }
.page-album .corners,
.page-privacy .corners,
.page-album-closed .corners { display: none; }
.page-album .shell,
.page-privacy .shell,
.page-album-closed .shell { align-items: center; }
.page-album .art,
.page-privacy .art { position: absolute; height: 420px; inset: 0 0 auto; }

@media (min-width: 768px) {
  .page-album .art img.art__banner,
  .page-privacy .art img.art__banner,
  .page-album-closed .art img.art__banner {
    top: -84px; left: -116px; right: auto;
    width: 720px;
    opacity: .42;
    transform: scaleX(-1);
  }
}

/* Yükleme akışının işlevsel adımlarında botanik yoğunluğu düşer.
   Hata ekranında çizim hiç yoktur.                                        */
.page-upload[data-state='selected'] .art img,
.page-upload[data-state='progress'] .art img,
.page-upload[data-state='partial'] .art img,
.page-upload[data-state='success'] .art img { display: none; }

.page-upload[data-state='selected'] .art img.art__blossom {
  display: block;
  top: -46px; right: -52px;
  width: 148px;
  opacity: .26;
}
.page-upload[data-state='progress'] .corners span,
.page-upload[data-state='partial'] .corners span { background: var(--line-soft); }
.page-upload[data-state='success'] .corners span { background: var(--line); }
