/* ===== Gazete kağıdı ===== */
/*
 * Yazı tipleri (app.css → :root):
 *   --f-mast  Grenze Gotisch: künye (gazete adı)
 *   --f-head  Archivo, dar (condensed) kesim: haber başlıkları, ara başlıklar, künye bilgileri
 *   --f-text  Newsreader: haber metni (optik boyutlu, küçük puntoda okunaklı)
 */
.paper {
  --ink-p: #1f1b15;
  --rule: rgba(31, 27, 21, .55);
  --rule-soft: rgba(31, 27, 21, .22);
  position: relative;
  /*
   * Sabit mantıksal boyut (1:1.4): sayfa içeriğe göre uzamaz, okuyucuda ekrana ölçeklenir.
   * Ölçüler js/layout/geometry.js ile aynı tutulmalı (dizgi motoru bunlara dayanır).
   */
  width: 1000px;
  height: 1400px;
  overflow: hidden;
  hyphens: auto;
  -webkit-hyphens: auto;
  color: var(--ink-p);
  font-family: var(--f-text);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  background-color: #f2e9d3;
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(255, 250, 235, .55) 0%, rgba(255, 250, 235, 0) 60%),
    radial-gradient(ellipse at 100% 0%, rgba(150, 110, 50, .14), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(150, 110, 50, .16), transparent 50%),
    linear-gradient(180deg, rgba(120, 90, 40, .05), rgba(120, 90, 40, .1));
  box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 18px 50px rgba(30, 20, 5, .28);
  text-rendering: optimizeLegibility;
}
/* Kağıt lifi / grenli doku */
.paper::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .35;
  mix-blend-mode: multiply;
}
/* Ortadan katlanma izi */
.paper::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%; height: 24px; transform: translateY(-50%);
  pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(80, 60, 25, .06) 45%, rgba(255, 255, 255, .25) 50%, rgba(80, 60, 25, .08) 55%, transparent);
}
.paper-in {
  position: relative; padding: 34px 44px 26px; height: 100%;
  display: flex; flex-direction: column;
}
/* Bulmaca sayfası: etkileşimli oyun, içeriği kadar uzayabilir (en az bir sayfa boyu). */
.paper.free { height: auto; min-height: 1400px; }
.paper.free .paper-in { height: auto; min-height: 1400px; }

/* ---- Künye (1. sayfa) ---- */
.mast { flex: none; height: 200px; overflow: hidden; }
.mast-top, .mast-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 600 semi-condensed 11.5px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .12em;
}
.mast-top { padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.mast-top .motto { font: italic 400 15px/1.3 var(--f-text); text-transform: none; letter-spacing: 0; }
.mast-mid { display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; gap: 12px; padding: 6px 0 4px; }
.mast-title {
  margin: 0; text-align: center; overflow-wrap: break-word;
  font: 700 124px/1 var(--f-mast);
  letter-spacing: 0; color: #17130e;
}
.ear {
  border: 1px solid var(--rule); padding: 8px 6px; text-align: center;
  display: grid; gap: 1px; font: 600 semi-condensed 11px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .08em;
}
.ear b { font: 800 condensed 30px/1.05 var(--f-head); letter-spacing: 0; }
.ear small { font-size: 10.5px; }
.mast-bar {
  border-top: 3px double var(--ink-p); border-bottom: 3px double var(--ink-p);
  padding: 6px 2px; font-weight: 700;
}
.mast-bar span:nth-child(2) { font: italic 400 14px/1.3 var(--f-text); text-transform: none; letter-spacing: 0; }

/* ---- İç sayfa başlığı ---- */
.runhead {
  flex: none; height: 52px; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px;
  border-bottom: 3px double var(--ink-p); padding-bottom: 6px;
  font: 600 semi-condensed 12px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .12em;
}
.runhead span:last-child { text-align: right; }
.rh-title { font: 700 40px/1 var(--f-mast); text-transform: none; letter-spacing: 0; text-align: center; }

/* ---- Tipografi ölçeği (başlık boyutları; dar kesim olduğundan bir kademe büyük) ---- */
.paper {
  --fs-1: 58px;  /* manşet */
  --fs-2: 42px;  /* büyük */
  --fs-3: 31px;  /* yatay */
  --fs-4: 24px;  /* dikey, kare */
  --fs-5: 20px;  /* kısa */
}

/*
 * ---- Sayfa ızgarası: 6 sütun, 14 px aralık (js/layout/geometry.js ile aynı) ----
 * Modüller mutlak konumludur; konum ve boylar dizgi motorunun düzeninden gelir (tarayıcıda
 * ölçülmüş yüksekliklerle). Alanın yüksekliği: ön sayfa 1080, iç sayfa 1178 px.
 */
.pgrid { position: relative; flex: none; margin: 14px 0 8px; }
.pbody { flex: 1 1 0; min-height: 0; margin: 14px 0 8px; display: flex; flex-direction: column; }
.paper.free .pbody { flex: none; }

/* ---- Modül ---- */
.mod {
  position: absolute; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule); padding: 11px 0 10px;
}
.mod.at-top { border-top-color: transparent; }
.mod > * { flex: none; }
.vrule { position: absolute; width: 1px; background: var(--rule-soft); }

