:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --surface-alt: #f0ede1;
  --border: #e5dfd1;
  --text: #1c1c18;
  --muted: #5c5f63;
  --ink: #0d1b2a;
  --emerald: #1b4332;
  --gold: #c2933d;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161511;
    --surface: #201e19;
    --surface-alt: #29261f;
    --border: #37332b;
    --text: #ede8de;
    --muted: #bdb6aa;
    --ink: #ede8de;
    --emerald: #7fbf9e;
    --gold: #d9a957;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald);
}

/* Dil: yalnızca etkin dilin blokları görünür */
html[lang='tr'] [data-lang='en'],
html[lang='en'] [data-lang='tr'] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst çubuk */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
html[lang='tr'] .lang-switch [data-set='tr'],
html[lang='en'] .lang-switch [data-set='en'] {
  background: var(--ink);
  color: var(--bg);
}

/* Giriş */
.hero {
  padding: 56px 0 40px;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.02em;
  margin: 12px 0 18px;
  max-width: 14em;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  margin: 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.badge small {
  font-weight: 500;
  opacity: 0.7;
}

/* Özellikler */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 0 56px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.feature .num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
}
.feature h3 {
  font-size: 19px;
  margin: 6px 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.quote {
  border-left: 3px solid var(--gold);
  background: var(--surface-alt);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
  margin-bottom: 56px;
}
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink);
}

/* Belge sayfaları */
.doc {
  max-width: 720px;
  padding: 24px 0 64px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
  margin: 8px 0 6px;
}
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 16px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--surface-alt);
  font-weight: 700;
}
.doc li {
  margin: 4px 0;
}
.note {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
}

/* Alt bilgi */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
