/* İnternet Arşivi — açık, kağıt, ansiklopedi */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #16171b;
  --muted: #676a72;
  --line: #e0dcd2;
  --accent: #2a4a8f;
  --soft: #efece5;
  --paper: #ebe7dd;
  --paper-line: #d9d3c5;
  --bar: #16171b;
  --st: #3d3f46;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --logo: "Fraunces", Georgia, serif;
  --mono: "Red Hat Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Üst bar */
.bar { background: var(--bar); color: #fff; }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { color: #fff; font-family: var(--logo); font-weight: 700; font-size: 24px; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .mark { display: inline-grid; place-items: center; width: 30px; height: 30px; background: #fff; color: var(--bar); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.logo small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #a9acb4; letter-spacing: .08em; }
.search { flex: 1; max-width: 520px; margin-left: auto; display: flex; }
.search input { flex: 1; border: 0; padding: 10px 14px; font: 15px var(--sans); background: #2a2c33; color: #fff; }
.search input::placeholder { color: #a9acb4; }
.search input:focus { outline: 2px solid var(--accent); }
@media (max-width: 680px) { .bar .wrap { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 10px; } .search { max-width: none; width: 100%; } }

.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); font-weight: 600; font-size: 14px; padding: 12px 12px; white-space: nowrap; }
.nav a.active, .nav a:hover { text-decoration: none; box-shadow: inset 0 -3px 0 var(--ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 28px; padding-bottom: 64px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Kutular */
.panel { background: var(--surface); border: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.panel-head span, .panel-head a { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.empty-note { padding: 16px; margin: 0; color: var(--muted); }
.panel-alt { padding: 12px 16px 0; margin: 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
main > .panel + .panel { margin-top: 18px; }

/* Durum rozeti */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status { color: var(--st); border-color: var(--line); background: var(--surface); }
/* Durumlar renkle değil işaretle ayrılır: dolu nokta = yaşıyor, boş = gitti, yarım = sönüyor */
.st-yukselen { color: var(--accent); }
.st-sonuyor::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); border: 1px solid currentColor; }
.st-oldu, .st-kayip { color: var(--muted); }
.st-oldu::before, .st-kayip::before { background: transparent; border: 1px solid currentColor; }

/* Kapak: görsel yoksa sade arşiv kartı (çizgili kağıt, renksiz) */
.thumb { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--paper-line);
  background: repeating-linear-gradient(180deg, transparent 0 23px, var(--paper-line) 23px 24px) 0 34px / 100% 100% no-repeat, var(--paper); }
.thumb .ph-k, .thumb .ph-y { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.thumb .ph-y { align-self: flex-end; }
.thumb .ph-b { font-family: var(--mono); font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; padding: 8px 0; text-wrap: balance; }
.thumb:hover { text-decoration: none; border-color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.has-img { padding: 0; background: #111; border: 1px solid var(--line); display: block; position: relative; }
/* görsel kutuyu büyütmesin: dikey fotoğraf da kartta 16:9 kırpılır, yüzler üstte kalsın */
.thumb.has-img img { position: absolute; inset: 0; object-position: center 25%; }

/* Öne çıkan */
.feature { display: grid; grid-template-columns: 260px 1fr; margin-bottom: 28px; }
.feature .body { padding: 22px 24px; }
.feature h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; margin: 10px 0; }
.feature h2 a { color: var(--ink); }
.feature p { margin: 0 0 12px; color: #33353c; }
@media (max-width: 640px) { .feature { grid-template-columns: 1fr; } .feature .thumb { min-height: 150px; } .feature .thumb.has-img { min-height: 0; aspect-ratio: 16 / 9; } }

/* Madde kartları */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); }
.entry { background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.entry .thumb { min-height: 0; aspect-ratio: 16 / 9; }
.entry .thumb .ph-b { font-size: 13px; }
.entry h3 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.entry h3 a { color: var(--ink); }
/* Kartın tamamı maddeye gider (özet ve kapak dahil) */
.entry { position: relative; }
.entry h3 a::after { content: ""; position: absolute; inset: 0; }
.entry:hover h3 a { text-decoration: underline; }
.entry p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.facts { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

/* Kenar listeleri */
.side .panel { margin-bottom: 20px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list .n { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.list .dead { color: var(--muted); text-decoration: line-through; text-decoration-color: #0004; }
.cta { padding: 16px; font-size: 15px; }
.cta p { margin: 0 0 12px; }
.cta .cta-mail { margin: 10px 0 0; font-size: 13px; }
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 14px; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }

/* Madde sayfası */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.entry-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.entry-title h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.article { background: var(--surface); border: 1px solid var(--line); padding: 28px; font-size: 17px; line-height: 1.7; }
@media (max-width: 600px) { .article { padding: 20px 16px; } }
.article .lede { font-size: 19px; color: #2c2e34; line-height: 1.55; }
.article h2 { font-size: 22px; letter-spacing: -.01em; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 36px 0 12px; line-height: 1.25; }
.article h3 { font-size: 18px; margin: 24px 0 8px; }
.article p, .article li { color: #26282e; }
.article blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--ink); background: var(--soft); color: #2c2e34; }
.article figure { margin: 20px 0; }
.article figure img { border: 1px solid var(--line); }
.article figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.article code { font-family: var(--mono); font-size: .9em; background: #f0eee8; padding: 1px 5px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.timeline time { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { word-break: break-word; }
.share { margin: 28px 0 0; font-family: var(--mono); font-size: 13px; }
.infobox .thumb { min-height: 170px; }
.infobox .thumb.has-img { min-height: 0; aspect-ratio: 1280 / 900; }
.kapak-alt { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 6px 16px 0; line-height: 1.4; }
.infobox dl { margin: 0; padding: 4px 16px 12px; display: grid; grid-template-columns: max-content 1fr; gap: 0 14px; font-size: 14px; }
.infobox dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 9px 0; border-bottom: 1px solid var(--line); }
.infobox dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 16px; }
.tags a { font-family: var(--mono); font-size: 12px; background: var(--soft); color: var(--ink); padding: 2px 8px; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.yok-sayfa { padding: 72px 16px 96px; max-width: 680px; }
.yok-sayfa h1 { font-size: 40px; letter-spacing: -.03em; margin: 16px 0; }

/* Madde videosu: önce küçük resim, tıklanınca oynatıcı */
.video { margin: 22px 0; }
.video .yt, .video .yt-cerceve { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; border: 0; }
.video .yt img { border: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .15s; }
.video .yt:hover img { opacity: 1; }
.video .yt-oynat { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #e62117; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.video .yt-oynat::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }

/* Ne demek bölümü */
.harfler { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.harfler a { font-family: var(--mono); font-weight: 700; font-size: 14px; min-width: 32px; text-align: center; padding: 4px 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.harfler a:hover { text-decoration: none; border-color: var(--ink); }
.sozluk .harf { padding: 4px 16px 12px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.sozluk .harf:last-child { border-bottom: 0; }
.sozluk .harf h3 { font-family: var(--logo); font-size: 26px; margin: 10px 0 0; }
.sozluk-liste { margin: 0; }
.sozluk-liste dt { font-weight: 800; font-size: 17px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sozluk-liste dd { margin: 2px 0 0; color: var(--muted); max-width: 70ch; }
.t-etiket { font-family: var(--mono); font-size: 11px; font-weight: 400; background: var(--soft); color: var(--st); padding: 1px 6px; }
.t-etiket.t-madde { background: var(--paper); }
.article ul.gecen li { margin-bottom: 6px; }
.status.st-sozluk { background: var(--paper); color: var(--ink); }
