/* ============================================
   GARDENT.PL, Botanical Journal po zmroku
   ============================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* COLORS, Botanical Journal (light, paper) */
  --color-bg: #F6EFD9;            /* aged cream paper (page background) */
  --color-bg-2: #EFE5C5;          /* slightly deeper paper for sections */
  --color-surface: #FFFAEA;       /* card paper, brighter cream */
  --color-surface-warm: #F2E7C2;  /* card hover */
  --color-surface-edge: #d9c89a;  /* paper edge */
  --color-accent: #1E4D2B;        /* green from infographic title bar */
  --color-accent-light: #7da267;  /* TIP bar green */
  --color-terracotta: #C97B5B;    /* CTA */
  --color-terracotta-hover: #b56a4c;
  /* Legacy names kept; now mean 'text on dark bg of header/footer' which is still cream */
  --color-text-on-dark: #FFFAEA;
  --color-text-on-dark-muted: #cdb98a;
  --color-text-on-cream: #2E2014;
  --color-text-on-cream-muted: #6b4f3a;
  --color-ink: #2E2014;
  --color-divider-dark: rgba(255, 250, 234, 0.18);
  --color-divider-light: rgba(46, 32, 20, 0.18);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(46, 32, 20, 0.08);
  --shadow-md: 0 4px 16px rgba(46, 32, 20, 0.10);
  --shadow-lg: 0 16px 40px rgba(46, 32, 20, 0.18);
  --shadow-card: 0 8px 24px rgba(46, 32, 20, 0.12), 0 2px 6px rgba(46, 32, 20, 0.08);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1280px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(125, 162, 103, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 123, 91, 0.10) 0%, transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p, li, figcaption {
  text-wrap: pretty;
}

::selection {
  background: var(--color-accent-light);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container--wide {
  max-width: var(--content-wide);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 77, 43, 0.96); /* deep infographic green */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(46, 32, 20, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-surface);
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand:hover {
  color: var(--color-accent-light);
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: #b9d49b;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.brand-text small {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: #d8c7a1;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-style: normal;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}

.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-accent-light);
}

.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent-light);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-dark);
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: var(--color-accent);
    padding: var(--space-6) var(--space-8);
    gap: var(--space-4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transform: translateY(-110%);
    transition: transform 300ms ease;
    align-items: flex-start;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-surface);
}

.btn--primary:hover {
  background: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 123, 91, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: rgba(46, 32, 20, 0.3);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-surface);
  border-color: rgba(255, 250, 234, 0.4);
}

.btn--ghost-light:hover {
  border-color: var(--color-surface);
  color: var(--color-surface);
  background: rgba(255, 250, 234, 0.1);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 234, 0.0) 0%, rgba(255, 250, 234, 0.0) 50%, rgba(246, 239, 217, 0.55) 100%),
    linear-gradient(90deg, rgba(255, 250, 234, 0.85) 0%, rgba(255, 250, 234, 0.55) 35%, rgba(255, 250, 234, 0.0) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--color-accent-light);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '~';
  margin: 0 0.4em;
  opacity: 0.7;
}

.hero h1 {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  line-height: 1.02;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-terracotta);
  padding-left: 0.15em;
  padding-right: 0.05em;
}

.hero-eyebrow {
  color: var(--color-accent);
}

.hero-lead {
  font-size: var(--text-lg);
  color: var(--color-text-on-cream);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 580px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ---------- HAND LABEL (~SŁOWO~) ---------- */
.hand-label {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hand-label::before,
.hand-label::after {
  content: '~';
  margin: 0 0.3em;
  opacity: 0.7;
}

.hand-label--light {
  color: var(--color-accent-light);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  margin-bottom: var(--space-12);
  max-width: var(--content-narrow);
}

.section-header.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-on-cream-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* ---------- POSTS GRID ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(var(--space-4), 2vw, var(--space-6));
}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  color: var(--color-text-on-cream);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card::before {
  /* paper edge effect */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(46, 32, 20, 0.10);
  z-index: 1;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(46, 32, 20, 0.16), 0 4px 10px rgba(46, 32, 20, 0.10);
}

.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.post-card__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-bg-2);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.post-card__body {
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-on-cream-muted);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.post-card__category {
  color: var(--color-accent);
}

