/* 3 renk: lacivert (--ink), beyaz (--paper), bakır (--accent). Diğer tonlar lacivertin şeffaflığıdır. */
:root {
  --ink: #14233b;
  --paper: #ffffff;
  --accent: #b45309;
  --muted: rgb(20 35 59 / 72%);
  --line: rgb(20 35 59 / 14%);
  --tint: rgb(20 35 59 / 4%);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p, ul, ol, dl { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Üst bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 1.25rem; font-size: .95rem; }
.top nav a { text-decoration: none; padding: .75rem 0; }
@media (max-width: 40rem) { .top nav { display: none; } }

/* Hero */
.hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.lede { font-size: 1.2rem; max-width: 40rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: .95rem; }
.facts li { display: flex; gap: .5rem; align-items: center; }
.facts svg { color: var(--accent); flex: none; }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Dizin listesi */
.listing { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.card { display: grid; grid-template-columns: 1fr; gap: 1.25rem; border: 1px solid var(--line); padding: 1.25rem; }
@media (min-width: 48rem) { .card { grid-template-columns: 11rem 1fr auto; padding: 1.5rem; align-items: start; } }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }
@media (max-width: 47.99rem) { .card img { max-width: 9rem; } }
.card h3 { margin-bottom: .15rem; }
.card h3 a { text-decoration: none; }
.title { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; }
.meta { font-size: .95rem; color: var(--muted); margin-bottom: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); padding: .2rem .6rem; font-size: .85rem; }
.actions { display: flex; flex-direction: column; gap: .5rem; min-width: 12rem; }
.actions.row { flex-direction: row; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 47.99rem) { .actions { flex-direction: row; flex-wrap: wrap; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Konu tablosu */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--serif); font-size: 1.05rem; }
td.y { color: var(--accent); font-weight: 600; }
td.n { color: var(--muted); }
th small { font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--muted); }

/* Metin blokları */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.25em; }
.cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr; } }
.box { border: 1px solid var(--line); padding: 1.5rem; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style-position: outside; min-height: 2.75rem; }
details p { color: var(--muted); }

/* Profil sayfası */
.crumbs { font-size: .9rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.profile-head { display: grid; gap: 2rem; padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .profile-head { grid-template-columns: 18rem 1fr; align-items: end; } }
.profile-head img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); width: 100%; max-width: 18rem; }
@media (max-width: 47.99rem) { .profile-head { padding-top: 1.5rem; gap: 1.25rem; } .profile-head img { max-width: 10rem; } }
.profile-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.timeline b { color: var(--accent); }

/* Alt bilgi */
footer { background: var(--ink); color: var(--paper); padding: 3rem 0 2rem; margin-top: 2rem; font-size: .95rem; }
footer a:hover { color: var(--paper); text-decoration-color: var(--accent); }
footer .cols { margin-bottom: 2rem; }
footer h2 { font-size: 1.25rem; }
footer ul { list-style: none; padding: 0; }
.note { opacity: .8; font-size: .85rem; border-top: 1px solid rgb(255 255 255 / 20%); padding-top: 1.5rem; }

/* Mobil sabit iletişim çubuğu */
.callbar { display: none; }
@media (max-width: 47.99rem) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: sticky; bottom: 0; background: var(--paper); border-top: 1px solid var(--line); padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; z-index: 5; }
}
