/* Stiluri self-contained pentru paginile de arhivă servite de funcția
   Cloudflare (aceeași paletă ca app/globals.css, dar într-un fișier stabil,
   fără hash-uri de build). */

:root {
  --paper: #fbfaf7;
  --ink: #06001a;
  --muted: #736e7e;
  --hairline: #e6e2d9;
  --accent: #c8102e;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.container { max-width: 660px; margin: 0 auto; padding: 0 22px; }

/* masthead */
.masthead { text-align: center; padding: 40px 0 0; }
.brand { font-family: var(--serif); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand-dot { color: var(--accent); }
.tagline { margin: 10px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); }
.nav { margin-top: 24px; border-top: 1px solid var(--hairline); border-bottom: 2px solid var(--ink); }
.nav-in { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0 14px; }
.nav a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* reader */
.reader { padding-top: 30px; }
.reader-back { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 24px; }
.reader-back:hover { color: var(--ink); }

.kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); display: block; text-align: center; }
.reader-title { margin: 12px auto 16px; font-family: var(--serif); font-size: 29px; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; text-align: center; max-width: 560px; }

.reader-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 10px 0; margin-bottom: 28px; }
.ai-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

.reader-body p { margin: 0 0 18px; font-family: var(--serif); font-size: 17px; line-height: 1.7; }

/* surse */
.surse { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 4px; }
.sec-head h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }
.sursa { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sursa-title { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.sursa:hover .sursa-title { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sursa-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.reader-legal { margin: 24px 0 0; font-size: 11.5px; color: var(--muted); opacity: 0.75; text-align: center; }

/* pagini de căutare / listă (funcții) */
.page-head { margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 14px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.page-head .kicker { display: block; text-align: left; margin-bottom: 10px; }

.cauta { display: flex; gap: 8px; margin: 18px 0 8px; }
.cauta input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; color: var(--ink); outline: none; }
.cauta input:focus { border-color: var(--ink); }
.cauta button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; }
.cauta button:hover { background: #2a2440; }

.rows { display: flex; flex-direction: column; }
.art { display: block; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.art-title { margin: 0; font-family: var(--serif); font-size: 18.5px; line-height: 1.3; font-weight: 700; }
.art:hover .art-title { text-decoration: underline; text-underline-offset: 3px; }
.art-sum { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.art-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.art-left { display: flex; gap: 10px; align-items: baseline; }
.theme { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink); }
.art-src { white-space: nowrap; }
.gol { padding: 30px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--hairline); }

mark { background: #ffe89a; color: inherit; padding: 0 2px; }

/* footer */
.footer { margin-top: 56px; border-top: 2px solid var(--ink); padding: 26px 0 56px; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 17px; margin: 0 0 10px; text-align: center; }
.footer-text { margin: 0 auto; font-size: 12.5px; line-height: 1.65; color: var(--muted); text-align: center; max-width: 480px; }

@media (max-width: 620px) {
  .masthead { padding-top: 30px; }
  .brand { font-size: 30px; }
  .reader-title { font-size: 24px; }
}
