/*
Theme Name: Juroszek Blog
Theme URI: https://blog.kancelariajuroszek.pl/
Author: Kancelaria Radcy Prawnego Michal Juroszek
Description: Blog theme matching the main Kancelaria Juroszek website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: juroszek-blog
*/

:root {
  --navy: #0f1f45;
  --navy-dark: #080f22;
  --gold: #c9a84c;
  --paper: #f7f6f3;
  --cream: #f6f2ea;
  --text: #1a1a2e;
  --muted: #666;
  --line: rgba(15, 31, 69, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
}

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  max-width: 1680px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.brand__divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.brand__name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__subtitle {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(7, 15, 35, 0.78), rgba(15, 31, 69, 0.42)),
    var(--navy);
  color: #fff;
}

.hero__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero__eyebrow,
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 1px;
  margin: 0 0 1rem;
}

.hero h1 span {
  color: var(--gold);
  font-style: italic;
}

.hero p {
  max-width: 44rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 15px;
}

.main {
  background: var(--cream);
  padding: 4rem 2rem;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-layout {
  max-width: 1680px;
  grid-template-columns: minmax(0, 1fr);
}

.single-layout {
  max-width: 1200px;
}

.post-card,
.content-card,
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 31, 69, 0.06);
}

.post-card {
  padding: 1.5rem;
  border-top: 3px solid var(--gold);
  min-width: 0;
}

.post-card__meta,
.entry-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  color: #777;
  font-size: 12px;
}

.post-card h2,
.entry-title {
  font-family: Georgia, serif;
  color: var(--navy);
  font-weight: 400;
}

.post-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.post-card h2 a {
  text-decoration: none;
}

.post-card__excerpt {
  color: #555;
  font-size: 15px;
  line-height: 1.75;
}

.read-more,
.wp-block-button__link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.8rem 1.15rem;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.content-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.entry-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
}

.entry-content {
  color: #334155;
  font-size: 16px;
  line-height: 1.85;
}

.entry-content h2,
.entry-content h3 {
  color: var(--navy);
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 2rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: #f8fafc;
  color: #475467;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.25rem;
}

.sidebar-card h2,
.sidebar-card .widget-title {
  margin: 0 0 0.8rem;
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 400;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.sidebar-card a {
  color: #334155;
  text-decoration: none;
}

.sidebar-card a:hover {
  color: var(--gold);
}

.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
}

.pagination .current {
  background: var(--navy);
  color: #fff;
}

.site-footer {
  background: var(--navy-dark);
  padding: 1.25rem 2rem;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__inner {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.empty-state {
  padding: 2rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .site-header__inner {
    padding: 0 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 20, 46, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: #fff;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 3rem 1rem;
  }

  .hero__inner {
    padding: 4rem 1.2rem 3rem;
  }
}
