/* Renkler tek merkezden: bileşenlerde sabit renk yok. Açık ve koyu temada kontrast WCAG AA. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-400-normal.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: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-normal.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: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-400-italic.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: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-italic.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: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-600-normal.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: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/source-serif-4-latin-600-normal.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; }

:root, [data-tema="acik"] {
  --zemin: #f6f3ee;
  --yuzey: #fffdf9;
  --yazi: #22201c;
  --soluk: #5b5650;
  --cizgi: #d9d2c7;
  --vurgu: #3f5f50;
  --vurgu-yazi: #ffffff;
  --odak: #1f4fa8;
  --serit: #efe7d6;
  --tamam: #166534;
  --hata: #9f1c1c;
  color-scheme: light;
}
[data-tema="koyu"] {
  --zemin: #1b1a18;
  --yuzey: #24221f;
  --yazi: #ece8e1;
  --soluk: #b5ada2;
  --cizgi: #3c3934;
  --vurgu: #9fc2ae;
  --vurgu-yazi: #14201a;
  --odak: #8db4ff;
  --serit: #2f2a22;
  --tamam: #86efac;
  --hata: #fca5a5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--zemin); color: var(--yazi);
  font: 400 1.0625rem/1.65 "Source Serif 4", Georgia, "Times New Roman", serif;
}
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 0 0 .25rem; }
a { color: var(--vurgu); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; }
code { font-size: .9em; background: var(--serit); padding: 0 .25em; border-radius: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.kap { width: min(100% - 32px, 960px); margin-inline: auto; }
.ekran-okuyucu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atla { position: absolute; left: 16px; top: -100px; background: var(--yuzey); padding: .5rem 1rem; z-index: 10; }
.atla:focus { top: 8px; }
.kucuk { font-size: .9rem; color: var(--soluk); }

/* Üst çubuk */
.ust { border-bottom: 1px solid var(--cizgi); background: var(--yuzey); }
.ust-ic { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--yazi); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.logo svg { color: var(--vurgu); }
.menu { display: flex; gap: 1rem; flex: 1; }
.menu a { color: var(--yazi); text-decoration: none; }
.menu a[aria-current="page"] { text-decoration: underline; }
.araclar { display: flex; gap: .25rem; align-items: center; }
.simge-dugme, .dil-dugme { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--yazi); text-decoration: none; }
.simge-dugme:hover, .dil-dugme:hover { border-color: var(--cizgi); }
.dil-dugme { font-weight: 600; padding-inline: .5rem; }
@media (max-width: 560px) { .menu { order: 3; flex-basis: 100%; } }