.post-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-style: italic;
  color: var(--color-text-on-cream);
  margin-bottom: var(--space-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-on-cream-muted);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  flex: 1;
}

.post-card__more {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Featured big card, top row 50/50 */
.post-card--featured {
  grid-column: span 6;
}

.post-card--featured .post-card__image {
  aspect-ratio: 16 / 10;
}

.post-card--featured .post-card__body {
  padding: var(--space-8);
}

.post-card--featured .post-card__title {
  font-size: var(--text-xl);
}

.post-card--featured .post-card__excerpt {
  font-size: var(--text-base);
}

.post-card--medium {
  grid-column: span 6;
}

.post-card--medium .post-card__image {
  aspect-ratio: 16 / 10;
}

.post-card--medium .post-card__body {
  padding: var(--space-8);
}

.post-card--medium .post-card__title {
  font-size: var(--text-xl);
}

.post-card--medium .post-card__excerpt {
  font-size: var(--text-base);
}

.post-card--small {
  grid-column: span 4;
}

@media (max-width: 900px) {
  .post-card--featured,
  .post-card--medium,
  .post-card--small {
    grid-column: span 12;
  }
}

/* Index grid, uniform */
.posts-grid--uniform .post-card {
  grid-column: span 4;
}
@media (max-width: 900px) {
  .posts-grid--uniform .post-card {
    grid-column: span 6;
  }
}
@media (max-width: 600px) {
  .posts-grid--uniform .post-card {
    grid-column: span 12;
  }
}

/* ---------- CATEGORIES STRIP ---------- */
.categories {
  background: var(--color-accent);
  color: var(--color-surface);
  border-block: 1px solid rgba(0, 0, 0, 0.18);
  position: relative;
}

.categories .section-header h2 {
  color: var(--color-surface);
}

.categories .section-header p {
  color: rgba(255, 250, 234, 0.78);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 800px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  transition: background var(--transition);
}

.category-card:hover {
  background: rgba(255, 250, 234, 0.08);
}

.category-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: #b9d49b;
}

.category-card h3 {
  font-size: var(--text-lg);
  color: var(--color-surface);
  margin-bottom: var(--space-2);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}

.category-card p {
  font-size: var(--text-sm);
  color: rgba(255, 250, 234, 0.78);
  line-height: 1.55;
  max-width: 32ch;
  margin: 0 auto;
}

/* ---------- ABOUT TEASER ---------- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

@media (max-width: 800px) {
  .about-teaser {
    grid-template-columns: 1fr;
  }
}

.about-teaser__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}

.about-teaser__image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-teaser__content blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-accent);
  line-height: 1.35;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}

.about-teaser__content p {
  color: var(--color-text-on-cream-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-accent);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-block: var(--space-16) var(--space-8);
  color: rgba(255, 250, 234, 0.75);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand .brand {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  max-width: 36ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-surface);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-divider-dark);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16));
  text-align: center;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(125, 162, 103, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.page-header__eyebrow {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  position: relative;
}

.page-header__eyebrow::before,
.page-header__eyebrow::after {
  content: '~';
  margin: 0 0.4em;
  opacity: 0.7;
}

.page-header h1 {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-header p {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--color-text-on-cream-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* ---------- ABOUT PAGE ---------- */
.about-content {
  max-width: 64ch;
  margin: 0 auto;
}

.about-content > * + * {
  margin-top: var(--space-6);
}

.about-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-on-cream);
  max-width: none;
}

.about-content p.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-accent);
  line-height: 1.55;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-accent);
  margin-top: var(--space-12);
  margin-bottom: var(--space-2);
}

.about-content blockquote {
  border-left: 3px solid var(--color-accent-light);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-accent);
  line-height: 1.5;
}

.about-content ul {
  padding-left: var(--space-6);
  color: var(--color-text-on-cream);
}

.about-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.about-content li::marker {
  color: var(--color-accent-light);
}

.about-content strong {
  color: var(--color-accent);
  font-weight: 700;
}