/* Başlık bloğu: ara başlık (24 px) + başlık + künye. Yüksekliği ölçülür, dizgide açıkça verilir. */
.mh { display: flow-root; overflow: hidden; }
.kick {
  height: 18px; margin-bottom: 6px; padding-bottom: 3px; box-sizing: border-box; overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--rule-soft);
  font: 700 semi-condensed 11px/14px var(--f-head); text-transform: uppercase; letter-spacing: .12em;
}
.kick.corner { font: italic 600 14px/14px var(--f-text); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--ink-p); }
.hl {
  margin: 0 0 6px; overflow-wrap: break-word; hyphens: manual;
  font: 700 condensed var(--fs-4)/1.08 var(--f-head); letter-spacing: -.005em;
}
.hl.lv1 { font-size: var(--fs-1); font-weight: 800; line-height: 1.02; letter-spacing: -.01em; }
.hl.lv2 { font-size: var(--fs-2); font-weight: 800; line-height: 1.04; }
.hl.lv3 { font-size: var(--fs-3); }
.hl.lv4 { font-size: var(--fs-4); }
.hl.lv5 { font-size: var(--fs-5); }
.conthl .pref { font: 600 semi-condensed 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.byline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px;
  font: 500 semi-condensed 10.5px/1.5 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: #4b4336;
  border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  padding: 3px 0; margin-bottom: 7px;
}
.byline b { color: var(--ink-p); font-weight: 700; letter-spacing: .04em; }

/* Metin: modül içinde CSS sütunları (sütun aralığı = ızgara aralığı), satır 22 px. */
.txt {
  font-size: 15px; line-height: 22px; overflow: hidden;
  column-gap: 14px; column-fill: auto; orphans: 1; widows: 1;
}
/* Heceleme yalnızca metne eklenen yumuşak tirelerle (layout/hyphen.js): her tarayıcıda aynı kırılım. */
.txt p { margin: 0; text-indent: 1.2em; text-align: left; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.txt p.lead, .txt p.frag { text-indent: 0; }
.m-txt { column-count: 1; }

/* Vitrin spotu: en fazla --sp satır */
.spot {
  margin: 0; overflow: hidden; font: italic 400 16px/22px var(--f-text); text-align: left; hyphens: manual; -webkit-hyphens: manual;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--sp, 6);
}
.spot.free { display: block; }
.hl.lead { text-align: left; }

.empty-ed { text-align: center; padding: 120px 40px; font-size: 18px; }
.empty-ed h2 { font: 800 condensed 50px/1.05 var(--f-head); margin: 0 0 18px; }

.pfoot {
  flex: none; height: 30px; display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 8px;
  font: 600 semi-condensed 11px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .1em;
}

/* ---- Bölüm bandı (iç sayfa) ---- */
.sechead {
  flex: none; height: 40px; overflow: hidden; margin: 10px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
  white-space: nowrap; text-overflow: ellipsis;
  font: 800 condensed var(--fs-3)/1.05 var(--f-head); text-align: center; text-transform: uppercase; letter-spacing: .06em;
}

/* ---- Eylem satırı: ifade sayıları + mektup, ifade, kupür (30 px) ---- */
.sact-slot { height: 30px; box-sizing: border-box; padding-top: 4px; }
.sact {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 26px; border-top: 1px solid var(--rule-soft);
}