/* İçerik */
main { display: block; padding-bottom: 3rem; }
main:focus { outline: none; }
.giris { padding-block: 3rem 1rem; }
.baslik-satiri { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ozet { font-size: 1.2rem; max-width: 46rem; }
.asama { display: inline-block; background: var(--serit); padding: .4rem .75rem; border-radius: 6px; }
.ana-dugme { display: inline-block; background: var(--vurgu); color: var(--vurgu-yazi); padding: .7rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.bolum { padding-block: 1.75rem; border-top: 1px solid var(--cizgi); }
.kartlar { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kartlar li { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 10px; padding: 1rem 1.1rem; }
.kartlar p { margin: 0; color: var(--soluk); }
.ilkeler div { margin-bottom: 1rem; }
.ilkeler dt { font-weight: 600; }
.ilkeler dd { margin: 0; color: var(--soluk); }
.adimlar li { margin-bottom: .5rem; }
details { border-bottom: 1px solid var(--cizgi); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
.metin-sayfa { padding-block: 2.5rem; max-width: 46rem; }
.metin-sayfa h2 { margin-top: 2rem; font-size: 1.25rem; }

/* Paylaş */
.paylas { position: relative; }
.paylas-dugme { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); }
.paylas-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; list-style: none; margin: 0; padding: .4rem; min-width: 210px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; }
.paylas-menu a, .paylas-menu button { display: block; width: 100%; text-align: left; padding: .45rem .6rem; border: 0; background: none; color: var(--yazi); text-decoration: none; border-radius: 6px; }
.paylas-menu a:hover, .paylas-menu button:hover { background: var(--serit); }
@media (max-width: 560px) { .paylas-dugme span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Örnek anı sayfası */
.serit { background: var(--serit); border-left: 4px solid var(--vurgu); padding: .75rem 1rem; margin-top: 1.5rem; border-radius: 4px; }
.ani { max-width: 52rem; }
.ani-ust { text-align: center; padding-block: 2rem 1rem; }
.yasam { font-size: 1.15rem; margin: 0; }
.alt-baslik { color: var(--soluk); font-style: italic; }
.ani-menu { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; padding-bottom: 1rem; }
.fotolar { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fotolar figure { margin: 0; }
.foto-yer { width: 100%; height: auto; background: var(--yuzey); border: 1px dashed var(--cizgi); border-radius: 8px; color: var(--soluk); }
figcaption { font-size: .9rem; color: var(--soluk); margin-top: .3rem; }
.ani-alinti { margin: 0 0 1rem; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--cizgi); }
.ani-alinti p { margin: 0; font-style: italic; }
.ani-alinti footer, .yazan { color: var(--soluk); font-size: .9rem; margin: .25rem 0 0; }
.taziyeler { list-style: none; padding: 0; }
.taziyeler li { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px; padding: .75rem 1rem; margin-bottom: .6rem; }
.taziyeler p { margin: 0; }
.taziye-form label { display: block; font-weight: 600; }
.taziye-form input, .taziye-form textarea { width: 100%; padding: .55rem .7rem; border: 1px solid var(--soluk); border-radius: 6px; background: var(--yuzey); }
.taziye-form button, .pencere button, .cerez-dugmeler button { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--vurgu); border-radius: 8px; background: var(--yuzey); color: var(--yazi); }
.taziye-form button { background: var(--vurgu); color: var(--vurgu-yazi); }
.gorunurluk fieldset { border: 0; padding: 0; margin: 0; }
.gorunurluk-durum { background: var(--serit); padding: .5rem .75rem; border-radius: 6px; }

/* Altbilgi: iki satır */
.alt { border-top: 1px solid var(--cizgi); background: var(--yuzey); font-size: .95rem; }
.alt-satir1 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-block: 1.25rem; }
.alt-satir2 { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .75rem 1.5rem; border-top: 1px solid var(--cizgi); }
.telif { margin: 0; color: var(--soluk); }
.hukuki { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1rem; margin: 0; padding: 0; }
.hukuki a, .bag-dugme { color: var(--soluk); }
.bag-dugme { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .15em; }
.sosyal { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem; margin: 0; padding: 0; }
.sosyal a { display: grid; place-items: center; width: 36px; height: 36px; color: var(--vurgu); border-radius: 6px; }
.rozet { justify-self: end; line-height: 0; }
.rozet-koyu { display: none; }
[data-tema="koyu"] .rozet-acik { display: none; }
[data-tema="koyu"] .rozet-koyu { display: inline; }
@media (max-width: 760px) {
  .alt-satir1 { grid-template-columns: 1fr; justify-items: center; }
  .rozet { justify-self: center; }
  .alt-satir2 { flex-direction: column; align-items: center; text-align: center; }
  .hukuki { justify-content: center; }
}

/* Liste formu: çerçevesiz, tek satır */
.liste-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; max-width: 100%; }
.liste-alan { position: relative; flex: 1 1 10rem; min-width: 0; display: block; }
.liste-alan input { width: 100%; border: 0; border-bottom: 2px solid var(--soluk); background: transparent; padding: .45rem .1rem; }
.liste-alan input.gizli-alan { visibility: hidden; }
.liste-tamam { position: absolute; inset: 0; display: flex; align-items: center; color: var(--tamam); font-weight: 600; cursor: pointer; }
.liste-tamam[hidden] { display: none; }
.liste-form button { flex: none; white-space: nowrap; min-height: 40px; padding: .4rem 1rem; border: 0; border-radius: 6px; background: var(--vurgu); color: var(--vurgu-yazi); font-weight: 600; }
.liste-hata { flex-basis: 100%; color: var(--hata); font-size: .9rem; }
.liste-hata:empty { display: none; }
.bot-tuzagi { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.liste-form { flex-wrap: nowrap; }
.liste-form:has(.liste-hata:not(:empty)) { flex-wrap: wrap; }
#liste-tamam:target { display: flex; }

/* Çerez bandı ve pencereler */
.cerez-bant { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--yuzey); border-top: 1px solid var(--cizgi); padding: .9rem 16px; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: center; box-shadow: 0 -4px 16px rgb(0 0 0 / .08); }
.cerez-bant[hidden] { display: none; }
.cerez-bant p { margin: 0; max-width: 40rem; }
.cerez-dugmeler { display: flex; gap: .5rem; flex-wrap: wrap; }
.cerez-dugmeler button { min-width: 8.5rem; }
.pencere { border: 1px solid var(--cizgi); border-radius: 12px; background: var(--yuzey); color: var(--yazi); padding: 0; width: min(100% - 32px, 34rem); }
.pencere::backdrop { background: rgb(0 0 0 / .45); }
.pencere-ic { padding: 1.25rem 1.5rem; }
.pencere fieldset { border: 1px solid var(--cizgi); border-radius: 8px; margin: 0 0 1rem; }
.pencere legend { font-weight: 600; padding-inline: .25rem; }
.arama input[type="search"] { width: 100%; padding: .6rem .75rem; border: 1px solid var(--soluk); border-radius: 8px; background: var(--zemin); }
.arama-sonuc { list-style: none; padding: 0; max-height: 50vh; overflow: auto; }
.arama-sonuc li { padding: .5rem 0; border-bottom: 1px solid var(--cizgi); }
.arama-sonuc p { margin: .15rem 0 0; color: var(--soluk); font-size: .9rem; }
.hata { text-align: center; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
