/* ============================================================
   bir ömürden enstantaneler
   Archivo (dar, kalın başlıklar) + Courier Prime (daktilo)
   ============================================================ */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-normal-100-900-latin.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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/fonts/archivo-normal-100-900-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-normal-400-latin.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: 'Courier Prime'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-normal-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/courier-normal-700-latin.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: 'Courier Prime'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/courier-normal-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-italic-400-latin.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: 'Courier Prime'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/courier-italic-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Renkler ---------- */
:root {
  --bg: #f4f4f2;
  --ink: #0b0b0b;
  --dim: #6d6d6a;
  --hair: rgba(11, 11, 11, 0.16);
  --acc: #2b2bff;
  --on-acc: #ffffff;
  --danger: #e0201b;

  --grot: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --pad: clamp(1rem, 3.2vw, 2.5rem);
  --poem-scale: 1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0c0c; --ink: #ecece8; --dim: #8b8b86; --hair: rgba(236, 236, 232, 0.16);
    --acc: #4d4dff; --on-acc: #ffffff; --danger: #ff4a3d;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0c0c0c; --ink: #ecece8; --dim: #8b8b86; --hair: rgba(236, 236, 232, 0.16);
  --acc: #4d4dff; --on-acc: #ffffff; --danger: #ff4a3d;
  color-scheme: dark;
}
:root[data-size='s'] { --poem-scale: 0.88; }
:root[data-size='l'] { --poem-scale: 1.2; }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--acc); color: var(--on-acc); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -5rem; z-index: 60; padding: 0.5rem 1rem; background: var(--acc); color: var(--on-acc); }
.skip:focus { top: 0.5rem; }

/* Köşeli parantezli bağlantı/düğme dili */
.top__nav a, .top__nav button, .btn, .selbar button, .savebar button {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}
.top__nav a::before, .top__nav button::before, .btn::before { content: '['; }
.top__nav a::after, .top__nav button::after, .btn::after { content: ']'; }
.top__nav a:hover, .top__nav button:hover, .btn:hover { background: var(--acc); color: var(--on-acc); }

/* ---------- Üst çubuk ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
}
.top__name { font-weight: 700; }
.top__name:hover { color: var(--acc); }
.top__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.top__nav sup { font-size: 0.65em; margin-left: 0.15em; }
.top__tag { color: var(--on-acc); background: var(--acc); padding: 0 0.4em; }
[data-theme-toggle] .t-light { display: none; }
[data-theme-toggle][data-mode='dark'] .t-light { display: inline; }
[data-theme-toggle][data-mode='dark'] .t-dark { display: none; }

/* ---------- Ana sayfa: afiş ---------- */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) var(--pad) 0; }
.hero__title {
  margin: 0;
  font-family: var(--grot);
  font-weight: 850;
  font-stretch: 62%;
  font-size: clamp(4rem, 19.5vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.018em;
  text-transform: lowercase;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--acc); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  border-top: 3px solid var(--ink);
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr 2fr 4fr; } }
.hero__grid > div { padding: 0.8rem 1rem 1.4rem 0; border-bottom: 1px solid var(--hair); }
@media (min-width: 900px) {
  .hero__grid > div { border-bottom: 0; padding-right: 1.5rem; }
  .hero__grid > div + div { padding-left: 1.5rem; border-left: 1px solid var(--ink); }
}
.span2, .span4 { grid-column: 1 / -1; }
@media (min-width: 900px) { .span2, .span4 { grid-column: auto; } }
dt { font-size: 0.78rem; color: var(--dim); }
dt::before { content: '— '; }
dd { margin: 0.3rem 0 0; }
.hero dd.big { white-space: nowrap; font-family: var(--grot); font-weight: 800; font-stretch: 62%; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 0.9; letter-spacing: -0.02em; }
.hero dd.motto { font-family: var(--grot); font-weight: 700; font-stretch: 75%; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; }

