/* Wrzotulka - Casper-inspired theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400;1,700&display=swap');

:root {
  --color-primary: #0F172A;
  --color-accent: #EA580C;
  --color-cream: #F5F5F4;
  --color-text: #15171A;
  --color-midgrey: #738A94;
  --color-lightgrey: #E5E7EB;
  --color-whitegrey: #F4F4F3;
  --color-border: #DDE1E5;
  --font-body: 'Merriweather', Georgia, serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--color-text);
  background: #fff;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-primary); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 4.8rem; letter-spacing: -0.02em; }
h2 { font-size: 3.2rem; }
h3 { font-size: 2.4rem; }

p { margin: 0 0 1.5em; }

/* Header (Casper .gh-head) */
.gh-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1.6rem 0;
}

.gh-head-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 4vmin;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4rem;
}

.gh-head-brand { display: flex; align-items: center; }
.gh-head-logo {
  max-height: 36px;
  width: auto;
}

.gh-head-menu {
  display: flex;
  gap: 2.8rem;
}

.gh-head-menu a {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.gh-head-menu a:hover { color: var(--color-accent); }

.gh-head-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.gh-head-actions .gh-button {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border-radius: 40px;
  border: none;
  cursor: pointer;
}

.gh-head-actions .gh-button:hover { background: var(--color-accent); color: #fff; }

.gh-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.gh-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px auto;
  transition: 0.3s;
}

/* Container */
.gh-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 4vmin;
}

.gh-canvas {
  display: grid;
  grid-template-columns: [full-start] minmax(4vmin, auto) [wide-start] minmax(auto, 240px) [main-start] min(720px, 100% - 8vmin) [main-end] minmax(auto, 240px) [wide-end] minmax(4vmin, auto) [full-end];
}

.gh-canvas > * { grid-column: main-start / main-end; }
.gh-canvas .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-canvas .kg-width-full { grid-column: full-start / full-end; }

/* Site header hero */
.site-header {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, var(--color-cream) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}

.site-header-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 4vmin;
  text-align: center;
}

.site-title {
  font-size: 2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin: 0 0 1.2rem;
}

.site-description {
  font-family: var(--font-body);
  font-size: 1.8rem;
  color: var(--color-midgrey);
  font-style: italic;
  margin: 0;
}

/* Hero post (typography-heavy, no image) */
.hero-post {
  max-width: 900px;
  margin: 6rem auto;
  padding: 0 4vmin;
  text-align: center;
}

.hero-post .tag {
  display: inline-block;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.hero-post .post-title {
  font-size: 5.6rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 2.4rem;
}

.hero-post .post-excerpt {
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--color-midgrey);
  font-family: var(--font-body);
  margin: 0 0 3rem;
}

.hero-post .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-midgrey);
}

.hero-post .author-profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Post feed */
.post-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4rem 3rem;
  padding: 4rem 4vmin 8rem;
  max-width: 1320px;
  margin: 0 auto;
}

.post-feed .post-card:nth-child(6n+1) {
  grid-column: span 2;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.post-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-whitegrey);
}

.post-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2.4rem 0.4rem 0;
}

.post-card-header { margin-bottom: 1.2rem; }

.post-card-primary-tag {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.3;
  margin: 0 0 1.2rem;
  color: var(--color-primary);
}

.post-card-excerpt {
  font-size: 1.55rem;
  line-height: 1.6;
  color: var(--color-midgrey);
  margin-bottom: 2rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-midgrey);
  margin-top: auto;
}

.post-card-meta .author-profile-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Feature image for post-template */
.feature-image {
  grid-column: wide-start / wide-end;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  margin: 0 0 4rem;
  border-radius: 6px;
}

.feature-image-caption {
  grid-column: main-start / main-end;
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-midgrey);
  font-style: italic;
  margin: -2rem 0 3rem;
}

/* Post full */
.post-full {
  padding: 4rem 0 6rem;
}

.post-full .post-full-header {
  text-align: center;
  padding: 4rem 0 2rem;
}

.post-full-title {
  font-size: 4.8rem;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  line-height: 1.15;
}

.post-full-meta {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-midgrey);
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.8rem;
  line-height: 1.7;
}

.post-content h2 { margin-top: 3rem; font-size: 3rem; }
.post-content h3 { margin-top: 2.4rem; font-size: 2.2rem; }

.post-content p { margin-bottom: 1.8em; }

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-midgrey);
  font-size: 2rem;
}

