#nav-toggle { display: none; }
/* ============================================
   RETRO — 70s Warm Vintage Design
   Earth tones, rounded shapes, groovy feel
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

* { box-sizing: border-box; }

:root {
  --bg: #FDF6EC;
  --surface: #FFFFFF;
  --text: #3D2B1F;
  --text-muted: #8B7355;
  --accent-orange: #E8722A;
  --accent-teal: #2A9D8F;
  --accent-gold: #D4A843;
  --accent-brown: #6B4226;
  --accent-cream: #F5E6D0;
  --border: #D4C4A8;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
}

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--accent-gold);
  color: var(--text);
}

/* ---- HEADER ---- */
body > header {
  background: var(--accent-brown);
  color: var(--accent-cream);
}

body > header > div {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--accent-cream);
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.logo span {
  display: inline;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.hamburger { display: none; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--sp-3);
}

nav ul li a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cream);
  border-radius: var(--radius-pill);
  transition: background 0.25s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- MAIN ---- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ---- ARTICLES SECTION ---- */
.articles-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-3);
  position: relative;
}

.articles-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  border-radius: 2px;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

/* first card — full width hero */
.articles-grid article:first-child {
  grid-column: 1 / -1;
}

.articles-grid article:first-child a {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.articles-grid article:first-child a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.15);
}

.articles-grid article:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.articles-grid article:first-child .card-body {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.articles-grid article:first-child h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-4);
  color: var(--accent-brown);
}

/* other cards */
.articles-grid article:not(:first-child) a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.articles-grid article:not(:first-child) a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.15);
}

.articles-grid article:not(:first-child) img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.articles-grid article:not(:first-child) .card-body {
  padding: var(--sp-6);
}

.articles-grid article:not(:first-child) h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  color: var(--accent-brown);
}

.articles-grid article p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.articles-grid article time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange);
  background: var(--accent-cream);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* ---- ABOUT SECTION ---- */
.about-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  margin-top: var(--sp-12);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  border-left: 5px solid var(--accent-orange);
}

.about-section h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-6);
}

.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.about-section ul {
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0;
}

.about-section li {
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-section li:last-child {
  border-bottom: none;
}

.about-section li strong {
  color: var(--accent-brown);
}

/* ---- COMMENTS SECTION ---- */
.comments-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-3);
}

.comments-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-teal);
  border-radius: 2px;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.comments-list article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.06);
  border-left: 3px solid var(--accent-teal);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.comment-header a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-brown);
}

.comment-header a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
}

.comment-header time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comments-list article p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---- COMMENTS CTA ---- */
.comments-cta {
  background: var(--accent-brown);
  color: var(--accent-cream);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  margin-top: var(--sp-8);
  text-align: center;
}

.comments-cta h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.comments-cta p {
  opacity: 0.8;
  margin-bottom: var(--sp-6);
}

.comments-cta a {
  display: inline-block;
  padding: var(--sp-3) var(--sp-8);
  background: var(--accent-orange);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.25s;
}

.comments-cta a:hover {
  background: var(--accent-gold);
}

/* ---- ARTICLE PAGE ---- */
.breadcrumb {
  list-style: none;
  display: flex;
  gap: var(--sp-2);
  padding: 0;
  margin: 0 0 var(--sp-6) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--sp-2);
  color: var(--border);
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent-orange);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-hero {
  margin-bottom: var(--sp-8);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 25px rgba(61, 43, 31, 0.12);
}

.article-meta {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta time {
  color: var(--accent-orange);
  font-weight: 600;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--accent-brown);
  margin-bottom: var(--sp-8);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 720px;
  color: var(--text);
}

.article-content p {
  margin-bottom: var(--sp-6);
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-brown);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}

.article-content blockquote {
  border-left: 4px solid var(--accent-gold);
  padding: var(--sp-4) var(--sp-6);
  margin: var(--sp-6) 0;
  background: var(--accent-cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-content code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--accent-cream);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-brown);
}

.article-content pre {
  background: var(--accent-brown);
  color: var(--accent-cream);
  padding: var(--sp-6);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ---- AUTH PAGE ---- */
.auth-section {
  max-width: 440px;
  margin: var(--sp-16) auto;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  border-top: 5px solid var(--accent-orange);
}

.auth-card h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-brown);
  text-align: center;
  margin-bottom: var(--sp-8);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-card label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: var(--sp-4);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s;
}

.auth-card input:focus {
  border-color: var(--accent-orange);
}

.auth-card button {
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s;
}

.auth-card button:hover {
  background: var(--accent-brown);
}

.auth-links {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.auth-social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  transition: background 0.2s, border-color 0.2s;
}

.auth-social:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.auth-social img {
  width: 22px;
  height: 22px;
}

/* ---- SEARCH PAGE ---- */
.search-section {
  max-width: 640px;
  margin: var(--sp-12) auto;
}

.search-section h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-6);
}

.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}

.search-form input {
  flex: 1;
  padding: var(--sp-4) var(--sp-6);
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-form button {
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent-orange);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: background 0.25s;
}

.search-form button:hover {
  background: var(--accent-brown);
}

