/* ==========================================================================
   base.css — ortak zemin
   reset · renk/tema mekanizması · tipografi · odak · @font-face
   Hiçbir tasarım bileşeni (kart, buton, tablo) burada yok.
   ========================================================================== */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ---------- native controls follow the active theme ---------- */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* ==========================================================================
   Fonts — every face used by either design lives here.
   24 monospace families (terminal cycler) + IBM Plex Sans / Condensed (blueprint).
   ========================================================================== */

@font-face { font-family:"JetBrains Mono"; src:url("/fonts/jetbrains-latin.woff2") format("woff2"); font-weight:400 700; font-style:normal; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family:"JetBrains Mono"; src:url("/fonts/jetbrains-latin-ext.woff2") format("woff2"); font-weight:400 700; font-style:normal; font-display:swap; unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }

@font-face { font-family:"Cousine"; src:url("/fonts/cousine-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Cousine"; src:url("/fonts/cousine-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Cascadia Code"; src:url("/fonts/cascadia-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Cascadia Code"; src:url("/fonts/cascadia-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Fira Code"; src:url("/fonts/firacode-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Fira Code"; src:url("/fonts/firacode-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Hack"; src:url("/fonts/hack-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Hack"; src:url("/fonts/hack-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Victor Mono"; src:url("/fonts/victor-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Victor Mono"; src:url("/fonts/victor-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("/fonts/plex-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"IBM Plex Mono"; src:url("/fonts/plex-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Inconsolata"; src:url("/fonts/inconsolata-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Inconsolata"; src:url("/fonts/inconsolata-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Maple Mono"; src:url("/fonts/maple-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Maple Mono"; src:url("/fonts/maple-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Geist Mono"; src:url("/fonts/geist-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Geist Mono"; src:url("/fonts/geist-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
/* Departure Mono ships a single weight only. Declaring the missing bold face
   used to fire a 404 on every visit; the browser now synthesizes bold from
   the one real file instead of requesting one that does not exist. */
@font-face { font-family:"Departure Mono"; src:url("/fonts/departure-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Monaspace Argon"; src:url("/fonts/monaspace-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Monaspace Argon"; src:url("/fonts/monaspace-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Commit Mono"; src:url("/fonts/commit-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Commit Mono"; src:url("/fonts/commit-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Source Code Pro"; src:url("/fonts/sourcecode-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Source Code Pro"; src:url("/fonts/sourcecode-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Martian Mono"; src:url("/fonts/martian-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Martian Mono"; src:url("/fonts/martian-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Space Mono"; src:url("/fonts/space-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Space Mono"; src:url("/fonts/space-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Atkinson Hyperlegible Mono"; src:url("/fonts/atkinson-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Atkinson Hyperlegible Mono"; src:url("/fonts/atkinson-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Intel One Mono"; src:url("/fonts/intelone-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Intel One Mono"; src:url("/fonts/intelone-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Overpass Mono"; src:url("/fonts/overpass-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Overpass Mono"; src:url("/fonts/overpass-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Azeret Mono"; src:url("/fonts/azeret-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Azeret Mono"; src:url("/fonts/azeret-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Recursive Mono"; src:url("/fonts/recursive-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Recursive Mono"; src:url("/fonts/recursive-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Spline Sans Mono"; src:url("/fonts/spline-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Spline Sans Mono"; src:url("/fonts/spline-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Noto Sans Mono"; src:url("/fonts/notomono-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Noto Sans Mono"; src:url("/fonts/notomono-bold.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
/* Fragment Mono ships a single weight only (no bold upstream); the browser
   synthesizes bold from the one real file rather than requesting a 404. */
@font-face { font-family:"Fragment Mono"; src:url("/fonts/fragment-regular.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }

/* IBM Plex Sans — variable (400 → 600), self-hosted, no third-party request */
@font-face { font-family:"IBM Plex Sans"; src:url("/fonts/plexsans-latin.woff2") format("woff2"); font-weight:400 600; font-style:normal; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family:"IBM Plex Sans"; src:url("/fonts/plexsans-latin-ext.woff2") format("woff2"); font-weight:400 600; font-style:normal; font-display:swap; unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family:"IBM Plex Sans Condensed"; src:url("/fonts/plexcond-latin.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family:"IBM Plex Sans Condensed"; src:url("/fonts/plexcond-latin-ext.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }

/* ==========================================================================
   Type — one variable drives every face on both designs.
   The blueprint design keeps its own condensed label face; only body text follows.
   ========================================================================== */
:root, html {
    --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
    --vh: 100vh;
}
html[data-font="cousine"]   { --font:"Cousine", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="cascadia"]   { --font:"Cascadia Code", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="firacode"]   { --font:"Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="hack"]       { --font:"Hack", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="victor"]     { --font:"Victor Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="plex"]       { --font:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="inconsolata"]{ --font:"Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="maple"]      { --font:"Maple Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="geist"]      { --font:"Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="departure"]  { --font:"Departure Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="monaspace"]  { --font:"Monaspace Argon", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="commit"]     { --font:"Commit Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="sourcecode"] { --font:"Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="martian"]    { --font:"Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="space"]      { --font:"Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="atkinson"]   { --font:"Atkinson Hyperlegible Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="intelone"]   { --font:"Intel One Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="overpass"]   { --font:"Overpass Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="fragment"]   { --font:"Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="azeret"]     { --font:"Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="recursive"]  { --font:"Recursive Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="spline"]     { --font:"Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="notomono"]   { --font:"Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
html[data-font="plexsans"]   { --font:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[data-font="plexcond"]   { --font:"IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif; }

/* ---------- language ----------
   The document ships in Turkish; the other language is hidden.
   Switching flips one attribute on <html>, nothing else.               */
html[data-lang="tr"] [lang="en"],
html[data-lang="en"] [lang="tr"] { display: none; }
html { text-size-adjust: 100%; }

/* ---------- a11y ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent-color, #0969da);
    outline-offset: 2px;
}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] summary:focus-visible,
html[data-theme="dark"] [tabindex]:focus-visible { outline-color: var(--accent-color, #58a6ff); }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: clamp(8px, 2vw, 16px); top: -60px; z-index: 20;
    background: var(--accent-color, #0969da); color: var(--accent-ink, #fff);
    padding: 10px 14px; border-radius: 4px; font-size: 13px;
    text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: clamp(8px, 2vw, 16px); }

/* ---------- JavaScript off ---------- */
.noscript-note {
    background:#fff8c5; border:1px solid #d4a72c; color:#7d4e00;
    padding:clamp(8px,1.6vw,12px) clamp(10px,1.8vw,14px);
    border-radius:4px; font-size:clamp(11px,1.4vw,13px); line-height:1.6;
    margin-bottom:clamp(12px,2vw,16px); overflow-wrap:anywhere;
}
html[data-theme="dark"] .noscript-note { background:#3a2d00; border-color:#9e6a03; color:#e3b341; }
.noscript-note a { color: inherit; }

/* ---------- content that could not be loaded ---------- */
.content-error {
    font-size: clamp(12px, 1.6vw, 15px); line-height: 1.7;
    border: 1px dashed var(--border-color, #d0d7de);
    padding: clamp(14px, 3vw, 22px); border-radius: 4px;
    color: var(--dim-text, #57606a);
    overflow-wrap: anywhere;
}

/* ---------- misc ---------- */
img, svg { max-width: 100%; }
::selection { background: var(--accent-color, #0969da); color: var(--accent-ink, #fff); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
