@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

/* ── LANGUAGE SWITCHER BUTTON ── */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 11px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-switcher button.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

:root {
  --fg: #1e1e1e;
  --muted: #999;
  --bg: #ede9e1;
  --card: #ffffff;
  --accent: #b85c2a;
  --header-bg: #161616;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
}

/* ── HEADER ── */
header {
  position: relative;
  background: var(--header-bg);
  padding: 52px 48px 44px;
}

.eyebrow {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2em, 5vw, 3.6em);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.tagline {
  color: #777;
  font-size: 0.95em;
  max-width: 520px;
  line-height: 1.5;
}

.header-note {
  color: #555;
  font-size: 0.78em;
  font-style: italic;
  max-width: 480px;
  line-height: 1.5;
  margin-top: 12px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--accent);
  overflow-x: auto;
}

.stats-bar .inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.stat {
  padding: 13px 28px 13px 0;
  margin-right: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78em;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}

/* ── GRID ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ── CARDS ── */
.post {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.13);
}

.post--wide {
  grid-column: 1 / -1;
}

.post img.hero {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.post--wide img.hero {
  height: 380px;
}

.post-body {
  padding: 26px 28px 30px;
}

/* ── TAG ── */
.tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.67em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 13px;
}

/* ── POST TYPOGRAPHY ── */
.post h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}

.post--wide .post-body h2 {
  font-size: 1.7em;
}

.date {
  font-size: 0.75em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.post p {
  font-size: 0.93em;
  color: #444;
  margin-bottom: 10px;
}

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

.post ul {
  margin: 8px 0 10px 20px;
  font-size: 0.93em;
  color: #444;
}

.post li {
  margin: 3px 0;
}

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

.post a:hover {
  text-decoration: none;
}

/* ── INLINE IMAGES & VIDEO ── */
.post img:not(.hero),
.post video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
}

/* ── GALLERY GRID ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-top: 0;
  border-radius: 6px;
  box-shadow: none;
}

/* ── CLICK-TO-ZOOM IMAGES ── */
.post img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── FOOTER ── */
footer {
  background: var(--header-bg);
  color: #555;
  text-align: center;
  padding: 28px;
  font-size: 0.8em;
}

/* ── RESPONSIVE ── */
@media (max-width: 740px) {
  header {
    padding: 36px 20px 32px;
  }

  .stats-bar .inner {
    padding: 0 16px;
  }

  main {
    grid-template-columns: 1fr;
    padding: 28px 16px 48px;
    gap: 20px;
  }

  .post--wide {
    grid-column: auto;
  }

  .post img.hero,
  .post--wide img.hero {
    height: 220px;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    height: 120px;
  }
}
