@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: normal;
  src: url("/static/fonts/EBGaramond-Regular.ttf") format("truetype"); }
@font-face { font-family: "EB Garamond"; font-weight: 400; font-style: italic;
  src: url("/static/fonts/EBGaramond-Italic.ttf") format("truetype"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: normal;
  src: url("/static/fonts/EBGaramond-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal;
  src: url("/static/fonts/FiraSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal;
  src: url("/static/fonts/FiraSans-SemiBold.ttf") format("truetype"); }

:root { --kagit: #f6f1e7; --bordo: #7b2d26; --murekkep: #2a2724; --altin: #a07c3b; --soluk: #8a8178; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--kagit); color: var(--murekkep);
  font-family: "EB Garamond", Georgia, serif; font-size: 1.15rem; line-height: 1.6; }
body.giris { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.kart { width: 100%; max-width: 22rem; }
h1 { color: var(--bordo); font-weight: 600; font-size: 2.2rem; text-align: center; margin: 0 0 1.5rem; }
label { display: block; margin: 1rem 0 .25rem; }
input { width: 100%; padding: .55rem .7rem; font: inherit; background: #fffdf8;
  border: 1px solid #c9bfa9; border-radius: 3px; }
input:focus { outline: 2px solid var(--bordo); outline-offset: 1px; }
button { margin-top: 1.5rem; width: 100%; padding: .65rem; font: inherit; font-weight: 600;
  color: #fff; background: var(--bordo); border: 0; border-radius: 3px; cursor: pointer; }
button:hover { background: #64231d; }
.hata { color: var(--bordo); border-left: 3px solid var(--bordo); padding: .3rem .7rem; margin: 0; }

/* ---- reading pages ---- */
.sans, .ust, .meta, .rozet, .sekme, .duzenle, .dugme, .geri, .gizli, th, .yazar, .kredi { font-family: "Fira Sans", system-ui, sans-serif; }
a { color: var(--bordo); }
.ust { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center;
  padding: .7rem 1rem; border-bottom: 1px solid var(--altin); font-size: .9rem; }
.ust-baslik { font-family: "EB Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.ust-sag { display: flex; align-items: center; gap: 1rem; color: var(--soluk); }
.ust-sag form { margin: 0; }
.cikis { margin: 0; width: auto; padding: .3rem .8rem; font: inherit; font-size: .85rem; font-weight: 400;
  color: var(--bordo); background: none; border: 1px solid var(--bordo); border-radius: 3px; }
.cikis:hover { background: var(--bordo); color: #fff; }
.sayfa { max-width: 42em; margin: 0 auto; padding: 1.2rem 1rem 4rem; overflow-wrap: break-word; }
.sayfa h1 { text-align: left; font-size: 2rem; margin: .3rem 0 1rem; }
h2, h3, h4, h5, h6 { color: var(--bordo); font-weight: 600; line-height: 1.25; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--altin); padding-bottom: .2rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.geri { font-size: .9rem; margin: 0; }
.duzenle { font-size: .8rem; font-weight: 400; margin-left: .6rem; color: var(--bordo); border: 1px solid var(--bordo);
  border-radius: 3px; padding: .05rem .5rem; text-decoration: none; white-space: nowrap; }
.duzenle.sag { margin-left: auto; align-self: center; }
.soluk { color: var(--soluk); }
.bordo { color: var(--bordo); }
.gizli { font-size: .75rem; color: var(--soluk); border: 1px dashed var(--soluk); border-radius: 3px; padding: 0 .35rem; }
a.kisi { text-decoration-color: var(--altin); text-underline-offset: 3px; }
span.kisi { font-style: inherit; }

.kapak { text-align: center; padding: 1.5rem 0 1rem; }
.kapak h1 { text-align: center; font-size: 2.8rem; margin-bottom: .2rem; }
.kapak .alt { color: var(--soluk); font-size: 1.2rem; }
.kapak-foto { width: 100%; max-height: 26rem; object-fit: cover; border: 1px solid var(--altin); margin-bottom: 1rem; }
.dugme { display: inline-block; padding: .55rem 1.4rem; color: #fff; background: var(--bordo); border-radius: 3px; text-decoration: none; }
.dugme:hover { background: #64231d; }
.icindekiler ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--altin); }
.icindekiler li { border-bottom: 1px solid #e2d9c6; }
.icindekiler a { display: block; padding: .7rem .3rem; font-size: 1.25rem; text-decoration: none; }
.icindekiler a:hover { background: #efe8d8; }

.kisi-ust { display: flex; gap: 1.2rem; align-items: center; margin: .8rem 0 1rem; }
.kisi-ust h1 { margin: 0 0 .3rem; }
.portre { width: 7.5rem; height: 9.5rem; flex: none; object-fit: cover; border: 3px solid #fff; box-shadow: 0 1px 5px #0003; border-radius: 3px; }
.portre.bos { display: grid; place-items: center; font-size: 3rem; color: var(--soluk); background: #ece4d2; box-shadow: none; border: 1px solid #d9cfb9; }
.meta { margin: 0; color: var(--soluk); font-size: .95rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
.rozet { border: 1px solid var(--altin); color: var(--altin); border-radius: 3px; padding: 0 .4rem; font-size: .8rem; }
.anma { margin: .6rem 0 0; color: var(--bordo); font-style: italic; }
.sekmeler { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 2px solid #ddd2bc; margin: 1rem 0 1.2rem; }
.sekme { padding: .55rem 1.3rem; color: var(--soluk); text-decoration: none; font-size: 1rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.sekme:hover { color: var(--bordo); }
.sekme.aktif { color: var(--bordo); font-weight: 600; border-bottom-color: var(--bordo); }
.bos-not, .foto-secilmedi { color: var(--soluk); font-style: italic; }
.metin p, .paragraf p { text-align: left; hyphens: auto; }
.yazar { color: var(--soluk); font-size: .9rem; margin: -.4rem 0 .8rem; }
.adi-gecen li { margin: .3rem 0; }
.adi-gecen ul, .kisi-listesi { padding-left: 1.2rem; }

figure.foto { margin: 1.2rem auto; }
figure.foto img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #ddd2bc; }
figcaption { font-size: .95rem; font-style: italic; color: var(--soluk); margin-top: .35rem; }
.foto-sirasi { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.2rem auto; }
.foto-sirasi figure.foto { margin: 0; }

.blok { position: relative; }
.blok > .duzenle { position: absolute; right: 0; top: 0; background: var(--kagit); }
.ayrac { text-align: center; font-style: italic; font-weight: 400; color: var(--soluk); border: 0; margin: 2rem 0 .5rem; font-size: 1.2rem; }
.kisi-listesi { list-style: none; padding: 0; columns: 14rem; }
.kisi-listesi li { padding: .25rem 0; break-inside: avoid; }
.ortala { text-align: center; }
.italik { font-style: italic; }
.paragraf.soluk, .paragraf.kucuk { color: var(--soluk); }
.paragraf.bordo { color: var(--bordo); }
.paragraf.kucuk { font-size: .9rem; }
.alinti { margin: 1.5rem auto; width: 88%; text-align: center; font-style: italic; color: var(--bordo); font-size: 1.2rem; }
.alinti footer { font-size: .95rem; color: var(--soluk); }
.alinti p { margin: 0; }
.isimler { font-size: .95rem; color: var(--soluk); }
.kutu { border: 1px solid var(--altin); background: #fbf7ee; padding: .3rem 1.1rem; margin: 1.2rem 0; }
.zaman { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; }
.zaman dt { color: var(--altin); font-weight: 600; font-family: "Fira Sans", sans-serif; }
.zaman dd { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--soluk); }
th, td { padding: .35rem .5rem; vertical-align: top; }
.kaydir { overflow-x: auto; }
.idare th { color: var(--murekkep); font-size: 1rem; font-family: inherit; font-weight: 400; width: 45%; }
.sinif-listesi, .ders-tablosu { border-top: 1px solid var(--altin); border-bottom: 1px solid var(--altin); }
.sinif-listesi tbody tr:nth-child(even), .ders-tablosu tbody tr:nth-child(even) { background: #efe8d8; }
.sinif-listesi td:nth-child(1), .sinif-listesi td:nth-child(2) { text-align: right; }
.sinif-listesi td:nth-child(4), .sinif-listesi td:nth-child(5) { text-align: center; color: var(--altin); }
.ders-tablosu tfoot td { border-top: 1px solid var(--altin); font-weight: 600; }
.ders-programi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.ders-programi ul { list-style: none; margin: 0; padding: 0; }
.donemler { text-align: center; }
.anma-listesi { text-align: center; }
.anma-listesi .giris { font-style: italic; margin-bottom: 1.5rem; }
.anma-satiri h3 { margin: 1.4rem 0 0; font-size: 1.5rem; }
.anma-satiri .yil { font-family: "Fira Sans", sans-serif; color: var(--altin); letter-spacing: .15em; font-size: .85rem; margin: 0; }
.anma-satiri p { margin-bottom: .3rem; }
hr.altin { width: 5rem; border: 0; border-top: 1px solid var(--altin); margin: 2rem auto; }
.kapanis { font-size: .95rem; }
.dizin { list-style: none; padding: 0; margin: 0; columns: 18rem; column-gap: 2rem; font-size: 1.05rem; }
.dizin li { break-inside: avoid; padding: .2rem 0; }
.dizin-ad { display: block; font-weight: 600; }
.dizin-sayfalar { font-size: .9rem; }
.unlu .tarih { font-family: "Fira Sans", sans-serif; font-size: .85rem; color: var(--soluk); margin-top: -.4rem; }
.kurul { text-align: center; }
.kurul .etiket { font-family: "Fira Sans", sans-serif; font-size: .8rem; letter-spacing: .1em; color: var(--altin); margin: 1rem 0 .2rem; }
.susleme { text-align: center; color: var(--altin); font-size: 1.8rem; margin: 1.5rem 0; }
.sayfa-sonu { margin: 1.5rem 0; }

@media (max-width: 30rem) {
  body { font-size: 1.1rem; }
  .kisi-ust { flex-direction: column; align-items: flex-start; }
  .sayfa h1 { font-size: 1.7rem; }
  .ders-programi { grid-template-columns: 1fr; }
  .alinti { width: 100%; }
}
