:root {
  --red: #c6252d;
  --red-dark: #a51e25;
  --gold: #d4a843;
  --gold-light: #f5e6c8;
  --bg: #faf8f5;
  --text: #2d2d2d;
  --text-light: #888;
  --border: #e8e2d8;
  --white: #ffffff;
  --max-width: 960px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

.site-header {
  background: var(--red);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-title {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}

/* ── Container ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero – najnowszy numer ── */

.hero {
  background: #e1ac44;
  padding: 3rem 0;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text {
  flex: 1;
}

.hero-cover {
  flex: 0 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 0.4rem;
}

.issue-title {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.cover-link {
  display: inline-block;
}

.cover-link img {
  max-width: 380px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.cover-link:hover img {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.download-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2.5rem;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
}

.download-btn:hover {
  background: var(--red-dark);
}

/* ── Archiwum ── */

.archive {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.archive h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.archive-item {
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s;
  display: block;
}

.archive-item:hover {
  transform: translateY(-4px);
}

.archive-item img {
  width: 100%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  transition: box-shadow 0.3s;
}

.archive-item:hover img {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.archive-item .label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
}

/* ── Placeholder okładki ── */

.no-cover {
  width: 100%;
  aspect-ratio: 0.71;
  background: var(--gold-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* ── Link do Issuu ── */

.more-archive {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.more-archive a {
  color: var(--red);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.more-archive a:hover {
  border-bottom-color: var(--red);
}

/* ── Footer ── */

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.5);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2rem;
}

/* ── Podstrony – treść ── */

.page-content {
  padding: 2.5rem 0;
}

.page-content h1 {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  color: var(--red);
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.3rem;
}

.page-content img {
  max-width: 100%;
  border-radius: 3px;
  margin: 1rem 0;
}

.page-content a {
  color: var(--red);
}

/* ── Dwukolumnowy layout ── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

/* ── Bloki artykułów (historia, jubileusze) ── */

.article-block {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.article-block h2 {
  background: var(--red);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 3px;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.article-block .date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-block .lead {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ── Galeria zdjęć ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.gallery a {
  display: block;
}

.gallery img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.gallery img:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ── Info box ── */

.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box strong {
  color: var(--text);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav a {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cover-link img {
    max-width: 280px;
  }

  .issue-title {
    font-size: 1.3rem;
  }

  .archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .page-content h1 {
    font-size: 1.4rem;
  }
}
