/* Vitrin İstanbul - one stylesheet, system fonts only (no font service, nothing leaves the reader's browser). */

:root {
  /* Palette sampled from branding/vitrin-logo-1024.png: gold V #edc154, ring #d59c30, field #000814, globe #104279 */
  --gold: #edc154;
  --gold-deep: #d59c30;
  --navy: #000814;
  --globe: #104279;
  --paper: #ffffff;
  --soft: #f2f4f7;
  --line: #dde2e9;
  --ink: #0b1320;
  --muted: #566170;
  --brand: var(--navy);
  --brand-ink: #ffffff;
  --accent: var(--gold-deep);
  --link: var(--globe);
  --cta: var(--gold);
  --cta-ink: var(--navy);
  --focus: #1f6feb;
  --sample: #fff4cc;
  --sample-ink: #5a4500;
  --shadow: 0 1px 2px rgba(0, 8, 20, .06), 0 4px 16px rgba(0, 8, 20, .06);
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 6px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #050d18;
    --soft: #0c1726;
    --line: #1d2c40;
    --ink: #e9edf3;
    --muted: #a6b1c0;
    --accent: var(--gold);
    --link: var(--gold);
    --focus: #6ea8ff;
    --sample: #3a3000;
    --sample-ink: #ffe28a;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button, input { font: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 12px; border: 2px solid var(--focus); }
.skip:focus { top: 8px; }
.icon { flex: none; vertical-align: middle; }
.js-only { display: none; }
.js .js-only { display: list-item; }

.sample-banner {
  background: var(--sample); color: var(--sample-ink); text-align: center;
  font-size: .875rem; font-weight: 600; padding: 6px 16px;
}

/* ---------- masthead ---------- */
.masthead { background: var(--brand); color: var(--brand-ink); border-bottom: 3px solid var(--gold-deep); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { display: block; width: 56px; height: 56px; flex: none; }
.brand-mark img { width: 56px; height: 56px; }
.brand-name { font: 700 1.5rem/1.1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand-a { color: #fff; }
.brand-b { font-weight: 400; color: var(--gold); }
.search-mini { display: flex; align-items: center; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 2px 4px 2px 14px; }
.search-mini input { width: 12rem; border: 0; background: transparent; color: inherit; padding: 6px 0; min-width: 0; }
.search-mini input::placeholder { color: rgba(255, 255, 255, .75); }
.search-mini input:focus { outline: none; }
.search-mini:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-mini button { border: 0; background: transparent; color: inherit; padding: 6px 8px; cursor: pointer; border-radius: 999px; }

.sections { background: var(--paper); border-bottom: 1px solid var(--line); }
.sections ul {
  display: flex; gap: 4px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sections a {
  display: block; padding: 12px 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.sections a:hover { border-bottom-color: var(--line); }
.sections a[aria-current="page"] { border-bottom-color: var(--cat, var(--accent)); }

@media (max-width: 640px) {
  .masthead-row { flex-wrap: wrap; }
  .search-mini { flex: 1 1 100%; }
  .search-mini input { width: 100%; }
  .brand-name { font-size: 1.3rem; }
}

main.wrap { padding-top: 24px; padding-bottom: 48px; }
main:focus { outline: none; }

/* ---------- story cards ---------- */
.story { min-width: 0; }
.story-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.story-link:hover .story-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story-media { position: relative; aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-media.no-image {
  background: var(--navy) url(/img/logo-112.png) center / auto 56% no-repeat;
}
.badge-video {
  position: absolute; left: 10px; bottom: 10px; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff;
}
.story-text { padding-top: 10px; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--cat, var(--accent)); border-radius: 2px; }
.story-title { font: 700 1.125rem/1.3 var(--serif); margin: 4px 0 6px; color: var(--ink); }
.story-summary { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.story-time { font-size: .8rem; color: var(--muted); }

.story-lead .story-title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.15; }
.story-lead .story-summary { font-size: 1.05rem; color: var(--ink); opacity: .85; }

.story-side .story-link { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.story-side .story-text { padding-top: 0; }
.story-side .story-title { font-size: 1rem; hyphens: auto; }
@media (max-width: 420px) { .story-side .story-link { grid-template-columns: 96px 1fr; gap: 10px; } }
.sections ul::-webkit-scrollbar { display: none; }

.story-row { border-bottom: 1px solid var(--line); padding: 16px 0; }
.story-row .story-link { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.story-row .story-text { padding-top: 0; }
.story-row .story-title { font-size: 1.3rem; }
@media (max-width: 640px) {
  .story-row .story-link { grid-template-columns: 112px 1fr; gap: 12px; }
  .story-row .story-title { font-size: 1.05rem; }
  .story-row .story-summary { display: none; }
}

/* ---------- home ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.front-top { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .front-top .story { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .front-top .story:last-child { border-bottom: 0; }
}
.block { padding-top: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--cat, var(--ink)); padding-top: 8px; margin-bottom: 16px; }
.block-head h2 { margin: 0; font: 700 1.35rem/1.2 var(--serif); }
.more { font-weight: 600; font-size: .9rem; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 520px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid .story { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .grid .story-link { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
  .grid .story-text { padding-top: 0; }
  .grid .story-summary { display: none; }
  .grid .story-title { font-size: 1rem; }
}

/* ---------- listing / page heads ---------- */
.page-head { border-bottom: 3px solid var(--cat, var(--ink)); padding-bottom: 12px; margin-bottom: 8px; }
.page-head h1 { margin: 0; font: 700 clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem)/1.15 var(--serif); }
.eyebrow { margin: 0 0 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.page-of { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; flex-wrap: wrap; }
.pager a { font-weight: 600; }
.empty-state { text-align: center; padding: 64px 0; }
.empty-state h1, .empty-state h2 { font: 700 1.8rem/1.2 var(--serif); }
.button { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); text-decoration: none; font-weight: 600; margin: 4px; }
.button-ghost { background: transparent; color: var(--link); border: 1px solid var(--muted); }

/* ---------- article ---------- */
.article { max-width: 860px; margin: 0 auto; }
.crumbs { font-size: .875rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.article-title { font: 700 clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem)/1.12 var(--serif); margin: 0 0 14px; letter-spacing: -.005em; }
.article-summary { font-size: 1.2rem; line-height: 1.5; margin: 0 0 16px; color: var(--ink); opacity: .9; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author { font-weight: 700; color: var(--ink); }
.article-media { margin: 20px 0; }
.article-media img, .article-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; }
.article-media video { object-fit: contain; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr) 180px; } .share { position: sticky; top: 16px; align-self: start; } }
.article-body { font: 400 1.15rem/1.7 var(--serif); }
.article-body p { margin: 0 0 1.1em; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); }
.tags a { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.share-title { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .share ul { flex-direction: column; } }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink);
  text-decoration: none; font-size: .875rem; cursor: pointer; width: 100%;
}
.share a:hover, .share button:hover { background: var(--soft); }
@media (max-width: 899px) { .share a, .share button { width: auto; } .share a span, .share button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.share-status { min-height: 1.4em; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- search ---------- */
.search-page { margin: 16px 0; }
.search-page label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.search-row button { padding: 10px 18px; border: 0; border-radius: var(--radius); background: var(--cta); color: var(--cta-ink); font-weight: 600; cursor: pointer; }
.search-count { color: var(--muted); min-height: 1.5em; }
mark { background: var(--gold); color: inherit; padding: 0 1px; }
@media (prefers-color-scheme: dark) { mark { background: #6b5500; color: #fff; } }

/* ---------- prose pages ---------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font: 700 2.2rem/1.15 var(--serif); }
.prose p { font-size: 1.1rem; }
/* Legal pages (static text): headings and lists in the reading column. */
.legal h2 { font: 700 1.35rem/1.25 var(--serif); margin: 2rem 0 .5rem; }
.legal ul, .legal ol { font-size: 1.1rem; padding-left: 1.4rem; }
.legal li { margin: .3rem 0; }
.legal-lead { color: var(--muted); }
.pending { color: var(--muted); font-style: italic; }
.masthead-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.masthead-list dt { font-weight: 700; }
.masthead-list dd { margin: 0; }
.social-list { padding: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand); color: var(--brand-ink); padding: 32px 0 16px; border-top: 3px solid var(--gold-deep); }
.footer-logo { display: block; margin-bottom: 8px; }
.footer-logo img { width: 96px; height: 96px; }
.footer-tagline { margin: 0 0 8px; color: var(--gold); font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.error-logo { display: block; margin: 0 auto 8px; }
.error-logo img { margin: 0 auto; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.footer-brand { font: 700 1.3rem/1.2 var(--serif); margin: 0 0 6px; }
.footer-desc { margin: 0; opacity: .85; font-size: .95rem; }
.footer-links, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a, .social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-links a:hover, .social a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 24px; padding-top: 12px; font-size: .85rem; opacity: .85; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .masthead, .sections, .share, .site-footer, .block { display: none; } }