.about-illustration {
  margin: var(--space-12) auto;
  max-width: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-illustration img {
  width: 100%;
  display: block;
}

/* ---------- CONTACT ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info p {
  color: var(--color-text-on-cream-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.contact-info strong {
  color: var(--color-accent);
}

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  color: var(--color-text-on-cream);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(46, 32, 20, 0.08);
}

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-on-cream);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-surface-edge);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text-on-cream);
  transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-on-cream-muted);
  margin-top: var(--space-4);
  line-height: 1.55;
}

/* ---------- BLOG INDEX FILTERS ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-12);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--color-text-on-cream-muted);
  background: transparent;
  border: 1px solid rgba(46, 32, 20, 0.25);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(125, 162, 103, 0.10);
}

.filter-chip.is-active {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}

/* tylda jest juz w tresci, bez pseudo-elementow zeby sie nie dublowala */

/* ---------- CATEGORY CAROUSEL ---------- */
.cat-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  padding-inline: clamp(var(--space-1), 2vw, var(--space-4));
}

.cat-carousel__track {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-2) var(--space-1);
  mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.cat-carousel__track::-webkit-scrollbar { display: none; }

.cat-carousel__track > .filter-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
}

.cat-carousel__arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(46, 32, 20, 0.25);
  background: var(--color-surface);
  color: var(--color-accent);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.cat-carousel__arrow:hover {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.cat-carousel__arrow:disabled,
.cat-carousel__arrow[aria-disabled="true"] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: var(--color-surface);
  color: var(--color-text-on-cream-muted);
  border-color: rgba(46, 32, 20, 0.18);
}

.cat-carousel__arrow svg {
  display: block;
}

@media (max-width: 640px) {
  .cat-carousel__arrow {
    width: 36px;
    height: 36px;
  }
  .cat-carousel__track {
    gap: var(--space-2);
  }
}

/* ---------- ARTICLE PAGE ---------- */
.article {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.article-header {
  max-width: 72ch;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-on-cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-text-on-cream-muted);
}

.article-meta .article-category {
  color: var(--color-accent);
}

.article-header h1 {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--color-text-on-cream-muted);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 auto;
}

.article-hero {
  max-width: var(--content-default);
  margin: 0 auto var(--space-12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-hero img {
  width: 100%;
  display: block;
}

.article-body {
  max-width: 65ch;
  margin: 0 auto;
}

.article-body > * + * {
  margin-top: var(--space-5);
}

.article-body p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-on-cream);
  max-width: none;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-accent);
  margin-top: var(--space-12);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  margin-top: var(--space-8);
  font-weight: 500;
}

.article-body ul,
.article-body ol {
  padding-left: var(--space-6);
  color: var(--color-text-on-cream);
}

.article-body li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
  max-width: none;
}

.article-body li::marker {
  color: var(--color-accent);
}

.article-body strong {
  color: var(--color-accent);
  font-weight: 700;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--color-terracotta);
}

.callout {
  background: rgba(125, 162, 103, 0.18);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  margin-block: var(--space-8);
}

.callout strong {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--color-accent);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-2);
}

.callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-on-cream);
  line-height: 1.65;
}

.article-infographic {
  margin: var(--space-10) auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-infographic img {
  width: 100%;
  display: block;
}

.article-infographic figcaption {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-on-cream-muted);
  margin-top: var(--space-3);
  font-style: italic;
  max-width: none;
}

/* Related posts */
.related {
  border-top: 1px solid rgba(46, 32, 20, 0.15);
  margin-top: var(--space-20);
  padding-top: var(--space-16);
}

.related .section-header h2 {
  color: var(--color-accent);
}

/* ---------- DEMO BADGE ---------- */
.demo-badge {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  background: var(--color-accent);
  color: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 100;
  pointer-events: none;
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-on-cream);
  border: 1px solid rgba(46, 32, 20, 0.18);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(125, 162, 103, 0.10);
}

.pagination .is-current {
  background: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}

.pagination .is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination__dots {
  border: none;
  background: transparent;
  min-width: 0;
}
