
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sticky glass topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Editorial Hero Banner (desktop background photo + left gradient; mobile 16:9 stacked) */
.hero-wrap {
  position: relative;
}
.hero-banner {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
  display: flex;
  align-items: center;
  background-color: var(--hero-bg, var(--surface));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-mobile-media {
  display: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--container, 1140px);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) 1.5rem;
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: min(560px, 56%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero-banner h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-lead {
  margin: 0 0 1.45rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
  max-width: 48ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
}
.hero-cta-arrow {
  transition: transform 0.18s ease;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(3px);
}

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.15rem;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Editorial article reading view */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.article-header h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
.article-meta-sep { opacity: 0.45; }
.reading-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-alt, var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
}

/* Prose typography */
.article-body {
  font-size: 1.03rem;
  line-height: 1.78;
}
.article-body > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--text);
}
.article-body h2 {
  margin: 2.3rem 0 0.85rem;
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.article-body h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.16rem;
  line-height: 1.3;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.3rem;
  padding-left: 1.35rem;
}
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  margin: 0.75rem 0;
}
.article-body summary {
  font-weight: 600;
  cursor: pointer;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill-ok { background: #E7F4EC; color: #165B38; border: 1px solid #C2E2CE; }
.pill-no { background: #FCECE8; color: #962E1B; border: 1px solid #F2C9BF; }
.pill-warn { background: #FDF3DF; color: #7C4A0E; border: 1px solid #F0D6A3; }

/* Responsive tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1rem 0 2.2rem;
}

/* Mobile hero stack (< 768px): full 16:9 image above, crisp copy below, zero overlap */
@media (max-width: 767px) {
  .hero-banner {
    background-image: none !important;
    min-height: 0;
    display: block;
  }
  .hero-mobile-media {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  .hero-mobile-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: right center;
  }
  .hero-inner {
    padding: 1.75rem 1.25rem 2.1rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-banner h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
  }
}

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

:root {
  --primary: #1F5B3C;
  --hero-dark: #163F2A;
  --secondary: #A4262C;
  --accent: #D9B15C;
  --accent-light: #E8C97E;
  --bg: #FBF4E6;
  --surface: #FFFDF8;
  --surface-alt: #F4E9D2;
  --text: #262520;
  --muted: #565449;
  --border: #E4D6B7;
  --hero-bg: #163F2A;
  --container: 1140px;
  --shadow-card: 0 1px 2px rgba(22,63,42,.05), 0 12px 32px rgba(22,63,42,.06);
}
body { font-family: 'Lato', system-ui, -apple-system, sans-serif; }
h1, h2, h3, .brand { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 700; }
a { color: var(--primary); text-decoration-color: var(--accent); }
a:hover { color: var(--secondary); }
.mono { font-size: 0.84rem; color: var(--muted); }

.topbar {
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 2px solid var(--primary);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.42rem;
  text-decoration: none; color: var(--primary); font-style: italic; font-size: 1.28rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 1.15rem; font-size: 0.88rem; font-weight: 700; }
.nav a { text-decoration: none; color: var(--text); padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--secondary); border-bottom-color: var(--accent); }

/* Prabangus tamsiai žalias herojus su šviesia pergamento tipografija */
.hero-banner {
  background-color: var(--hero-dark);
  color: #FBF4E6;
  border-bottom: 3px solid var(--accent);
  background-image:
    linear-gradient(95deg, #163F2A 0%, rgba(22, 63, 42, 0.96) 40%, rgba(22, 63, 42, 0.62) 58%, rgba(22, 63, 42, 0.08) 78%, rgba(22, 63, 42, 0) 100%),
    url('banner.webp');
}
.hero-kicker {
  color: var(--accent-light);
  border: 1px solid rgba(232, 201, 126, 0.45);
  background: rgba(22, 63, 42, 0.55);
  padding: 0.26rem 0.72rem;
  border-radius: 4px;
}
.hero-banner h1 { color: #FBF4E6; font-style: italic; font-weight: 700; }
.gold-rule { width: 100px; height: 2px; background: var(--accent); margin: 0.45rem 0 1.05rem; }
.hero-lead { color: #EAE1CE; }
.hero-cta {
  background: var(--accent); color: #163F2A; border-radius: 6px; font-weight: 700;
}
.hero-cta:hover { background: #FBF4E6; color: #163F2A; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.narrow { max-width: 680px; margin: 0 auto; }
.festive-shell { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 2.4rem; align-items: start; }
.festive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 1.15rem; margin: 1rem 0 2.5rem; }
.festive-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary);
  border-radius: 10px; padding: 1.3rem; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; justify-content: space-between; gap: 0.65rem;
  box-shadow: var(--shadow-card); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.festive-card:hover { transform: translateY(-2px); border-color: var(--secondary); box-shadow: 0 6px 22px rgba(22,63,42,.09); }
.date-tag {
  align-self: flex-start; font-size: 0.74rem; font-weight: 700; padding: 0.2rem 0.58rem;
  border-radius: 4px; background: var(--bg); border: 1px solid var(--accent); color: var(--secondary);
}
.festive-card h3 { margin: 0; font-size: 1.12rem; color: var(--primary); }
.festive-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.year-wheel {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--secondary);
  border-radius: 10px; padding: 1.4rem; position: sticky; top: 5rem; box-shadow: var(--shadow-card);
}
.year-wheel h2 { margin: 0 0 0.85rem; font-size: 1.08rem; color: var(--primary); }
.year-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.year-list li { display: flex; justify-content: space-between; gap: 0.6rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.4rem; }
.year-date { font-weight: 700; color: var(--secondary); white-space: nowrap; }

.callout { background: var(--surface); border: 1px solid var(--primary); border-radius: 10px; padding: 1.15rem 1.35rem; margin: 1.25rem 0; box-shadow: var(--shadow-card); }
.article-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.85rem; }
.article-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-card); transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-list li:hover { transform: translateY(-2px); border-color: var(--primary); }
.article-list a { text-decoration: none; color: var(--text); }

.site-footer { border-top: 2px solid var(--primary); background: var(--surface); padding: 2.2rem 1.5rem; font-size: 0.88rem; color: var(--muted); }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--primary); font-weight: 700; }
.footer-links a:hover { color: var(--secondary); text-decoration: underline; }
@media (max-width: 860px) {
  .festive-shell { grid-template-columns: 1fr; }
  .year-wheel { position: static; }
}