/* ---------- Günün dizeleri ---------- */
.daily {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 1rem var(--pad) clamp(2rem, 5vw, 3.5rem);
  background: var(--acc);
  color: var(--on-acc);
}
.daily ::selection { background: var(--on-acc); color: var(--acc); }
.daily__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid currentColor; font-size: 0.9rem; }
.daily__quote {
  margin: clamp(1.5rem, 4vw, 3rem) 0 1.5rem;
  max-width: 22ch;
  font-family: var(--grot);
  font-weight: 700;
  font-stretch: 70%;
  font-size: clamp(2.2rem, 6.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.daily__quote a:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.08em; }
.daily__src { font-size: 1rem; }
.daily__src span { opacity: 0.7; margin-left: 0.4em; }
.daily__src:hover { text-decoration: underline; }

/* ---------- İçindekiler ---------- */
.index { padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 7vw, 5rem); }
.index__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--ink);
}
.index__bar h1, .index__bar h2 {
  margin: 0;
  font-family: var(--grot);
  font-weight: 850;
  font-stretch: 62%;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.8;
  letter-spacing: -0.015em;
}
.index__count { font-size: 0.9rem; color: var(--dim); padding-bottom: 0.2rem; }
.search input {
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--dim); opacity: 1; }
.search input:focus { outline: none; border-bottom-color: var(--acc); box-shadow: 0 1px 0 var(--acc); }
@media (max-width: 640px) {
  .index__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .index__bar .search { grid-column: 1 / -1; grid-row: 2; }
}

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--hair); }
.tag { padding: 0 0.2em; border: 0; background: none; cursor: pointer; }
.tag::before { content: '#'; color: var(--dim); }
.tag:hover, .tag.is-on { background: var(--acc); color: var(--on-acc); }
.tag.is-on::before, .tag:hover::before { color: inherit; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li[hidden] { display: none; }
.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.5rem;
  padding: 0.55rem 0 0.7rem;
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 900px) {
  .row { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 1.5rem; }
}
.row__no { font-size: 0.85rem; color: var(--dim); }
.row__t {
  font-family: var(--grot);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(1.9rem, 4.3vw, 3.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.row__f {
  grid-column: 2;
  margin-top: 0.3rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  color: var(--dim);
}
@media (min-width: 900px) { .row__f { grid-column: 3; margin: 0; } }
.row:hover { background: var(--acc); color: var(--on-acc); }
.row:hover .row__no, .row:hover .row__f { color: var(--on-acc); }
.row:hover { box-shadow: -0.6rem 0 0 var(--acc), 0.6rem 0 0 var(--acc); }
mark { background: var(--acc); color: var(--on-acc); }
.row:hover mark { background: var(--on-acc); color: var(--acc); }
.empty { padding: 2.5rem 0; color: var(--dim); }

/* ---------- Alt bilgi ---------- */
.foot { padding: 0.8rem var(--pad) 1.2rem; border-top: 1px solid var(--ink); font-size: 0.85rem; color: var(--dim); }
.foot a:hover { background: var(--acc); color: var(--on-acc); }

/* ---------- Şiir sayfası ---------- */
.piece {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 3px solid var(--ink);
}
@media (min-width: 900px) { .piece { grid-template-columns: 17rem minmax(0, 1fr); } }
.piece__side {
  padding: 1rem var(--pad) 1.2rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
}
@media (min-width: 900px) {
  .piece__side {
    position: sticky;
    top: 2.8rem;
    align-self: start;
    max-height: calc(100vh - 2.8rem);
    overflow: auto;
    border-bottom: 0;
    border-right: 1px solid var(--ink);
    padding-top: 1.5rem;
  }
}
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; }
@media (min-width: 900px) { .facts { display: grid; gap: 1rem; } }
.facts dd { font-size: 1.05rem; }
.facts dd a:hover { background: var(--acc); color: var(--on-acc); }
.of { color: var(--dim); }
.piece__actions { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 1.2rem; }
@media (min-width: 900px) { .piece__actions { flex-direction: column; align-items: flex-start; gap: 0.45rem; margin-top: 2rem; } }
.hint { margin: 1rem 0 0; color: var(--dim); font-size: 0.82rem; }

.piece__main { padding: clamp(1.5rem, 5vw, 3.5rem) var(--pad) clamp(3rem, 8vw, 6rem); min-width: 0; }
.piece__title {
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  max-width: 14ch;
  font-family: var(--grot);
  font-weight: 850;
  font-stretch: 62%;
  font-size: clamp(3.4rem, 10vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}
.piece__body {
  max-width: 44rem;
  font-size: calc(clamp(1rem, 1.25vw, 1.15rem) * var(--poem-scale));
  line-height: 1.72;
}
.stanza { margin: 0 0 1.7em; }
.stanza:last-child { margin-bottom: 0; }
.l {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-left: 2ch;
  text-indent: -2ch;
  white-space: pre-wrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .l:hover { box-shadow: inset 0 -2px 0 var(--acc); } }
.l.sec { background: var(--acc); color: var(--on-acc); box-shadow: none; }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.pager > * { display: block; min-width: 0; padding: 1rem var(--pad) 1.3rem; }
.pager__next { border-left: 1px solid var(--ink); text-align: right; }
.pager .k { display: block; font-size: 0.85rem; color: var(--dim); }
.pager .t {
  display: block;
  margin-top: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--grot);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.pager a:hover { background: var(--acc); color: var(--on-acc); }
.pager a:hover .k { color: var(--on-acc); }
.pager .is-empty { color: var(--hair); }

.related { padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(3rem, 7vw, 5rem); }
.related__title { margin: 0; padding-bottom: 0.6rem; border-bottom: 3px solid var(--ink); font-size: 0.9rem; font-weight: 400; color: var(--dim); }
.related__title::before { content: '— '; }
.rows--small .row__t { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Dizgi seçenekleri (siir dosyasında "dizgi: ...") */
/* Editörde (tek metin kutusu) yalnızca hizalama önizlenir */
.ed-body.dz-orta { text-align: center; }
.ed-body.dz-sag { text-align: right; }
.ed-body.dz-duzyazi { text-align: justify; }
.dz-orta .l, .dz-sag .l { width: auto; padding-left: 0; text-indent: 0; }
.dz-orta .l { text-align: center; }
.dz-sag .l { text-align: right; }
.dz-orta, .dz-sag { max-width: 44rem; }
.dz-basamak .l { margin-left: min(calc(var(--i, 0) * 2.4ch), 45%); }
.dz-duzyazi .l { width: auto; padding-left: 0; text-indent: 2ch; text-align: justify; }
.dz-serbest .l { width: auto; padding-left: 0; text-indent: 0; }

/* ---------- Seçim çubuğu, kayıt çubuğu ---------- */
.selbar, .savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.4rem 1.4rem;
  padding: 0.85rem var(--pad) max(0.85rem, env(safe-area-inset-bottom));
  background: var(--acc);
  color: var(--on-acc);
  font-size: 0.95rem;
}
.selbar[hidden], .savebar[hidden] { display: none; }
.selbar span, .savebar span { margin-right: auto; }
.selbar button::before, .savebar button::before { content: '['; }
.selbar button::after, .savebar button::after { content: ']'; }
.selbar button:hover, .savebar button:hover { background: var(--on-acc); color: var(--acc); }
.savebar__main { font-weight: 700; }
.savebar.is-clean { background: var(--ink); color: var(--bg); }
.savebar.is-clean .savebar__main, .savebar.is-clean #ed-revert { opacity: 0.4; pointer-events: none; }

.cardmodal {
  width: min(92vw, 26rem);
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
}
.cardmodal::backdrop { background: rgba(0, 0, 0, 0.7); }
.cardmodal img { display: block; width: 100%; height: auto; }
.cardmodal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.2rem; padding: 0.8rem 1rem; border-top: 1px solid var(--ink); }
.btn--solid { background: var(--acc); color: var(--on-acc); }
.btn--danger { color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

.toast {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 70;
  padding: 0.75rem var(--pad);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.95rem;
  transform: translateY(-100%);
  transition: transform 0.18s ease;
}
.toast.show { transform: none; }
.toast.is-error { background: var(--danger); color: #fff; }

/* ---------- Kelime haritası ---------- */
.words { padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 7vw, 5rem); }
.words__head { display: grid; gap: 1rem 3rem; align-items: end; padding-bottom: 1rem; border-bottom: 3px solid var(--ink); }
@media (min-width: 900px) { .words__head { grid-template-columns: auto minmax(0, 28rem); justify-content: space-between; } }
.words__title { margin: 0; font-family: var(--grot); font-weight: 850; font-stretch: 62%; font-size: clamp(4rem, 15vw, 12rem); line-height: 0.78; letter-spacing: -0.018em; }
.words__note { margin: 0; font-size: 0.9rem; color: var(--dim); }
.words__grid { display: grid; gap: 2rem; padding-top: 1.5rem; }
@media (min-width: 900px) { .words__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; } }
.cloud { line-height: 0.95; }
.word {
  display: inline;
  margin: 0 0.12em 0.1em 0;
  padding: 0 0.06em;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--grot);
  font-weight: 800;
  font-stretch: 62%;
  font-size: calc(var(--s) * 1rem);
  letter-spacing: -0.01em;
}
.word sup { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0; color: var(--dim); margin-left: 0.1em; }
.word:hover, .word.is-on { background: var(--acc); color: var(--on-acc); }
.word:hover sup, .word.is-on sup { color: var(--on-acc); }
.hits { align-self: start; }
@media (min-width: 900px) { .hits { position: sticky; top: 3.5rem; max-height: calc(100vh - 4.5rem); overflow: auto; border-left: 1px solid var(--ink); padding-left: 1.5rem; } }
.hits__empty { color: var(--dim); }
.hits__title { margin: 0; font-family: var(--grot); font-weight: 850; font-stretch: 62%; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.85; color: var(--acc); }
.hits__count { margin: 0.4rem 0 1rem; font-size: 0.85rem; color: var(--dim); }
.hits__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.hits__list a { display: block; padding: 0.55rem 0 0.6rem; border-bottom: 1px solid var(--hair); }
.hits__line { display: block; }
.hits__src { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--dim); }
.hits__list a:hover { background: var(--acc); color: var(--on-acc); }
.hits__list a:hover .hits__src { color: var(--on-acc); }
.hits__list a:hover mark { background: var(--on-acc); color: var(--acc); }

