/* Zaman Kapsülü — uçak postası teması.
   Çizgili kenar = mühürlü zarf, düz kâğıt = açılmış mektup.
   Sizin yazdıklarınız el yazısıyla (Caveat), uygulamanın sözleri Archivo ile. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/caveat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/caveat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --masa: #e6edf6;        /* uçak postası kâğıdı gibi soluk mavi */
  --zarf: #fcfdff;
  --kagit: #f3f7fc;
  --murekkep: #17223d;
  --soluk: #56627f;
  --kirmizi: #c7343f;
  --mavi: #22479a;
  --damga: #4b4f7c;
  --cizgi: #cad7e9;
  --sayfa-yazi: #17223d;
  --sayfa-soluk: #56627f;
  --el: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --yazi: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --golge: 0 1px 0 rgba(23, 34, 61, .06), 0 12px 26px -14px rgba(23, 34, 61, .38);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --masa: #0f1830;
    --sayfa-yazi: #dce5f2;
    --sayfa-soluk: #9aa8c4;
    --golge: 0 16px 32px -16px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--masa);
  color: var(--sayfa-yazi);
  font: 420 17px/1.55 var(--yazi);
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
           max(32px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

main { max-width: 34rem; margin: 0 auto; }
.yigin > * + * { margin-top: 18px; }

h1 { font-size: 2.125rem; line-height: 1.08; font-weight: 780; font-stretch: 116%; letter-spacing: -.012em; margin: 0 0 .3em; }
h2 { font-size: 1.3125rem; line-height: 1.22; font-weight: 700; font-stretch: 108%; margin: 0 0 .45em; }
h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 680; margin: 0 0 .35em; }
p { margin: 0 0 .85em; }
p:last-child { margin-bottom: 0; }
.soluk { color: var(--soluk); }
.not { color: var(--sayfa-soluk); font-size: .9375rem; }
.kucuk { font-size: .875rem; line-height: 1.45; }
.yukleniyor { color: var(--sayfa-soluk); padding: 40px 4px; }

/* ------------------------------------------------ yüzeyler */

.zarf {
  background: repeating-linear-gradient(135deg,
    var(--kirmizi) 0 16px, var(--zarf) 16px 24px, var(--mavi) 24px 40px, var(--zarf) 40px 48px);
  padding: 8px;
  border-radius: 9px;
  box-shadow: var(--golge);
  color: var(--murekkep);
}
.zarf > .ic { background: var(--zarf); border-radius: 3px; padding: 22px 20px 24px; position: relative; }

.kagit {
  background: var(--kagit);
  color: var(--murekkep);
  border-radius: 6px;
  padding: 22px 20px;
  box-shadow: var(--golge);
}

.ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.satir { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.satir.yay { justify-content: space-between; }

.adres { font-family: var(--el); font-size: 2rem; font-weight: 600; line-height: 1.05; color: var(--mavi); margin: 0 0 1.1rem; }

/* ------------------------------------------------ damga ve pul */

.damga { width: 104px; height: 104px; flex: none; color: var(--damga); opacity: .88; transform: rotate(-9deg); }
.damga circle { fill: none; stroke: currentColor; }
.damga text { font-family: var(--yazi); font-stretch: 72%; font-weight: 640; fill: currentColor; }
.damga .orta-buyuk { font-size: 19px; font-weight: 720; }
.damga .orta-kucuk { font-size: 12.5px; }
.damga .halka { font-size: 10.5px; letter-spacing: .09em; }

.pul { width: 70px; height: 84px; flex: none; transform: rotate(3deg); filter: drop-shadow(0 2px 2px rgba(23, 34, 61, .18)); }
.pul .delik { fill: var(--zarf); }

/* ------------------------------------------------ mühür */

.muhur {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #e0565f 0 18%, var(--kirmizi) 46%, #8f1f28 100%);
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .12), 0 3px 6px rgba(80, 10, 20, .35);
  transform: rotate(-8deg);
}
.muhur svg { width: 28px; height: 28px; fill: rgba(255, 235, 236, .92); }
.muhur.bas { animation: muhur-bas .75s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes muhur-bas {
  0% { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  62% { transform: scale(.9) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}

/* ------------------------------------------------ yazma */

.adimlar { display: flex; gap: 6px; margin: 2px 0 6px; }
.adimlar i { flex: 1; height: 4px; border-radius: 2px; background: rgba(86, 98, 127, .25); }
.adimlar i.tamam { background: var(--mavi); }
@media (prefers-color-scheme: dark) { .adimlar i { background: rgba(220, 229, 242, .2); } .adimlar i.tamam { background: #7d9cf0; } }
.adim-sayisi { font-size: .875rem; color: var(--sayfa-soluk); font-variant-numeric: tabular-nums; }

.soru { font-size: 1.3125rem; line-height: 1.35; font-weight: 600; font-stretch: 100%; margin: 14px 0 12px; }

.cizgili, .mektup {
  font-family: var(--el);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.1rem;
  color: #1d2b52;
  background: repeating-linear-gradient(to bottom, transparent 0 calc(2.1rem - 1px), var(--cizgi) calc(2.1rem - 1px) 2.1rem);
  background-attachment: local;
}
.cizgili {
  display: block; width: 100%; min-height: calc(2.1rem * 7); resize: vertical;
  border: 0; outline: 0; padding: 0 2px; margin: 0; border-radius: 0;
}
.cizgili::placeholder { color: #9aa8c4; }
.cizgili:focus-visible { outline: 2px solid rgba(34, 71, 154, .3); outline-offset: 8px; border-radius: 2px; }
.mektup { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0 2px; margin: 0 0 6px; min-height: 2.1rem; }
.mektup.bos { color: var(--soluk); font-size: 1.35rem; }
.sayac { font-size: .8125rem; color: var(--soluk); text-align: right; font-variant-numeric: tabular-nums; margin-top: 6px; }

.ozet { list-style: none; margin: 0; padding: 0; }
.ozet li { padding: 12px 0; border-top: 1px solid var(--cizgi); }
.ozet li:first-child { border-top: 0; padding-top: 0; }
.ozet .s { font-size: .9375rem; color: var(--soluk); margin-bottom: 2px; }
.ozet .c { font-family: var(--el); font-size: 1.4rem; line-height: 1.25; color: #1d2b52; overflow-wrap: anywhere; }
.ozet .c.bos { color: var(--soluk); font-size: 1.15rem; }

/* ------------------------------------------------ kapsül */

.zarf-baslik { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.geri-sayim { font-size: 1.125rem; font-weight: 640; font-variant-numeric: tabular-nums; margin: 10px 0 0; }
.kimden { font-size: 1rem; font-weight: 700; color: var(--murekkep); margin: 26px 0 2px; padding-top: 16px; border-top: 1px dashed var(--cizgi); }
.zarf-baslik + .kimden { border-top: 0; padding-top: 0; margin-top: 18px; }
.mektup-soru { font-size: .9375rem; color: var(--soluk); margin: 14px 0 4px; line-height: 1.4; }
.acilis { animation: acil .7s ease-out both; }
@keyframes acil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.bolum-baslik { margin: 34px 0 10px; font-size: 1.0625rem; font-weight: 680; }
.arac + .arac { border-top: 1px solid var(--cizgi); margin-top: 16px; padding-top: 16px; }

/* ------------------------------------------------ düğmeler */

.dugme {
  appearance: none; -webkit-appearance: none;
  border: 0; border-radius: 10px;
  min-height: 48px; padding: .75em 1.2em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-stretch: 104%; font-size: 1.0625rem; line-height: 1.2;
  background: var(--mavi); color: #fff; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dugme:active { transform: translateY(1px); }
.dugme.ikincil { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.dugme.muhurle { background: var(--kirmizi); }
.dugme.genis { width: 100%; }
.dugme:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.dugme:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--mavi); outline-offset: 3px; }
@media (prefers-color-scheme: dark) { .dugme:focus-visible { outline-color: #9ab3ff; } }
.alt-dugmeler { display: flex; gap: 10px; margin-top: 18px; }
.alt-dugmeler .dugme { flex: 1; }

/* ------------------------------------------------ uyarılar ve pencere */

.bilgi { border-radius: 10px; padding: 12px 14px; font-size: .9375rem; line-height: 1.45; background: #fff3d1; color: #553f00; }
.bilgi.uyari { background: #fbe2e4; color: #75161f; }
.bilgi.sakin { background: #dfe7f5; color: #22325e; }

.perde { position: fixed; inset: 0; z-index: 10; display: grid; place-items: end center; padding: 16px;
  background: rgba(12, 19, 40, .55); }
.pencere { width: 100%; max-width: 34rem; background: var(--zarf); color: var(--murekkep); border-radius: 14px;
  padding: 22px 20px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
@media (min-height: 640px) { .perde { place-items: center; } }

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

.pul-alani { display: flex; justify-content: flex-end; align-items: center; min-height: 86px; margin: -6px -4px 4px 0; }
.pul-alani .damga { position: relative; z-index: 1; width: 92px; height: 92px; margin-right: -30px; }

.baglanti {
  appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 6px 0 0; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--mavi);
  text-decoration: underline; text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  header .adres { color: #a9bdf6; }
}