/* ---- CONTACTS PAGE ---- */
.contacts-section {
  max-width: 640px;
  margin: var(--sp-12) auto;
}

.contacts-section h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-6);
}

.contacts-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

/* ---- 404 PAGE ---- */
.not-found {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
}

.not-found h1 {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--sp-4);
  color: var(--accent-orange);
}

.not-found p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

.not-found a {
  display: inline-block;
  padding: var(--sp-3) var(--sp-8);
  background: var(--accent-orange);
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s;
}

.not-found a:hover {
  background: var(--accent-brown);
}

/* ---- ABOUT PAGE ---- */
.about-page {
  max-width: 720px;
  margin: var(--sp-12) auto;
}

.about-page h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-8);
}

/* ---- FOOTER ---- */
footer {
  background: var(--accent-brown);
  color: var(--accent-cream);
  margin-top: var(--sp-12);
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #nav-toggle {
    display: block;
    appearance: none;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    color: var(--accent-cream);
    font-size: 1.3rem;
  }

  #nav-toggle:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
  }

  #nav-toggle::before {
    content: "☰";
    font-size: 1.3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--accent-brown);
    padding: var(--sp-2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
  }

  #nav-toggle:checked ~ .nav-menu {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: var(--sp-1);
  }

  nav ul li a {
    padding: var(--sp-3) var(--sp-4);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .articles-grid article:first-child a {
    grid-template-columns: 1fr;
  }

  .articles-grid article h3 {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .articles-grid article p {
    font-size: 0.9rem;
  }

  .article-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .not-found h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  /* Larger touch targets */
  input, button, textarea, select {
    font-size: 16px;
  }

  .container {
    padding: var(--sp-4) var(--sp-3);
  }
}

/* =========================
   Comment replies
========================= */
.comment-replies {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comment--reply {
  margin-left: var(--space-lg);
  border-left: 2px solid var(--accent-color, var(--border-color));
  background: transparent;
}

/* ===========================
   Accessibility: Skip Link
=========================== */
.skip-link {
  position: fixed;
  top: -100%;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===========================
   Reading Progress Bar
=========================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.05);
  z-index: 1000;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: var(--accent-color);
  width: 0%;
  transition: width 0.1s linear;
}

/* ===========================
   Reading Time
=========================== */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reading-time::before {
  content: "⏱";
  font-size: 0.9em;
}

/* ===========================
   Scroll Animations
=========================== */

:root {
  --t-fast: 0.2s;
  --t-base: 0.3s;
  --t-slow: 0.5s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
}

.animate-on-scroll.is-visible {
  animation: fadeSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.articles-grid .animate-on-scroll.is-visible:nth-child(2) { animation-delay: 0.1s; }
.articles-grid .animate-on-scroll.is-visible:nth-child(3) { animation-delay: 0.15s; }
.articles-grid .animate-on-scroll.is-visible:nth-child(4) { animation-delay: 0.2s; }
.articles-grid .animate-on-scroll.is-visible:nth-child(5) { animation-delay: 0.25s; }
.articles-grid .animate-on-scroll.is-visible:nth-child(6) { animation-delay: 0.3s; }

/* Fade-in for lazy-loaded images */
@keyframes imgFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img[loading="lazy"] {
  opacity: 0;
  animation: none;
}

img[loading="lazy"].is-loaded {
  animation: imgFadeIn 0.4s ease-out forwards;
}

/* ===========================
   Cookie Banner — Retro
=========================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--accent-cream);
  border-top: 4px solid var(--accent-orange);
  box-shadow: 0 -4px 20px rgba(61, 43, 31, 0.12);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-slow);
  border-radius: var(--radius) var(--radius) 0 0;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.cookie-banner__inner p {
  color: var(--text);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background var(--t-fast), transform var(--t-fast);
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
}

.cookie-banner__btn--accept {
  background: var(--accent-orange);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  background: var(--accent-brown);
}

.cookie-banner__btn--more {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.cookie-banner__btn--more:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================
   Scroll to Top — Retro
=========================== */

.scroll-to-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(232, 114, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base), background var(--t-fast);
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
}

/* ===========================
   Share Buttons — Retro
=========================== */

.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) 0;
  margin-top: var(--sp-4);
  border-top: 2px dashed var(--border);
  flex-wrap: wrap;
}

.share-buttons__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-brown);
  font-family: var(--font-serif);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-btn svg {
  flex-shrink: 0;
}

.share-btn--vk {
  background: var(--accent-orange);
}

.share-btn--vk:hover {
  background: #d4641f;
}

.share-btn--tg {
  background: var(--accent-brown);
}

.share-btn--tg:hover {
  background: #5a371f;
}

.share-btn--tw {
  background: var(--accent-gold);
  color: var(--text);
}

.share-btn--tw:hover {
  background: #c49a38;
  color: var(--text);
}

@media (max-width: 600px) {
  .share-buttons {
    justify-content: center;
  }
  .share-buttons__label {
    width: 100%;
    text-align: center;
  }
}

/* ===========================
   Related Articles — Retro
=========================== */

.related-articles {
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 2px dashed var(--border);
}

