/* Styles for zagreb.lol/pregledi hub. Matches the civic-ledger aesthetic of
   the reports it links to: warm cream paper tone, Fraunces display serif,
   sun-mark fleurons, printer's rules. */

:root {
  --bg: #f6f1e3;
  --panel: #fffdf7;
  --ink: #1c1a14;
  --ink-muted: #6b6254;
  --line: #e5dcc4;
  --line-strong: #c9bd9c;
  --accent: #00334c;
  --accent-2: #b75a2b;
  --shadow: 0 1px 2px rgba(60, 48, 20, 0.05), 0 2px 6px rgba(60, 48, 20, 0.04);
  --serif: "Fraunces", "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;

  --sun-orange: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='20' fill='%23b75a2b'/><g stroke='%23b75a2b' stroke-width='7' stroke-linecap='round'><line x1='50' y1='8' x2='50' y2='22'/><line x1='50' y1='78' x2='50' y2='92'/><line x1='8' y1='50' x2='22' y2='50'/><line x1='78' y1='50' x2='92' y2='50'/><line x1='20' y1='20' x2='30' y2='30'/><line x1='70' y1='70' x2='80' y2='80'/><line x1='20' y1='80' x2='30' y2='70'/><line x1='70' y1='30' x2='80' y2='20'/></g></svg>");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.36  0 0 0 0 0.22  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

.hero {
  padding: 1.6rem 1rem 1.2rem;
  margin: 0 auto;
  max-width: 880px;
  border-top: 3px double var(--line-strong);
  border-bottom: 3px double var(--line-strong);
  text-align: center;
}

.hero .overline {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .overline a {
  color: var(--ink-muted);
  text-decoration: none;
}

.hero .overline a:hover {
  color: var(--accent-2);
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.3rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}

.hero .subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
}

.hero .subtitle::before,
.hero .subtitle::after {
  content: "❦";
  margin: 0 0.5rem;
  color: var(--accent-2);
  font-style: normal;
  opacity: 0.85;
}

.hero .meta {
  margin: 0.6rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-link {
  display: block;
  padding: 1.2rem 1.2rem 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: background 150ms ease;
}

.report-link:hover {
  background: #fffaf0;
}

.report-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding-bottom: 0.55rem;
  border-bottom: 3px double var(--line-strong);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-variation-settings: "opsz" 48;
}

.report-card h2::before {
  content: "";
  flex: 0 0 auto;
  width: 0.95em;
  height: 0.95em;
  background-image: var(--sun-orange);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.9;
}

.report-card .path {
  margin: 0.65rem 0 0;
  font-family: "IBM Plex Mono", "Menlo", monospace;
  font-size: 0.78rem;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.report-card .desc {
  margin: 0.6rem 0 0.8rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.report-card .source {
  margin: 0;
  font-size: 0.82rem;
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
  color: var(--ink-muted);
}

.report-card .source span {
  color: var(--ink);
}

.more-coming {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink-muted);
  font-variation-settings: "opsz" 14;
}

.more-coming::before,
.more-coming::after {
  content: "❦";
  margin: 0 0.5rem;
  color: var(--accent-2);
  font-style: normal;
  opacity: 0.7;
}

footer {
  padding: 1.25rem 1rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 14;
}

footer a {
  color: inherit;
}

footer::before {
  content: "❦";
  display: block;
  color: var(--accent-2);
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  font-style: normal;
  opacity: 0.85;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .report-card h2 { font-size: 1.2rem; }
  .report-link { padding: 1rem 1rem 0.9rem; }
}
