/* =========================================================
   divizyon.zerotone.house

   Zerotone'un ince çizgi / geniş aralık minimalizmi
   + Divizyon'un amber vurgusu, koyu zeminde.

   Çizgiler ince, YAZI DEĞİL: hairline'lar 1px'de kalır ama metin
   400–500 ağırlıkta durur. İnce gövde ağırlıkları koyu zeminde
   okunmuyordu; minimalizm çizgide ve boşlukta, tipografide değil.
   ========================================================= */

:root {
    /* --- KOYU (varsayılan) — Zerotone'un derin siyahı --- */
    --ink:        #0a0a0a;
    --ink-raised: #101010;
    --ink-hover:  #171717;

    --line:       rgba(255, 255, 255, 0.16);
    --line-soft:  rgba(255, 255, 255, 0.09);

    --text:       #f4f1ec;
    --muted:      #b0ada6;
    --faint:      #83807a;

    --amber:      #e8ae5c;

    --tracking:   0.2em;
}

/* --- AÇIK — Divizyon'un krem zemini ---
   Amber koyu zeminde parlak (#e8ae5c) durur ama krem üzerinde 2:1'e düşüp
   okunmaz; açık temada koyulaştırılmış tonu kullanılır. */
:root[data-theme="light"] {
    --ink:        #faf7f2;
    --ink-raised: #ffffff;
    --ink-hover:  #f1ebe1;

    --line:       rgba(20, 18, 15, 0.20);
    --line-soft:  rgba(20, 18, 15, 0.11);

    --text:       #14120f;
    --muted:      #55504a;
    --faint:      #7b756b;

    --amber:      #a8681c;
}

/* Tarayıcının kendi arayüzü (kaydırma çubuğu, form öğeleri) de temayı izler */
:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Geniş aralıklı versal etiket — Zerotone'un imzası.
   Aralık 0.2em'e indi ve ağırlık 500'e çıktı: 0.28em/300'de
   harfler dağılıp okunaksızlaşıyordu. */
.kicker {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: var(--tracking);
    text-transform: uppercase;
}

/* ---------- Üst şerit ---------- */

.topbar { border-bottom: 1px solid var(--line-soft); }

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 60px;
}

.mark {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* "021" — Zerotone'un geometrik rakam markası */
.mark-021 {
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1;
    color: var(--text);
}

.mark-name {
    color: var(--text);
    line-height: 1;
}

.mark-divider {
    width: 1px;
    height: 20px;
    background: var(--line);
}

.mark-divizyon { height: 17px; width: auto; display: block; }

.topbar-meta { color: var(--faint); white-space: nowrap; }

.topbar-sag {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Temaya göre logo takası — beyaz lockup krem zeminde görünmez */
.only-light { display: none; }
:root[data-theme="light"] .only-dark { display: none; }
:root[data-theme="light"] .only-light { display: block; }

/* Tema düğmesi */
.tema {
    appearance: none;
    background: none;
    border: 1px solid var(--line-soft);
    color: var(--faint);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tema:hover {
    color: var(--amber);
    border-color: color-mix(in srgb, var(--amber) 45%, transparent);
}

.tema svg { width: 16px; height: 16px; }

/* Koyu temada ay, açık temada güneş görünür.
   Seçiciler `.tema svg`'den daha özgül tutulur, yoksa oradaki display
   kuralı gizlenen ikonu geri açar. */
.tema .tema-gunes { display: none; }
.tema .tema-ay { display: block; }
:root[data-theme="light"] .tema .tema-gunes { display: block; }
:root[data-theme="light"] .tema .tema-ay { display: none; }

/* ---------- Hero ----------
   Kısa tutulur: kartlar ilk ekranda görünmeli, hero perde olmamalı. */

.hero {
    border-bottom: 1px solid var(--line-soft);
    padding: 3.25rem 0 2.75rem;
}

.hero-eyebrow {
    color: var(--amber);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    max-width: 28ch;
}

.hero-lede {
    margin-top: 1rem;
    max-width: 54ch;
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- Bölümler ---------- */

main { flex: 1; }

.section { padding: 2.5rem 0 0; }

.section:last-of-type { padding-bottom: 3.5rem; }

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-head h2 {
    color: var(--text);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: var(--tracking);
    text-transform: uppercase;
}

.section-head .count {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--faint);
}

.section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

/* ---------- Yönlendirme kartları ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.tile {
    background: var(--ink);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    position: relative;
    transition: background 0.35s ease;
    min-height: 116px;
}

.tile:hover { background: var(--ink-hover); }

/* Üstte beliren amber hairline */
.tile::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover::before { transform: scaleX(1); }

.tile-index {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--faint);
    padding-top: 0.3rem;
    transition: color 0.35s ease;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.tile:hover .tile-index { color: var(--amber); }

/* Ürün kartlarının işareti — numaralı dizinin yerine geçer.
   Aynı hairline dili: dolgusuz kare, 1px kenar, ince çizgi ikon. */
.tile-mark {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color 0.35s ease, border-color 0.35s ease;
}

.tile-mark-svg { width: 30px; height: 30px; display: block; }

.tile:hover .tile-mark {
    color: var(--amber);
    border-color: color-mix(in srgb, var(--amber) 45%, transparent);
}

.tile-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tile-title {
    display: block;
    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.3;
}

.tile-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.tile-meta {
    display: block;
    margin-top: auto;
    padding-top: 0.9rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color 0.35s ease;
}

.tile:hover .tile-meta { color: var(--muted); }

.tile-arrow {
    flex-shrink: 0;
    align-self: center;
    width: 24px;
    height: 24px;
    color: var(--faint);
    transition: color 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover .tile-arrow { color: var(--amber); }

.tile:hover .tile-arrow.is-external { transform: translate(4px, -4px); }
.tile:hover .tile-arrow.is-internal { transform: translateX(6px); }

/* ---------- Footer ---------- */

footer {
    border-top: 1px solid var(--line-soft);
    padding: 1.75rem 0;
}

footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-tagline { color: var(--faint); }
.footer-tagline b { color: var(--muted); font-weight: 500; }

.footer-note {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ---------- Alt sayfalar ---------- */

.standalone {
    flex: 1;
    display: flex;
    align-items: center;
}

.standalone .wrap {
    padding-top: 4rem;
    padding-bottom: 5rem;
    max-width: 780px;
}

.standalone-eyebrow {
    color: var(--amber);
    margin-bottom: 1.25rem;
}

.standalone h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.standalone p {
    margin-top: 1.25rem;
    color: var(--muted);
    max-width: 56ch;
}

.standalone code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
    color: var(--text);
    background: var(--ink-raised);
    border: 1px solid var(--line-soft);
    padding: 0.1em 0.4em;
}

.actions {
    margin-top: 2.25rem;
    display: flex;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    width: fit-content;
    flex-wrap: wrap;
}

.btn {
    background: var(--ink);
    padding: 0.9rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.btn:hover { background: var(--ink-hover); color: var(--amber); }

.btn svg { width: 15px; height: 15px; }

/* ---------- Erişilebilirlik ---------- */

a:focus-visible {
    outline: 1px solid var(--amber);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .wrap { padding: 0 1.5rem; }
    .hero { padding: 2.5rem 0 2.25rem; }
    .topbar-meta { display: none; }
    .tile { padding: 1.35rem 1.35rem; min-height: 0; }
}

@media (max-width: 620px) {
    .grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
    .mark-divizyon { height: 15px; }
    footer .wrap { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
