/*
Theme Name: Ekujawiak
Theme URI: https://ekujawiak.com
Author: Kancelaria Eweliny Kujawiak
Description: Motyw bloga kancelarii ekujawiak.com
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

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

:root {
  --navy:      #0d1f4e;
  --navy-deep: #07122e;
  --gold:      #b8a97a;
  --gold-pale: #d4c89a;
  --cream:     #f7f6f3;
  --ecru:      #e8e4db;
  --text-dark: #1a2744;
  --text-mid:  #3a4f78;
  --text-soft: #5a6a8a;
  --text-muted:#7a8fba;
  --text-light:#9aaac8;
  --text-pale: #f0ebe0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid rgba(184,169,122,0.15);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-pale);
  letter-spacing: 0.05em;
}

.site-logo-text em {
  font-style: italic;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--gold); }

.site-nav .nav-cta {
  color: var(--navy);
  background: var(--gold);
  padding: 9px 20px;
  transition: background 0.2s;
}

.site-nav .nav-cta:hover { background: var(--gold-pale); }

.blog-hero {
  background: var(--navy);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(184,169,122,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-label {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 400;
}

.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  color: var(--text-pale);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

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

.blog-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ccc8be;
  border: 1px solid #ccc8be;
}

.post-card {
  background: var(--cream);
  padding: 36px 32px;
  transition: background 0.2s;
}

.post-card:hover { background: #f0ece4; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.post-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  border: 0.5px solid rgba(184,169,122,0.5);
  padding: 3px 10px;
}

.post-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.post-title a:hover { color: var(--gold); }

.post-line {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
}

.post-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 20px;
}

.post-read-more {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.post-read-more:hover { color: var(--gold); }

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #ccc8be;
  border: 1px solid #ccc8be;
}

.sidebar-widget {
  background: var(--cream);
  padding: 28px 24px;
}

.widget-title {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.widget-title-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}

.widget-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 16px;
}

.widget-cta {
  display: inline-block;
  background: var(--navy);
  color: var(--text-pale);
  padding: 10px 20px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  transition: background 0.2s;
}

.widget-cta:hover { background: #162d6a; }

.recent-posts { list-style: none; }

.recent-posts li {
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(13,31,78,0.08);
}

.recent-posts li:last-child { border-bottom: none; }

.recent-posts a {
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 300;
  line-height: 1.5;
  transition: color 0.2s;
}

.recent-posts a:hover { color: var(--gold); }

.recent-posts .rp-date {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.cat-list { list-style: none; }

.cat-list li {
  padding: 8px 0;
  border-bottom: 0.5px solid rgba(13,31,78,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-list li:last-child { border-bottom: none; }

.cat-list a {
  font-size: 12.5px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.cat-list a:hover { color: var(--gold); }

.cat-count {
  font-size: 10px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 1px;
  margin-top: 1px;
  background: #ccc8be;
  border: 1px solid #ccc8be;
}

.pagination a,
.pagination span {
  background: var(--cream);
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.pagination a:hover { background: var(--ecru); color: var(--navy); }
.pagination .current { background: var(--navy); color: var(--gold); }

.single-post-hero {
  background: var(--navy);
  padding: 72px 48px;
  text-align: center;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.single-post-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--text-pale);
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 16px;
}

.single-post-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.single-post-content {
  max-width: 780px;
  margin: 64px auto;
  padding: 0 48px;
}

.single-post-content p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 24px;
}

.single-post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 40px 0 16px;
}

.single-post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin: 32px 0 12px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 24px 20px;
}

.single-post-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
  font-weight: 300;
  margin-bottom: 6px;
}

.single-post-content strong {
  color: var(--navy);
  font-weight: 500;
}

.single-post-content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold);
}

.single-post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--ecru);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
}

.post-nav {
  max-width: 780px;
  margin: 0 auto 64px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.post-nav a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(13,31,78,0.15);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.post-nav a:hover { color: var(--gold); border-color: var(--gold); }

.site-footer {
  background: var(--navy-deep);
  padding: 40px 48px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: rgba(154,170,200,0.6);
}

.footer-logo em { font-style: italic; color: rgba(184,169,122,0.6); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(154,170,200,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 11px;
  color: rgba(58,79,120,0.8);
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 0.5px solid rgba(184,169,122,0.08);
  margin-top: 8px;
}

@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .blog-hero { padding: 48px 24px; }
  .blog-main { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .single-post-content { padding: 0 24px; }
  .post-nav { padding: 0 24px; }
  .site-footer { padding: 32px 24px; }
}