.related-articles__heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-brown);
  margin-bottom: var(--sp-6);
  position: relative;
}

.related-articles__heading::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent-teal);
  border-radius: 2px;
  margin-top: var(--sp-3);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.related-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(61, 43, 31, 0.08);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(61, 43, 31, 0.15);
}

.related-card .card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-card .card-body {
  padding: var(--sp-4);
}

.related-card h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--sp-2);
  color: var(--accent-brown);
}

.related-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* ===========================
   Subscribe Form — Retro
=========================== */

.footer-subscribe {
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.subscribe-block__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-cream);
  margin: 0 0 var(--sp-2);
}

.subscribe-block__text {
  font-size: 0.9rem;
  color: rgba(245, 230, 208, 0.6);
  margin: 0 0 var(--sp-6);
}

.subscribe-form__group {
  display: flex;
  gap: 0;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid rgba(245, 230, 208, 0.2);
}

.subscribe-form__input {
  flex: 1;
  padding: var(--sp-3) var(--sp-6);
  border: none;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cream);
  outline: none;
  min-width: 0;
  transition: background var(--t-fast);
}

.subscribe-form__input::placeholder {
  color: rgba(245, 230, 208, 0.4);
}

.subscribe-form__input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.subscribe-form__btn {
  padding: var(--sp-3) var(--sp-6);
  background: var(--accent-orange);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast);
}

.subscribe-form__btn:hover {
  background: var(--accent-gold);
}

.subscribe-form__success {
  margin-top: var(--sp-4);
  font-size: 0.9rem;
  color: var(--accent-teal);
  font-weight: 700;
}

.subscribe-form__success.is-visible {
  display: block !important;
}

@media (max-width: 600px) {
  .auth-socials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .subscribe-form__group {
    flex-direction: column;
    border-radius: var(--radius);
  }
  .subscribe-form__btn {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}

/* ===========================
   Reduced Motion — Retro
=========================== */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .animate-on-scroll.is-visible {
    animation: none;
  }
  img[loading="lazy"] {
    opacity: 1;
  }
  img[loading="lazy"].is-loaded {
    animation: none;
  }
  .cookie-banner {
    transition: none;
  }
  .scroll-to-top {
    transition: none;
  }
}

/* Article Content Typography */
.article-body {
  line-height: 1.75;
}
.article-body h1,
.article-body h2,
.article-body h3 {
  margin-block: 1.5rem 1rem;
}
.article-body p {
  margin-block: 1rem;
}
.article-body ul,
.article-body ol {
  margin-block: 1rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-block: 0.35rem;
}
.article-body blockquote {
  border-left: 3px solid currentColor;
  padding-left: 1rem;
  margin: 1.5rem 0;
  opacity: 0.85;
  font-style: italic;
}

/* Featured Image */
.featured-image {
  display: block;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0 auto var(--space-xl, 2rem);
  border-radius: var(--border-radius, 8px);
}
/* Article Content Images */
.article-body img {
  display: block;
  max-width: min(50%, 620px);
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
}

/* Article Tables */
.article-body table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.article-body table thead,
.article-body table tbody,
.article-body table tfoot {
  display: table;
  width: 100%;
  table-layout: fixed;
}
.article-body table thead {
  background: rgba(128, 128, 128, 0.35);
  font-weight: 700;
}
.article-body table th,
.article-body table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid rgba(128, 128, 128, 0.4);
  white-space: normal;
  word-break: break-word;
}
.article-body table th {
  font-weight: 700;
  text-align: center;
}
.article-body table tbody tr:nth-child(even) {
  background: rgba(128, 128, 128, 0.1);
}
.article-body table tbody tr:hover {
  background: rgba(128, 128, 128, 0.15);
}
@media (max-width: 768px) {
  .article-body table {
    font-size: 0.85rem;
  }
  .article-body table th,
  .article-body table td {
    padding: 0.5rem;
  }
  .article-body img {
    max-width: 100%;
  }
}

/* Fix: auto-reveal hidden elements that never enter viewport */
.animate-on-scroll:not(.is-visible) {
  animation: aos-fallback-reveal 0.5s ease forwards;
  animation-delay: 1.5s;
}
@keyframes aos-fallback-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* === Contacts === */
.contacts-hero { margin-bottom: 2rem; }
.contacts-hero h1 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.contacts-form-section h2 { font-family: var(--font-heading); margin-bottom: 1rem; }
.contacts-form .form-group { margin-bottom: 1rem; }
.contacts-form .form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.contacts-form .form-group input,
.contacts-form .form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface, #fff);
  color: var(--text, #333);
}
.contacts-form .form-group textarea { min-height: 120px; resize: vertical; }
.contacts-form .btn-submit {
  padding: 0.8rem 2rem;
  background: var(--accent-color, #333);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.contacts-form .btn-submit:hover { opacity: 0.9; }
.contacts-info h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; }
.contacts-info p { margin-bottom: 0.5rem; }
.contacts-info a { color: var(--accent-color, #333); }
.social-links { list-style: none; padding: 0; }
.social-links li { margin-bottom: 0.3rem; }
@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
