/* Elektro Haber: ana siteden bağımsız görsel dil. Kağıt zemin, düz dergi kartları, ince çizgiler. */

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
    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: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
    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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
    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;
}

:root {
    --paper: #ece9e1;
    --paper-deep: #e0dcd1;
    --ink: #17150f;
    --soft-ink: #5c574c;
    --line: #17150f;
    --cobalt: #1b3fa8;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body.eh {
    min-height: 100vh;
    margin: 0;
    background: var(--paper) url(img/grain.png);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* Üst bölüm: şube logosu, başlık, 50. yıl logosu */
.site-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
}
.site-head__org { display: flex; align-items: center; justify-self: start; gap: 12px; min-width: 0; text-decoration: none; }
.site-head__emo { width: auto; height: 64px; flex: none; }
.site-head__org-text { max-width: 190px; color: var(--soft-ink); font-size: 12px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.site-head__org-text strong { display: block; color: var(--ink); font-weight: 700; }
.site-head__org:hover .site-head__org-text { color: var(--ink); }
.site-head__title { font-family: var(--serif); font-size: 42px; line-height: 1; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.site-head__anniversary { justify-self: end; width: auto; height: 64px; }

/* Panelden yazılan bilgi yazısı */
.intro { max-width: 680px; margin-inline: auto; padding: 16px 20px 0; color: var(--soft-ink); font-family: var(--serif); font-size: 21px; line-height: 1.3; text-align: center; }

/* Düğmeler */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 28px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--solid:hover { background: #14307f; border-color: #14307f; color: #fff; }
.btn--small { min-height: 38px; padding: 6px 16px; }

/* Dergi kapağı: düz, kalınlıksız */
.issue-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;
    background: var(--paper-deep);
    box-shadow: 0 0 0 1px rgba(23, 21, 15, .14), 0 8px 18px -12px rgba(23, 21, 15, .45);
}
.issue-cover--empty { position: relative; overflow: hidden; color: #f4efe3; }
.issue-cover--dark-ink { color: #1b1712; }
.issue-cover--empty svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.issue-cover__text { position: relative; display: block; padding: 12% 10%; font-family: var(--serif); font-size: 24px; line-height: 1.05; }

.home { width: min(100%, 1160px); margin-inline: auto; padding: 24px 24px 64px; }

/* Güncel sayı: her zaman en üstte */
.featured {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}
.featured__cover { display: block; transition: transform .2s ease; }
.featured__cover:hover { transform: translateY(-4px); }
.featured__badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--cobalt);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.featured__title { margin-top: 10px; font-family: var(--serif); font-size: 76px; font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.featured__headline { margin-top: 8px; font-family: var(--serif); font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.featured__date { margin-top: 10px; font-size: 16px; font-weight: 500; }
.featured__info { color: var(--soft-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Tüm sayılar */
.archive { padding-top: 28px; scroll-margin-top: 8px; }
.archive__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.archive__title { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.1; }
.archive__year {
    margin: 28px 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(23, 21, 15, .25);
    color: var(--soft-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
}
.archive__empty { padding: 28px 0; color: var(--soft-ink); }

.years { display: flex; flex-wrap: wrap; gap: 4px; }
.years__item {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.years__item:hover { background: var(--paper-deep); }
.years__item.is-current { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 30px 22px; }
.issue-card { display: block; height: 100%; text-decoration: none; }
.issue-card .issue-cover { transition: transform .2s ease, box-shadow .2s ease; }
.issue-card:hover .issue-cover { box-shadow: 0 0 0 1px rgba(23, 21, 15, .3), 0 16px 24px -14px rgba(23, 21, 15, .55); transform: translateY(-4px); }
.issue-card__number { display: block; margin-top: 10px; font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.issue-card:hover .issue-card__number { color: var(--cobalt); }
.issue-card__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.issue-card__date { display: block; margin-top: 2px; color: var(--soft-ink); font-size: 13px; font-variant-numeric: tabular-nums; }

.empty { display: grid; justify-items: center; gap: 16px; padding: 80px 24px; text-align: center; }
.empty__title { font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1.1; }
.empty__detail { max-width: 700px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Okuma sayfası */
.reader-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px 16px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}
.reader-bar__back { justify-self: start; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.reader-bar__back:hover { color: var(--cobalt); }
.reader-bar__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 10px; font-weight: 400; text-align: center; }
.reader-bar__number { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.reader-bar__date { color: var(--soft-ink); font-size: 13px; }
.reader-bar__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.reader-bar__counter { margin-right: 6px; color: var(--soft-ink); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.tool:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.tool:disabled { opacity: .35; cursor: default; }

.reader__main { padding: 24px 16px 32px; }
.reader__headline { max-width: 880px; margin: 0 auto 16px; font-family: var(--serif); font-size: 28px; line-height: 1.2; text-align: center; }
.reader__status { padding: 60px 0; color: var(--soft-ink); text-align: center; }
.reader__status[hidden] { display: none; }
.reader__pages { --zoom: 1; --page-ratio: .707; overflow-x: auto; }
.page {
    width: calc(min(100%, 880px) * var(--zoom));
    aspect-ratio: var(--page-ratio);
    margin: 0 auto 18px;
    background: #fff;
    box-shadow: 0 16px 30px -18px rgba(23, 21, 15, .55), 0 0 0 1px rgba(23, 21, 15, .08);
}
.page canvas { display: block; width: 100%; height: 100%; }
.reader-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }

/* Telefon */
@media (max-width: 700px) {
    .site-head { gap: 8px; padding: 8px 12px; }
    .site-head__emo, .site-head__anniversary { height: 46px; }
    .site-head__org-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .site-head__title { font-size: 30px; }
    .intro { padding: 12px 16px 0; font-size: 18px; }
    .btn { padding-inline: 20px; }

    .home { padding: 16px 16px 48px; }
    .featured { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; padding-bottom: 26px; text-align: center; }
    .featured__cover { width: min(62%, 240px); }
    .featured__title { font-size: 56px; }
    .featured__headline { font-size: 22px; }
    .featured__actions { justify-content: center; }
    .archive { padding-top: 22px; }
    .archive__title { font-size: 30px; }
    .archive__year { margin-top: 22px; }
    .issue-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 24px 14px; }
    .issue-card__number { font-size: 21px; }
    .issue-card__date { font-size: 12px; }
    .issue-cover__text { font-size: 19px; }

    .reader-bar { grid-template-columns: auto 1fr; padding: 8px 12px; }
    .reader-bar__title { justify-content: flex-end; text-align: right; }
    .reader-bar__number { font-size: 22px; }
    .reader-bar__date { font-size: 12px; }
    .reader-bar__tools { grid-column: 1 / -1; justify-content: space-between; }
    .reader-bar__counter { margin-right: auto; }
    .reader__main { padding: 12px 0 24px; }
    .reader__headline { padding-inline: 16px; font-size: 22px; }
    .page { margin-bottom: 10px; }
    .reader-nav { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .featured__cover, .issue-card .issue-cover { transition: none; }
    .featured__cover:hover, .issue-card:hover .issue-cover { transform: none; }
}
