/* Shared look for the site pages (home, o magazíne, kontakt, inzercia, archív, account pages). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  color-scheme: light;
  --navy: #16305a; --blue: #2563c9; --blue-dark: #1d4fa3;
  --ink: #141b26; --muted: #616c7b; --line: #e5e8ee; --paper: #fff; --sand: #f5f7fa;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,27,38,0.04), 0 8px 24px rgba(20,27,38,0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
input, textarea, button, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.10); }
.nav a.active { color: #fff; background: rgba(255,255,255,0.14); }
.nav a[href="account.html"], .nav a[href="login.html"] { background: #fff; color: var(--navy); font-weight: 600; border-radius: 999px; padding: 8px 16px; margin-left: 8px; }
.nav a[href="account.html"]:hover, .nav a[href="login.html"]:hover { background: #e8eef8; color: var(--navy); }

/* sections */
.section { padding-block: 64px; }
.section.alt { background: var(--sand); }
.section h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 16px; }
.section h2 { font-size: 30px; margin: 0 0 20px; }
.section h3 { font-size: 19px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 24px; max-width: 56ch; }
.two-col { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: start; }
.two-col img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px 22px; padding: 0; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--ink); font-weight: 600; }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--blue); cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cfd5de; }
.btn.ghost:hover { background: var(--sand); color: var(--ink); border-color: #b9c1cd; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.signature { color: var(--muted); font-style: italic; }

/* home hero */
.hero { padding-block: 72px; background: linear-gradient(180deg, #f5f7fa 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(220px, 340px); gap: 64px; align-items: center; }
.hero .cover { display: block; line-height: 0; }
.hero .cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 2px 4px rgba(20,27,38,0.06), 0 24px 48px rgba(20,27,38,0.16); }
.hero .actions { margin-top: 28px; }

/* archive cards */
.search-all { display: flex; gap: 8px; margin: 0 0 32px; max-width: 720px; }
.search-all input { flex: 1; min-width: 0; padding: 13px 18px; font-size: 16px; border: 1px solid #cfd5de; border-radius: 999px; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.search-all input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,201,0.14); }
.search-all button { padding: 12px 22px; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; background: var(--blue); color: #fff; cursor: pointer; transition: background 0.15s; }
.search-all button:hover { background: var(--blue-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card canvas { width: 100%; aspect-ratio: 215 / 285; object-fit: cover; display: block; background: #eceff3; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.card .date { font-size: 13px; color: var(--muted); }
.langs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.langs a { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--sand); transition: border-color 0.15s, color 0.15s, background 0.15s; }
.langs a:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.langs a.reader::after { content: " · text"; font-weight: 400; color: var(--muted); }
#global-results { margin-bottom: 32px; max-width: 820px; }
#global-results:empty { margin: 0; }
#global-results h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.hit { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.hit:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.hit .where { font-size: 13px; font-weight: 600; color: var(--blue); }
.hit .snippet { font-size: 14px; color: #3a4350; margin-top: 3px; line-height: 1.5; }
.hit mark { background: #ffe9a8; padding: 0 2px; border-radius: 2px; }
.empty { color: var(--muted); font-size: 14px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-grid h3 { margin: 0 0 6px; font-size: 19px; }
.contact-grid address { font-style: normal; margin: 0 0 24px; color: #3a4350; }
form.contact label, .panel label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
form.contact input, form.contact textarea, .panel input { width: 100%; padding: 11px 12px; border: 1px solid #cfd5de; border-radius: 10px; background: #fff; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
form.contact input:focus, form.contact textarea:focus, .panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,201,0.14); }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact button { margin-top: 16px; }

/* account panels */
.panel { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin-top: 0; }
.panel h2 { font-size: 26px; margin-bottom: 12px; }
.panel button.btn { margin-top: 20px; width: 100%; }
.panel .actions .btn { width: auto; margin-top: 0; }
.panel .links { font-size: 14px; margin: 16px 0 0; color: var(--muted); }
.err { color: #b3261e; font-size: 14px; margin-top: 10px; min-height: 20px; }
.notice { background: #eaf6ef; border: 1px solid #c4e2d1; color: #23633f; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media print { body { display: none !important; } }
@media (max-width: 860px) {
  .section { padding-block: 44px; }
  .hero { padding-block: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .cover { max-width: 260px; order: -1; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col > div:first-child { max-width: 320px; }
  .site-header .logo img { height: 36px; }
  .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 14px; padding: 7px 10px; }
  .site-header { position: static; }
  .site-header .wrap { position: relative; }
  .nav a[href="account.html"], .nav a[href="login.html"] { position: absolute; top: 10px; right: 24px; margin: 0; padding: 7px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card .body { padding: 12px 12px 14px; }
  .card h3 { font-size: 15px; }
  .search-all { flex-wrap: wrap; }
  .panel { padding: 24px 20px; }
}