.post-content ul, .post-content ol { padding-left: 2.4rem; margin-bottom: 1.8em; }
.post-content li { margin-bottom: 0.6em; }

/* Tag list */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 3rem 0;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--color-whitegrey);
  border-radius: 40px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Author card */
.author-card {
  display: flex;
  gap: 2rem;
  padding: 3rem;
  background: var(--color-whitegrey);
  border-radius: 6px;
  margin: 4rem 0;
}

.author-profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card-content h4 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}

.author-card-content p {
  margin: 0;
  font-size: 1.55rem;
  color: var(--color-midgrey);
}

/* Kg cards (Koenig editor) */
.kg-card { margin: 2.4rem 0; }
.kg-image-card img { border-radius: 6px; }
.kg-image-card figcaption {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-midgrey);
  font-style: italic;
  margin-top: 1rem;
}

.kg-bookmark-card {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
}

.kg-bookmark-content { padding: 2rem; flex-grow: 1; }
.kg-bookmark-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}
.kg-bookmark-description {
  font-size: 1.4rem;
  color: var(--color-midgrey);
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: #D1D5DB;
  padding: 6rem 0 3rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 4vmin;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.4rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 2rem;
}

.footer p, .footer li {
  font-size: 1.5rem;
  color: #9CA3AF;
  line-height: 1.7;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.8rem; }
.footer a { color: #D1D5DB; }
.footer a:hover { color: var(--color-accent); }

.footer-bottom {
  max-width: 1320px;
  margin: 4rem auto 0;
  padding: 3rem 4vmin 0;
  border-top: 1px solid #1F2937;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 1.3rem;
  color: #6B7280;
}

.footer-disclaimer {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding: 2rem 4vmin 0;
  font-size: 1.3rem;
  color: #6B7280;
  line-height: 1.6;
  font-style: italic;
}

/* Subscribe */
.subscribe {
  padding: 6rem 4vmin;
  background: var(--color-cream);
  text-align: center;
  margin: 6rem 0 0;
}

.subscribe h3 {
  font-size: 3.2rem;
  margin: 0 0 1.2rem;
}

.subscribe p {
  color: var(--color-midgrey);
  font-size: 1.8rem;
  max-width: 560px;
  margin: 0 auto 2.4rem;
}

.subscribe-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 1rem;
}

.subscribe-form input {
  flex-grow: 1;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 1.5rem;
}

.subscribe-form button {
  padding: 1.2rem 2.4rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.4rem;
}

.subscribe-form button:hover { background: var(--color-primary); }

/* Page template (static pages like o-nas) */
.page-template .post-full-content {
  padding: 4rem 0;
}

.page-template .post-full-title {
  text-align: left;
}

/* Info boxes */
.info-box {
  background: var(--color-cream);
  border-left: 4px solid var(--color-accent);
  padding: 2rem 2.4rem;
  margin: 2.4rem 0;
  border-radius: 0 6px 6px 0;
}

.info-box p:last-child { margin-bottom: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.contact-card {
  padding: 2.4rem;
  background: var(--color-whitegrey);
  border-radius: 6px;
}

.contact-card h4 {
  margin: 0 0 1rem;
  color: var(--color-primary);
}

.contact-card p { margin: 0.4rem 0; font-size: 1.55rem; }

.map-container {
  margin: 3rem 0;
  border-radius: 6px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 4rem 0;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.6rem;
}

.team-member h4 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.team-member .role {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.team-member p { font-size: 1.4rem; color: var(--color-midgrey); }

/* Responsive */
@media (max-width: 900px) {
  .gh-head-menu, .gh-head-actions .gh-button {
    display: none;
  }
  .gh-burger { display: block; }
  .gh-head-inner { grid-template-columns: auto 1fr auto; gap: 2rem; }
  .gh-head-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 2rem 4vmin;
    border-bottom: 1px solid var(--color-border);
    gap: 1.6rem;
  }
  h1 { font-size: 3.6rem; }
  .hero-post .post-title { font-size: 3.6rem; }
  .hero-post .post-excerpt { font-size: 1.8rem; }
  .post-feed { grid-template-columns: 1fr; }
  .post-feed .post-card:nth-child(6n+1) { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid, .team-grid { grid-template-columns: 1fr; }
  .post-full-title { font-size: 3.2rem; }
  .subscribe-form { flex-direction: column; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-post .post-title { font-size: 2.8rem; }
  body { font-size: 1.55rem; }
}