/* ---------- Bilgi sayfaları ---------- */
.notice { min-height: 60vh; padding: clamp(2rem, 6vw, 4rem) var(--pad); }
.notice__code { margin: 0; font-family: var(--grot); font-weight: 850; font-stretch: 62%; font-size: clamp(8rem, 40vw, 30rem); line-height: 0.78; color: var(--acc); letter-spacing: -0.04em; }
.notice__title { margin: 1rem 0 0; font-family: var(--grot); font-weight: 800; font-stretch: 62%; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 0.9; }
.notice__links { display: flex; gap: 1.2rem; margin-top: 2rem; }

/* ---------- Editör ---------- */
.ed-loading { padding: 2rem var(--pad); color: var(--dim); }
.ed-loading[hidden] { display: none; }
.ed-login { padding: clamp(2rem, 6vw, 4rem) var(--pad); max-width: 40rem; }
.ed-login__title { margin: 0 0 2rem; font-family: var(--grot); font-weight: 850; font-stretch: 62%; font-size: clamp(5rem, 22vw, 16rem); line-height: 0.78; letter-spacing: -0.04em; }
.ed-login__form { display: flex; gap: 1rem; align-items: end; }
.ed-login__form input { flex: 1; padding: 0.4rem 0; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: transparent; font-size: 1.3rem; }
.ed-login__form input:focus { outline: none; border-bottom-color: var(--acc); }
.ed-msg { min-height: 1.5em; margin: 1rem 0 0; color: var(--danger); }
.ed-list { padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 8rem; }
.ed-list .row { cursor: pointer; }
.row__badge { margin-left: 0.6em; padding: 0 0.3em; font-family: var(--mono); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; vertical-align: middle; background: var(--ink); color: var(--bg); }
.ed-add {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  border: 3px solid var(--ink);
  justify-content: center;
}
.ed-add span { font-family: var(--grot); font-weight: 300; font-stretch: 62%; font-size: clamp(5rem, 14vw, 10rem); line-height: 0.8; }
.ed-add small { font-size: 1rem; }
.ed-add:hover { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.ed-edit { border-bottom: 0; }
.ed-edit .piece__main { padding-bottom: 10rem; }
.ed-field { display: block; margin-top: 1.2rem; }
.ed-field span { display: block; font-size: 0.78rem; color: var(--dim); }
.ed-field span::before { content: '— '; }
.ed-field select { width: 100%; padding: 0.25rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
.ed-field input { width: 100%; padding: 0.25rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; }
.ed-field input:focus { outline: none; border-bottom-color: var(--acc); }
.ed-slug { word-break: break-all; }
.ed-title, .ed-body {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  overflow: hidden;
}
.ed-title { max-width: none; }
.ed-title:focus, .ed-body:focus { outline: none; }
.ed-title::placeholder, .ed-body::placeholder { color: var(--hair); opacity: 1; }
.ed-body { min-height: 50vh; max-width: 44rem; caret-color: var(--acc); }
.ed-title { caret-color: var(--acc); }

/* Editör: liste araçları, sıralama, taslak, geçmiş */
.ed-tools { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--hair); font-size: 0.9rem; color: var(--dim); }
.ed-sortnote { margin: 0; padding: 0.6rem 0; font-size: 0.85rem; color: var(--acc); }
.ed-rows .row { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
@media (min-width: 900px) { .ed-rows .row { grid-template-columns: 4.5rem minmax(0, 1.15fr) minmax(0, 1fr) 6.5rem; } }
.row__views { grid-column: 3; grid-row: 1; justify-self: end; font-size: 0.85rem; color: var(--dim); white-space: nowrap; }
@media (min-width: 900px) { .row__views { grid-column: 4; } }
.row:hover .row__views { color: var(--on-acc); }
.row__badge--draft { background: var(--danger); color: #fff; }
.ed-rows.is-sorting .row { grid-template-columns: 2.4rem 3rem minmax(0, 1fr) auto; cursor: default; }
.ed-rows.is-sorting .row:hover { background: none; color: inherit; box-shadow: none; }
.ed-rows.is-sorting .row:hover .row__no, .ed-rows.is-sorting .row:hover .row__views { color: var(--dim); }
.ed-rows.is-sorting .row__f, .ed-rows.is-sorting .row__views { display: none; }
.handle { grid-column: 1; align-self: center; width: 2rem; height: 2.4rem; padding: 0; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: grab; touch-action: none; color: var(--dim); }
.handle:hover { color: var(--acc); }
.moves { grid-column: 4; display: flex; gap: 0.2rem; }
.ed-rows.is-sorting .row__no { grid-column: 2; }
.ed-rows.is-sorting .row__t { grid-column: 3; }
.moves button { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--hair); background: none; cursor: pointer; }
.moves button:hover { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.ed-rows li.dragging .row { background: var(--acc); color: var(--on-acc); box-shadow: -0.6rem 0 0 var(--acc), 0.6rem 0 0 var(--acc); }
.ed-rows li.dragging .row__no, .ed-rows li.dragging .handle { color: var(--on-acc); }
.ed-switch { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; cursor: pointer; }
.ed-switch input { width: 1.1rem; height: 1.1rem; accent-color: var(--danger); }
.ed-switch small { color: var(--dim); }
.ed-edit.is-draft .piece__title { color: var(--dim); }
.hist { width: min(96vw, 60rem); max-height: 90vh; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--bg); color: var(--ink); }
.hist::backdrop { background: rgba(0, 0, 0, 0.7); }
.hist__head { display: flex; justify-content: space-between; align-items: baseline; padding: 0.8rem 1rem; border-bottom: 3px solid var(--ink); }
.hist__head h2 { margin: 0; font-family: var(--grot); font-weight: 850; font-stretch: 62%; font-size: 2.6rem; line-height: 0.8; }
.hist__grid { display: grid; grid-template-columns: minmax(0, 1fr); max-height: calc(90vh - 4.5rem); }
@media (min-width: 760px) { .hist__grid { grid-template-columns: 15rem minmax(0, 1fr); } }
.hist__list { list-style: none; margin: 0; padding: 0; overflow: auto; border-right: 1px solid var(--ink); max-height: 30vh; }
@media (min-width: 760px) { .hist__list { max-height: none; } }
.hist__list button { display: block; width: 100%; padding: 0.6rem 1rem; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; font-size: 0.85rem; }
.hist__list button small { display: block; color: var(--dim); }
.hist__list button:hover, .hist__list button.is-on { background: var(--acc); color: var(--on-acc); }
.hist__list button:hover small, .hist__list button.is-on small { color: var(--on-acc); }
.hist__view { padding: 1rem; overflow: auto; }
.hist__legend { margin: 0 0 0.8rem; font-size: 0.8rem; color: var(--dim); }
.hist__diff { margin: 0 0 1rem; white-space: pre-wrap; font: inherit; font-size: 0.9rem; line-height: 1.6; }
.del { background: color-mix(in srgb, var(--danger) 22%, transparent); text-decoration: line-through; }
.add { background: color-mix(in srgb, var(--acc) 22%, transparent); }

/* ---------- Hareket ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Yazdırma ---------- */
@media print {
  .top, .piece__side, .pager, .related, .selbar, .toast, .foot, .daily, .index__bar { display: none !important; }
  body { background: #fff; color: #000; }
  .piece { display: block; border: 0; }
  .l.sec { background: none; color: inherit; }
}
