/*
Theme Name: Noviny
Theme URI: https://example.com/noviny
Author: OpenAI
Description: Minimalistická redakční šablona pro český zpravodajský a magazínový web.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noviny
Tags: news, blog, editorial, one-column, two-columns, custom-logo, featured-images, translation-ready
*/

:root {
  --ink: #171717;
  --muted: #77736f;
  --line: #e9e7e4;
  --paper: #fff;
  --soft: #f7f6f4;
  --accent: #9b332b;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { border-bottom: 1px solid var(--line); }
.topbar {
  width: min(1240px, calc(100% - 64px)); height: 74px; margin: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header-left, .header-right { display: flex; align-items: center; gap: 22px; }
.header-right { justify-content: flex-end; }
.site-title {
  font: 700 29px/1 var(--serif); letter-spacing: -1.3px; text-align: center;
}
.site-title a { color: var(--ink); }
.site-description { display: none; }
.menu-toggle, .search-toggle {
  border: 0; background: none; color: var(--ink); padding: 8px; cursor: pointer;
  font: 20px/1 var(--sans);
}
.menu-toggle span { display: block; width: 19px; height: 1px; background: currentColor; margin: 5px 0; }
.header-search { display: flex; align-items: center; }
.header-search input {
  width: 0; opacity: 0; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 0; transition: width .2s, opacity .2s; outline: 0;
}
.header-search.is-open input { width: 170px; opacity: 1; }
.header-search button { border: 0; background: transparent; cursor: pointer; font-size: 18px; padding: 7px; }
.primary-navigation {
  border-top: 1px solid #f2f1ef; display: none; background: #fff;
}
.primary-navigation.is-open { display: block; }
.primary-navigation ul {
  list-style: none; margin: 0 auto; padding: 14px 24px; width: min(1240px, 100%);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 28px;
}
.primary-navigation a {
  font: 600 10px/1.5 var(--sans); letter-spacing: 1.2px; text-transform: uppercase;
}
.site-main { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.page-heading { text-align: center; padding: 74px 0 70px; }
.page-heading h1 { font: 400 clamp(36px, 5vw, 54px)/1.15 var(--serif); letter-spacing: -1.7px; margin: 0 0 16px; }
.page-kicker, .post-meta, .eyebrow {
  color: var(--muted); font: 600 9px/1.7 var(--sans); letter-spacing: .8px;
  text-transform: uppercase;
}
.page-kicker a, .post-meta a { color: inherit; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 42px; }
.content-column { min-width: 0; }
.sidebar {
  border-left: 1px solid var(--line); padding-left: 28px;
  font-size: 14px;
}
.sidebar-section { margin-bottom: 42px; }
.sidebar-title { font: 400 18px/1.3 var(--serif); margin: 0 0 20px; }
.sidebar .widget { margin-bottom: 34px; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 12px; }
.sidebar .post-meta { display: block; margin-bottom: 4px; font-size: 8px; }
.sidebar a { line-height: 1.35; }
.hero-story { margin-bottom: 42px; }
.hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--soft); }
.image-placeholder {
  width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,#eeece8,#d9d6d0);
  display: grid; place-items: center; color: #9b9690; font: 11px var(--sans); letter-spacing: 2px;
}
.hero-copy { padding: 20px 0 0; }
.hero-copy h2 { font: 400 clamp(28px, 3.5vw, 42px)/1.16 var(--serif); letter-spacing: -1px; margin: 8px 0 10px; }
.hero-copy .excerpt { color: #55514d; max-width: 760px; margin: 0; font-size: 16px; }
.category-label { color: var(--accent); font: 700 9px/1.5 var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px 24px; }
.story-card { min-width: 0; }
.story-card .card-image { aspect-ratio: 1.55/1; width: 100%; object-fit: cover; background: var(--soft); margin-bottom: 15px; }
.story-card h3 { font: 400 23px/1.2 var(--serif); letter-spacing: -.4px; margin: 7px 0 8px; }
.story-card p { color: #66615d; font-size: 14px; line-height: 1.6; margin: 0; }
.section-heading {
  display: flex; align-items: center; gap: 16px; margin: 52px 0 24px;
  font: 400 22px/1.2 var(--serif);
}
.section-heading:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 42px; }
.single-article .article-title {
  font: 400 clamp(36px, 5vw, 53px)/1.12 var(--serif); letter-spacing: -1.5px;
  margin: 0 0 17px;
}
.article-meta { margin-bottom: 27px; }
.article-featured { width: 100%; max-height: 560px; object-fit: cover; margin: 0 0 28px; }
.article-content { font-size: 17px; line-height: 1.85; }
.article-content p { margin: 0 0 1.45em; }
.article-content h2, .article-content h3 { font-weight: 400; line-height: 1.25; margin: 1.6em 0 .6em; }
.article-content blockquote {
  margin: 32px 0; padding: 8px 0 8px 22px; border-left: 2px solid #aaa39c;
  color: #77716b; font-style: italic;
}
.article-content a { text-decoration: underline; text-decoration-color: #bcb6af; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 25px; }
.article-tags { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 35px; font: 10px var(--sans); }
.article-tags a { color: var(--accent); margin-right: 10px; }
.author-box {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin: 25px 0 38px; display: flex; gap: 18px; align-items: center;
}
.author-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.author-box strong { font: 400 18px var(--serif); }
.author-box p { margin: 5px 0 0; color: #68635e; font-size: 13px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.related-grid .story-card h3 { font-size: 19px; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; }
.post-navigation span { display: block; color: var(--muted); font: 9px var(--sans); text-transform: uppercase; letter-spacing: 1px; }
.archive-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 24px; }
.pagination { margin: 48px 0; display: flex; justify-content: center; gap: 8px; font: 12px var(--sans); }
.pagination a, .pagination span { padding: 9px 13px; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: #fbfaf9; }
.footer-inner { width: min(1120px, calc(100% - 56px)); margin: auto; padding: 34px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font: 10px var(--sans); }
.footer-brand { color: var(--ink); font: 700 22px var(--serif); }
.search-form { display: flex; gap: 8px; }
.search-form input { min-width: 0; flex: 1; padding: 12px; border: 1px solid var(--line); }
.search-form button { border: 0; background: var(--ink); color: white; padding: 0 16px; cursor: pointer; font: 10px var(--sans); text-transform: uppercase; }
.menu-panel {
  display: none; position: absolute; z-index: 10; top: 74px; left: max(24px, calc((100% - 1240px)/2));
  width: 260px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 35px #0000000c;
}
.menu-panel.is-open { display: block; }
.menu-panel ul { list-style: none; padding: 0; margin: 0; }
.menu-panel li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 800px) {
  .site-main { width: min(100% - 36px, 680px); }
  .editorial-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
  .page-heading { padding: 52px 0 48px; }
}
@media (max-width: 540px) {
  .topbar { width: calc(100% - 28px); height: 64px; }
  .site-title { font-size: 25px; }
  .header-left, .header-right { gap: 8px; }
  .primary-navigation ul { gap: 12px 20px; }
  .story-grid, .archive-list, .related-grid { grid-template-columns: 1fr; }
  .hero-copy h2 { font-size: 31px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 36px); flex-direction: column; }
  .menu-panel { top: 64px; left: 12px; }
}
