/* ==========================================================================
   Matbaa İçin Ne Derler — "Mürekkep" tasarım sistemi
   --------------------------------------------------------------------------
   İçerikte hiç fotoğraf bulunmadığı için (Waaiy'de _PHOTOS tüm kayıtlarda
   boş) tasarım tipografi ve üretilen tram (halftone) kapaklar üzerine kurulu.
   Renk paleti CMYK mürekkeplerinden geliyor.
   ========================================================================== */

/* --------------------------------------------------------------- değişkenler */

:root {
    --ink:        #0c0c11;
    --ink-raised: #14141b;
    --ink-sunken: #08080c;
    --line:       #26262f;
    --line-soft:  #1c1c24;

    --paper:      #f3f2ee;
    --paper-dim:  #a2a2ad;
    --paper-faint:#6e6e7a;

    --cyan:    #00b7f0;
    --magenta: #ff2e88;
    --yellow:  #ffd400;
    --key:     #f3f2ee;

    --accent: var(--cyan);

    --font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

    --wrap: 1240px;
    --wrap-narrow: 720px;
    --radius: 14px;
    --radius-sm: 8px;

    --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Açık tema — okuyucu tercihi ya da başlıktaki anahtar ile. */
:root[data-theme="light"] {
    --ink:        #fbfaf7;
    --ink-raised: #ffffff;
    --ink-sunken: #f1efe9;
    --line:       #ddd9d0;
    --line-soft:  #e9e6df;

    --paper:      #14141a;
    --paper-dim:  #5b5b67;
    --paper-faint:#84848f;

    --cyan:    #0089b8;
    --magenta: #d1006a;
    --yellow:  #a37a00;
    --key:     #14141a;

    --shadow: 0 16px 40px -24px rgba(20, 20, 26, .35);
}

/* ------------------------------------------------------------------- temel */

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

* { margin: 0; }

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

body {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.65;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

button, input { font: inherit; color: inherit; }

::selection {
    background: var(--magenta);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--accent);
    color: #08080c;
    padding: .7rem 1.2rem;
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------- düzen */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ------------------------------------------------------------- tipografi */

.display {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.kicker {
    font-family: var(--font-ui);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.meta {
    font-size: .8rem;
    color: var(--paper-faint);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.meta__dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid var(--paper);
}

.section-head__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    letter-spacing: -.02em;
}

.section-head__link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--paper-dim);
    white-space: nowrap;
    transition: color .25s var(--ease);
}
.section-head__link:hover { color: var(--accent); }

/* ------------------------------------------------------------ üst başlık */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__bar {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    min-height: 68px;
}

/* CMYK nokta dizisi — logonun mürekkep imzası. */
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-right: auto;
    min-width: 0;
}

.brand__dots {
    display: flex;
    gap: 3px;
    flex: none;
}

.brand__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    mix-blend-mode: screen;
}
.brand__dot:nth-child(1) { background: var(--cyan); }
.brand__dot:nth-child(2) { background: var(--magenta); }
.brand__dot:nth-child(3) { background: var(--yellow); }
.brand__dot:nth-child(4) { background: var(--paper); mix-blend-mode: normal; }

:root[data-theme="light"] .brand__dot { mix-blend-mode: multiply; }

.brand__name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(.95rem, 2.2vw, 1.15rem);
    letter-spacing: -.02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__link {
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--paper-dim);
    position: relative;
    padding-block: .35rem;
    transition: color .25s var(--ease);
    white-space: nowrap;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__tools {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: none;
}

.icon-btn {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 50%;
    color: var(--paper-dim);
    cursor: pointer;
    transition: all .25s var(--ease);
}

.icon-btn:hover {
    color: var(--ink);
    background: var(--accent);
    border-color: var(--accent);
}

.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }

/* Arama çekmecesi */
.searchbar {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
    border-top: 0 solid var(--line);
}
.searchbar[data-open="true"] {
    grid-template-rows: 1fr;
    border-top-width: 1px;
}
.searchbar__inner { overflow: hidden; }

.searchbar__form {
    display: flex;
    gap: .6rem;
    padding-block: 1rem;
}

.field {
    flex: 1;
    background: var(--ink-raised);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .75rem 1.2rem;
    color: var(--paper);
    min-width: 0;
}
.field::placeholder { color: var(--paper-faint); }
.field:focus { border-color: var(--accent); outline: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #08080c;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s var(--ease);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn--ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    filter: none;
}

/* --------------------------------------------------- üretilen tram kapak */

/*
   Görsel olmadığı için her kartın kapağı slug'dan türetilen bir mürekkep
   tonuyla üretilir: renkli tram noktaları + registration (kesim) işareti.
*/
.cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink-sunken);
    border-radius: var(--radius-sm);
    isolation: isolate;
}

