/* ⟨Claude · LG1 · 16-10-2026⟩ peplabo.app yasal sayfaları — ortak stil.
 * Renkler uygulamanın "Grafit ve şampanya" jetonlarından (src/theme/tokens.ts: palettes + colorThemes.champagne).
 * Dış kaynak yok: yazı tipi bu klasörden (Instrument Serif, SIL OFL 1.1 — fonts/OFL.txt), gövde sistem yazı tipi.
 * Dil: iki dil aynı sayfada (.l-tr / .l-en). Betik varsa <html data-lang> seçer; betik yoksa İngilizce görünür,
 * Türkçe #tr bağlantısıyla (:target) açılır. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F3F0EA;
  --bg-deep: #EAE6DE;
  --surface: #FBF9F5;
  --surface-strong: #FFFFFF;
  --border: #E2DDD3;
  --border-strong: #D2CCC0;
  --text: #17161A;
  --text-2: #5E5A53;
  --text-3: #66625A;
  --accent: #7A5E2C;
  --accent-fill: #B8975A;
  --accent-on: #17140C;
  --warn: #8A5A16;
  --warn-bg: #F6EBD8;
  --hairline: rgba(23, 22, 26, 0.08);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E10;
    --bg-deep: #09090A;
    --surface: #161618;
    --surface-strong: #1C1C1F;
    --border: #2A2A2E;
    --border-strong: #3A3A3F;
    --text: #EFEAE1;
    --text-2: #A39D92;
    --text-3: #8E897F;
    --accent: #D4B87C;
    --accent-fill: #C8A96B;
    --accent-on: #1A1508;
    --warn: #D19A4A;
    --warn-bg: #2A2116;
    --hairline: rgba(239, 234, 225, 0.08);
  }
}

/* ── temel ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

/* e-posta ve uzun adresler dar ekranda taşmasın */
.addr, .meta, li, p { overflow-wrap: anywhere; }

/* ── dil seçimi ───────────────────────────────────────────────────────── */

html:not([data-lang]) .l-tr { display: none; }
html:not([data-lang]) .l-tr:target,
html:not([data-lang]) .l-tr:has(:target) { display: block; }
html:not([data-lang]) .l-tr:target ~ .l-en,
html:not([data-lang]) .l-tr:has(:target) ~ .l-en { display: none; }
html[data-lang="tr"] .l-en,
html[data-lang="en"] .l-tr { display: none; }

/* ── düzen ────────────────────────────────────────────────────────────── */

.l {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}
.skip:focus { left: var(--gutter); z-index: 10; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 12px;
}

.brand {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--accent-fill);
  vertical-align: 0.12em;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.lang a {
  font-size: 14px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.lang a[aria-current] { background: var(--accent-fill); color: var(--accent-on); font-weight: 600; }

.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.pages a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.pages a[aria-current] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent-fill); }

/* ── tipografi ────────────────────────────────────────────────────────── */

h1, h2, h3 { color: var(--text); text-wrap: balance; }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 1.9rem);
  line-height: 1.15;
  margin: 44px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

h3 { font-size: 1.05rem; line-height: 1.35; margin: 24px 0 6px; font-weight: 650; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin: 4px 0; }
li::marker { color: var(--text-3); }
strong { font-weight: 650; }

.meta { color: var(--text-2); font-size: 15px; margin-bottom: 20px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* ── kutular ──────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; border-top: 0; padding-top: 0; }

.summary ul { padding-left: 1.1em; }

.callout {
  border-left: 3px solid var(--accent-fill);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 20px 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h2 { margin-top: 0; border-top: 0; padding-top: 0; font-size: 1.5rem; }

.warn {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.toc { font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; columns: 2 15rem; column-gap: 24px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc p { margin: 0; font-weight: 600; color: var(--text-2); }

.list-cards { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; }
.list-cards li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.list-cards strong { display: block; }

/* sahibin dolduracağı yer — yayından önce kalmamalı (scripts/site-check.mjs) */
mark.owner {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
}

/* ── ana sayfa ────────────────────────────────────────────────────────── */

.hero { text-align: center; padding: 28px 0 8px; }
/* ⟨Claude · ICON-2 · 16-10-2026⟩ Kahraman görseli C1-1 (koyu zeminli kare, şişe etiketi okunsun diye 168 → 280 px). */
.hero img { display: block; margin: 0 auto 12px; width: min(280px, 100%); height: auto; border-radius: 28px; }
.hero h1 { margin-top: 0; font-size: clamp(3rem, 14vw, 4.25rem); }
.hero .lead { max-width: 32rem; margin: 0 auto 8px; }

.links { list-style: none; padding: 0; display: grid; gap: 12px; margin: 28px 0; }
.links li { display: flex; margin: 0; }
.links a {
  display: block;
  flex: 1;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
}
.links a:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.links .t { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.links .d { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }
/* bölünmez boşluk: ok son kelimeden ayrılıp tek başına alt satıra düşmesin */
.links .t::after { content: "\00a0→"; color: var(--accent); }

/* ── alt bilgi ────────────────────────────────────────────────────────── */

.foot {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.foot nav a { color: var(--text-2); }
.foot p { margin: 4px 0; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .top { padding-top: 32px; }
  .links { grid-template-columns: repeat(3, 1fr); }
}

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

@media print {
  .lang, .pages, .skip, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}
