/* Gosvia — gosvia.com ortak stil dosyası. Harici yazı tipi, betik ya da izleyici yok. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #1a1d23;
  --muted: #5b6270;
  --border: #dde2ea;
  --accent: #1a73d9;
  --accent-text: #ffffff;
  --mark-bg: #fff1a8;
  --mark-text: #3d3200;
  --radius: 10px;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1b1e24;
    --text: #e8eaee;
    --muted: #a0a7b4;
    --border: #2e333c;
    --accent: #6cb0ff;
    --accent-text: #0b1220;
    --mark-bg: #5a4a00;
    --mark-text: #fff3b0;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
}
.skip:focus { left: 0.5rem; }

/* Üst ve alt bilgi */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1rem 16px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--accent); }

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 16px 3rem; }

.site-footer {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 16px 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }

/* Belge sayfaları */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.85rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; padding-top: 0.25rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
h2, h3 { scroll-margin-top: 1rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }
li > ul, li > ol { margin: 0.3rem 0 0.3rem; }

.doc { overflow-wrap: break-word; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
pre { background: var(--surface); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; padding: 0; }

mark.todo {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0 0.2em;
  border-radius: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  table { min-width: 34rem; }
}

.toc {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
}
.toc summary { cursor: pointer; font-weight: 650; }
.toc ol { margin: 0.5rem 0 0; }
.toc li { margin: 0.15rem 0; }

/* Ana sayfa */
.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 0.75rem; }
.hero .lead { font-size: 1.2rem; color: var(--text); max-width: 34rem; }
.badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.links { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin-top: 2rem; }
.links a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.links a:hover { border-color: var(--accent); }
.links span { display: block; color: var(--muted); font-size: 0.92rem; }

@media print {
  .site-header nav, .skip, .toc { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