.cover--cyan    { --tone: var(--cyan); }
.cover--magenta { --tone: var(--magenta); }
.cover--yellow  { --tone: var(--yellow); }
.cover--key     { --tone: var(--paper); }

/* Tram noktaları, köşeden köşeye seyrelen bir maskeyle. */
.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, var(--tone) 1.7px, transparent 1.9px);
    background-size: 11px 11px;
    -webkit-mask-image: linear-gradient(118deg, #000 4%, rgba(0, 0, 0, .35) 46%, transparent 78%);
            mask-image: linear-gradient(118deg, #000 4%, rgba(0, 0, 0, .35) 46%, transparent 78%);
    opacity: .75;
}

/* Mürekkep yayılımı */
.cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 120% at 8% 0%, color-mix(in srgb, var(--tone) 32%, transparent) 0%, transparent 62%);
}

.cover__mark {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    z-index: 2;
    opacity: .5;
}
.cover__mark::before,
.cover__mark::after {
    content: "";
    position: absolute;
    background: var(--tone);
}
.cover__mark::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.cover__mark::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

.cover__ring {
    position: absolute;
    inset: 5px;
    border: 1px solid var(--tone);
    border-radius: 50%;
}

.cover__label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tone);
}

.cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
}

/* ------------------------------------------------------------------ kart */

.card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    position: relative;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-soft);
    height: 100%;
}

.card__cover { transition: transform .5s var(--ease); }
.card:hover .card__cover { transform: translateY(-3px); }

.card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    line-height: 1.28;
    letter-spacing: -.015em;
}

/* Bağlantıyı kartın tamamına yay — hedef alan büyür. */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
}

.card__title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease); }
.card:hover .card__title a { background-size: 100% 1px; }

.card__excerpt {
    font-size: .9rem;
    color: var(--paper-dim);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Yatay kart (akış listesi) */
.card--row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.15rem;
    padding-bottom: 1.15rem;
}
.card--row .card__cover { width: 132px; flex: none; }
.card--row .card__title { font-size: 1rem; }
.card--row .card__body { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }

/* Numaralı liste (en çok okunanlar) */
.rank {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding-block: .95rem;
    border-bottom: 1px solid var(--line-soft);
    position: relative;
}
.rank:last-child { border-bottom: 0; }

.rank__no {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--paper-faint);
    flex: none;
    width: 1.7rem;
    transition: -webkit-text-stroke-color .3s var(--ease), color .3s var(--ease);
}
.rank:hover .rank__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

.rank__title {
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ----------------------------------------------------------------- manşet */

.lead {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.lead__flag {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}

.lead__flag::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--accent);
}

.lead__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.1rem, 5.6vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    margin-bottom: 1.1rem;
}

.lead__title a {
    background-image: linear-gradient(var(--paper), var(--paper));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .5s var(--ease);
}
.lead__title a:hover { background-size: 100% 2px; }

.lead__excerpt {
    font-size: 1.03rem;
    color: var(--paper-dim);
    max-width: 54ch;
    margin-bottom: 1.4rem;
}

.lead__cover { border-radius: var(--radius); }
.lead__cover .cover { aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* ----------------------------------------------------------------- ızgara */

.grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.2rem);
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

/* ----------------------------------------------------------------- yan blok */

.panel {
    background: var(--ink-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.panel + .panel { margin-top: 1.5rem; }

.panel__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}

.sidebar--sticky { position: sticky; top: 92px; }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }

.tag {
    font-size: .74rem;
    font-weight: 600;
    padding: .4rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--paper-dim);
    transition: all .25s var(--ease);
}
.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --------------------------------------------------------------- yazı sayfası */

.article-head {
    padding-block: clamp(2rem, 5vw, 3.2rem) 1.5rem;
    max-width: 780px;
}

.article-head__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin-block: .9rem 1.1rem;
}

.article-head__standfirst {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--paper-dim);
    max-width: 60ch;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--paper-faint);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; opacity: .5; }
.breadcrumb li { display: flex; align-items: center; }

/* Okuma ilerleme çubuğu */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
    z-index: 150;
    will-change: transform;
}

/* Markdown'dan üretilen gövde */
.prose {
    font-size: 1.07rem;
    line-height: 1.78;
    color: color-mix(in srgb, var(--paper) 88%, transparent);
    max-width: 68ch;
}

.prose > * + * { margin-top: 1.35em; }

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: var(--paper);
    margin-top: 2.2em;
    scroll-margin-top: 92px;
}