/* ---- Sayfa referansı: "→ Devamı s.X", "→ Sayfa X" (26 px; tıklanınca o sayfaya gider) ---- */
.jump {
  height: 22px; margin: 4px 0 0; text-align: right; white-space: nowrap; overflow: hidden;
  font: 700 semi-condensed 12px/22px var(--f-head); text-transform: uppercase; letter-spacing: .08em;
}
.pref {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit;
  text-transform: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.pref:hover, .pref:focus-visible { color: #000; }

/* ---- Görsel: kutu genişliğinde, yükseklik düzenden (oran 16:9–4:3), object-fit: cover ---- */
.mod .photo { margin: 0 0 10px; box-sizing: border-box; }
.mod .photo .ph { height: 100%; max-height: none; }

.rx { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; white-space: nowrap; font: 600 12px var(--f-head); }
.rx-i { padding: 0 3px; border-radius: 2px; }
.rx-i.mine { background: rgba(31, 27, 21, .1); }
.rx-sep { opacity: .5; padding: 0 2px; }
.sbtns { display: flex; gap: 2px; flex: none; }
.sa {
  display: grid; place-items: center; width: 26px; height: 24px; padding: 0; border: 0; border-radius: 2px;
  background: none; color: var(--ink-p); cursor: pointer; opacity: .7;
}
.sa:hover, .sa:focus-visible { opacity: 1; background: rgba(31, 27, 21, .08); }
.sa svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sa.on { opacity: 1; background: rgba(31, 27, 21, .12); }

/* ---- Okur Mektupları sayfası ---- */
.letters { flex: 1 1 0; min-height: 0; overflow: hidden; column-fill: auto; column-count: 3; column-gap: 28px; column-rule: 1px solid var(--rule-soft); }
.lt-group { break-inside: avoid-column; margin-bottom: 14px; }
.lt-to {
  margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--rule);
  font: 700 condensed var(--fs-5)/1.15 var(--f-head);
}
.lt-to i { font: italic 400 14px var(--f-text); }
.lt-to small { display: block; margin-top: 2px; font: 500 semi-condensed 10.5px var(--f-head); text-transform: uppercase; letter-spacing: .08em; }
.lt { margin: 0 0 9px; text-align: left; hyphens: auto; overflow-wrap: break-word; break-inside: avoid; }
.lt b { display: block; text-align: right; font-style: italic; font-size: 12.5px; margin-top: 2px; }
.lt b::before { content: "— "; }

/* ---- Bulmaca sayfası ---- */
.pz { display: grid; gap: 26px; }
.pz-h { margin: 0 0 10px; font: 800 condensed var(--fs-4)/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.pz-msg { min-height: 1.4em; margin: 8px 0 0; font-style: italic; }
.pz-sudoku { border-top: 1px solid var(--rule); padding-top: 14px; }
.pz-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; }
.cw { --cw-cell: 52px; display: grid; gap: 0; border: 2px solid var(--ink-p); background: var(--ink-p); }
.cw-x { width: var(--cw-cell); height: var(--cw-cell); background: var(--ink-p); }
.cw-c { position: relative; width: var(--cw-cell); height: var(--cw-cell); background: #f2e9d3; box-shadow: inset 0 0 0 .5px var(--ink-p); }
.cw-c.on { background: #e8dbbd; }
.cw-n { position: absolute; top: 2px; left: 4px; font: 600 11px/1 var(--f-head); pointer-events: none; }
.cw-c input {
  width: 100%; height: 100%; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; color: var(--ink-p);
  text-align: center; text-transform: uppercase; caret-color: transparent; cursor: pointer;
  font: 700 26px/1 var(--f-text);
}
.cw-c input:focus { outline: 2px solid var(--ink-p); outline-offset: -2px; box-shadow: none; }
.cw-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 14.5px; }
.cw-clues h4 { margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); font: 700 semi-condensed 11.5px var(--f-head); text-transform: uppercase; letter-spacing: .12em; }
.cw-clues ol { list-style: none; margin: 0; padding: 0; }
.cw-clues li { padding: 3px 0; cursor: pointer; line-height: 1.35; }
.cw-clues li b { display: inline-block; min-width: 1.4em; }
.cw-clues li i { opacity: .7; }
.pz-cross.done .cw-c, .pz-sudoku.done .sd-c { background: #e8dbbd; }
.sd { display: grid; grid-template-columns: repeat(9, 72px); width: max-content; margin: 0 auto; border: 2px solid var(--ink-p); }
.sd-c {
  display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 0;
  border-right: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  background: #f2e9d3; color: #5c5243; font: 400 32px/1 var(--f-text); cursor: pointer;
}
.sd-c.given { color: var(--ink-p); font-weight: 700; cursor: default; }
.sd-c.br { border-right: 2px solid var(--ink-p); }
.sd-c.bb { border-bottom: 2px solid var(--ink-p); }
.sd-c:focus-visible { outline: 2px solid var(--ink-p); outline-offset: -3px; }

/* ---- Son ekran ---- */
.endcard { width: 1000px; height: 700px; display: grid; place-items: center; background: #f2e9d3; color: #1f1b15; }
.end-in { text-align: center; font-family: var(--f-text); }
.end-t { margin: 0 0 10px; font: 800 condensed 44px/1.1 var(--f-head); }
.end-s { margin: 0 0 22px; font-size: 20px; }
.end-c { margin: 0; font: 600 20px var(--f-head); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.end-j { margin: 26px 0 0; font-size: 18px; }
.end-j a { text-decoration: underline; text-underline-offset: 3px; }

/* Arşivden gelen bağlantıyla vurgulanan haber */
.mod.hilite { animation: hilite 2.6s ease-out 1 both; }
@keyframes hilite {
  0%, 40% { background: rgba(255, 214, 90, .55); box-shadow: 0 0 0 6px rgba(255, 214, 90, .55); }
  100% { background: rgba(255, 214, 90, .18); box-shadow: 0 0 0 6px rgba(255, 214, 90, .18); }
}

/* ===== Eski fotoğraf efekti (keskinliği bozmadan) ===== */
.photo {
  margin: 4px 0 9px; padding: 4px; break-inside: avoid; box-sizing: border-box;
  background: #ece1c6; border: 1px solid rgba(60, 45, 20, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 1px rgba(0, 0, 0, .08);
}
.photo .ph {
  position: relative; width: 100%; max-height: 360px; overflow: hidden; background: #d8ccae;
}
.photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  /* sepya, hafif soluk renk, yükseltilmiş kontrast – bulanıklık yok */
  filter: sepia(.55) saturate(.7) contrast(1.12) brightness(.95) hue-rotate(-6deg);
}
.photo img:not([src]) { visibility: hidden; }
/* Gren + kenar kararması */
.photo .ph::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(70, 45, 15, .42) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: .55;
}
/* Çizikler, toz ve yıpranmış kenarlar */
.photo .ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M62 0 L58 300' stroke='%23fff' stroke-opacity='.35' stroke-width='.8'/%3E%3Cpath d='M271 0 C268 90 274 180 270 300' stroke='%23fff' stroke-opacity='.22' stroke-width='.6'/%3E%3Cpath d='M330 40 L352 120' stroke='%23000' stroke-opacity='.25' stroke-width='.7'/%3E%3Cpath d='M120 210 C160 200 190 230 230 222' stroke='%23fff' stroke-opacity='.3' stroke-width='.7'/%3E%3Cpath d='M20 80 L44 72' stroke='%23000' stroke-opacity='.3' stroke-width='.6'/%3E%3C/g%3E%3Cg fill='%23fff' fill-opacity='.45'%3E%3Ccircle cx='88' cy='54' r='1.2'/%3E%3Ccircle cx='310' cy='230' r='1'/%3E%3Ccircle cx='205' cy='96' r='.8'/%3E%3Ccircle cx='150' cy='270' r='1.4'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.35'%3E%3Ccircle cx='240' cy='40' r='.9'/%3E%3Ccircle cx='40' cy='190' r='1.1'/%3E%3Ccircle cx='365' cy='160' r='.8'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, rgba(255, 245, 220, .18), transparent 8%, transparent 92%, rgba(255, 245, 220, .14));
  box-shadow: inset 0 0 0 1px rgba(40, 25, 5, .3), inset 0 0 18px rgba(60, 40, 10, .35);
}