.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }

/* Başlıkların soluna mürekkep çizgisi */
.prose h2::before,
.prose h3::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: var(--accent);
    margin-bottom: .7rem;
}

.prose p { text-wrap: pretty; }

.prose strong { color: var(--paper); font-weight: 700; }

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }

.prose ul, .prose ol {
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.prose ul { list-style: none; }
.prose ol { list-style: decimal; }
.prose ol::marker, .prose li::marker { color: var(--accent); font-weight: 700; }

.prose ul > li { position: relative; }
.prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: .68em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.prose blockquote {
    border-left: 3px solid var(--magenta);
    padding: .4rem 0 .4rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--paper);
}

.prose code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--ink-raised);
    border: 1px solid var(--line);
    padding: .12em .4em;
    border-radius: 5px;
}

.prose pre {
    background: var(--ink-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }

.prose img { border-radius: var(--radius-sm); }

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}
.prose th, .prose td {
    border: 1px solid var(--line);
    padding: .6rem .8rem;
    text-align: left;
}
.prose th { background: var(--ink-raised); font-weight: 700; color: var(--paper); }

.prose hr { border: 0; border-top: 1px solid var(--line); }

.table-scroll { overflow-x: auto; }

/* Paylaş */
.share {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding-block: 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.share__label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--paper-faint);
    margin-right: .3rem;
}

/* Akordiyon / sekme blokları (Waaiy _ACORDIONS, _TABS) */
.accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.accordion + .accordion { margin-top: .6rem; }
.accordion__summary {
    padding: .95rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    background: var(--ink-raised);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.2rem;
    flex: none;
}
.accordion[open] .accordion__summary::after { content: "−"; }
.accordion__body { padding: 1.1rem 1.2rem; }

/* --------------------------------------------------------------- sayfalama */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding-block: 2.5rem;
}

.pagination__link {
    min-width: 42px;
    height: 42px;
    padding-inline: .8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--paper-dim);
    transition: all .25s var(--ease);
}
.pagination__link:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination__link[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
    color: #08080c;
}
.pagination__gap { color: var(--paper-faint); padding-inline: .3rem; }

/* ------------------------------------------------------------------ altlık */

.footer {
    background: var(--ink-sunken);
    border-top: 1px solid var(--line);
    margin-top: clamp(3rem, 7vw, 5rem);
    padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 2rem;
}

.footer__about {
    font-size: .9rem;
    color: var(--paper-dim);
    max-width: 42ch;
    margin-top: .9rem;
}

.footer__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--paper-faint);
    margin-bottom: .9rem;
}

.footer__links { display: flex; flex-direction: column; gap: .55rem; }
.footer__links a {
    font-size: .88rem;
    color: var(--paper-dim);
    transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--paper-faint);
}
.footer__bottom a:hover { color: var(--accent); }

/* ------------------------------------------------------------------- boş durum */

.empty {
    text-align: center;
    padding-block: clamp(3rem, 9vw, 6rem);
    max-width: 46ch;
    margin-inline: auto;
}

.empty__code {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4rem, 16vw, 8rem);
    line-height: 1;
    background: linear-gradient(120deg, var(--cyan), var(--magenta), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.empty__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-block: .5rem 1rem;
}

.empty__text { color: var(--paper-dim); margin-bottom: 1.8rem; }

/* ----------------------------------------------------------- duyarlı düzen */

@media (max-width: 1040px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar--sticky { position: static; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .lead { grid-template-columns: 1fr; }
    .lead__cover { order: -1; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__about { grid-column: 1 / -1; }

    .nav-toggle { display: grid; }

    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink-raised);
        border-bottom: 1px solid var(--line);
        padding: .5rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
        /* Kendi yüksekliği + başlık payı kadar yukarı: az öğe olduğunda
           yüzdesel kaydırma yetmiyor ve menü ekranın üstünden sarkıyordu. */
        transform: translateY(calc(-100% - 68px));
        visibility: hidden;
        transition: transform .35s var(--ease), visibility .35s;
        box-shadow: var(--shadow);
    }
    .nav[data-open="true"] {
        transform: translateY(0);
        visibility: visible;
    }
    .nav__link { padding-block: .85rem; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
    .nav__link::after { display: none; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .card--row .card__cover { width: 96px; }
    .footer__grid { grid-template-columns: 1fr; }
    .prose { font-size: 1.02rem; }
}

/* --------------------------------------------------------- erişilebilirlik */

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

@media print {
    .header, .footer, .share, .progress, .sidebar, .pagination { display: none !important; }
    body { background: #fff; color: #000; }
    .prose { max-width: none; }
}
