* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f8f9fa;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; }

.page-wrap { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }

.listing-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    repeating-linear-gradient(135deg, transparent 0 34px, #ffffff0c 34px 68px),
    linear-gradient(135deg, #1e3048 0%, #2c3e50 30%, #3a526a 60%, #2c3e50 100%);
  color: #fff;
}

.listing-hero::after {
  content: '';
  position: absolute;
  right: max(7vw, calc((100vw - 1180px) / 2));
  bottom: -72px;
  width: 260px;
  height: 260px;
  border: 1px solid #ffffff2c;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #ffffff09, 0 0 0 48px #ffffff06;
  pointer-events: none;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #74a8d4;
  font-size: 0.77rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

.listing-hero h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
}

.listing-hero p { max-width: 590px; margin-bottom: 0; color: #fff; font-size: 1.08rem; }

.post-list { padding: 50px 0 84px; }

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  box-shadow: 0 12px 34px #24384b0b;
  animation: arrive 500ms ease both;
}

.post-card-copy { padding: clamp(28px, 5vw, 52px); }

.post-card h2 {
  max-width: 580px;
  margin: 10px 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.25rem, 4.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.02;
}

.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: #74a8d4; }
.post-card time { color: #666; font-size: 0.9rem; }
.post-card p { margin: 20px 0 25px; color: #555; }

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-card-art {
  display: flex;
  min-height: 300px;
  align-items: flex-end;
  padding: 30px;
  background:
    linear-gradient(155deg, #1e3048 5%, #2c3e50 53%, #3a526a 100%),
    repeating-linear-gradient(45deg, transparent 0 19px, #ffffff19 19px 20px);
  color: #fff;
}

.post-card-art span {
  max-width: 250px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.35rem;
  line-height: 1.05;
}

.article-hero {
  padding: 68px 0 46px;
  background:
    repeating-linear-gradient(135deg, transparent 0 36px, #ffffff0b 36px 72px),
    linear-gradient(135deg, #1e3048 0%, #2c3e50 30%, #3a526a 60%, #2c3e50 100%);
  color: #fff;
}

.article-hero .page-wrap { max-width: 900px; }

.article-hero h1 {
  max-width: 850px;
  margin: 0 0 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
}

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #fff; font-size: 0.94rem; }

.article-body {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 82px;
  animation: arrive 500ms ease both;
}

.article-body p { margin-bottom: 1.35rem; color: #333; }

.article-body h2 {
  margin: 2.4rem 0 0.7rem;
  color: #2c3e50;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
}

.article-body strong { color: #2c3e50; }

.article-cta {
  margin-top: 2.3rem;
  padding: 26px 28px;
  border-left: 4px solid #74a8d4;
  background: #f8f9fa;
}

.article-cta p:last-child { margin-bottom: 0; }
.article-cta a { color: #2c3e50; font-weight: 600; text-underline-offset: 3px; }

.back-link { display: inline-block; margin-top: 32px; color: #2c3e50; font-weight: 600; text-underline-offset: 4px; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .page-wrap, .article-body { width: min(100% - 36px, 680px); }
  .listing-hero { padding: 58px 0; }
  .post-card { grid-template-columns: 1fr; }
  .post-card-art { min-height: 170px; }
  .article-hero { padding: 52px 0 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.nav-qr-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
}
.nav-qr-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-qr-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.nav-qr-popup {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  z-index: 9999;
  text-align: center;
  min-width: 170px;
}
.nav-qr-popup.open { display: block; }
.nav-qr-popup::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 10px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
.footer-qr-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.footer-qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}
.footer-qr-trigger:hover { opacity: 0.8; }
.footer-qr-popup {
  bottom: calc(100% + 10px);
  top: auto;
  left: 0;
  right: auto;
}
.footer-qr-popup::before {
  top: auto;
  bottom: -7px;
  left: 10px;
  right: auto;
  border-bottom: none;
  border-top: 7px solid #fff;
}
.nav-qr-popup #navQrCanvas canvas,
.nav-qr-popup #navQrCanvas img {
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.nav-qr-label {
  font-size: 0.72rem;
  color: #888;
  margin: 0.5rem 0 0.1rem;
  font-family: system-ui, sans-serif;
}
.nav-qr-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  font-family: system-ui, sans-serif;
}
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,0.22); }
.nav-phone-bar {
  display: none;
  width: 100%;
  background: #74a8d4;
  padding: 0.6rem;
  text-align: center;
  border-radius: 6px;
  margin-top: 0.4rem;
}
.nav-phone-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
#lang-switcher button { font-family: inherit; }
.lang-option:hover { background: rgba(255,255,255,0.08); }
.lang-option.active { background: rgba(220,70,60,0.2); }
.lang-option .lang-native { font-size: 0.8rem; opacity: 0.55; margin-left: auto; }
#lang-flag { font-size: 1.3rem; line-height: 1; border-radius: 2px; }
.lang-fi { font-size: 1.1rem; line-height: 1; border-radius: 2px; flex-shrink: 0; }
#lang-label { display: none; }

@media (max-width: 768px) {
  nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 !important;
    padding: 0.75rem 1rem;
    position: relative;
  }
  .nav-brand { order: 1; flex: 1; }
  #lang-switcher { order: 2; margin-right: 0.4rem !important; }
  #lang-label { display: inline; }
  .nav-qr-wrap { display: none !important; }
  .menu-toggle { display: inline-flex; order: 3; }
  #navMenu {
    display: none !important;
    order: 10;
    flex-direction: column !important;
    gap: 0 !important;
    width: auto;
    min-width: 200px;
    position: absolute;
    right: 1rem;
    top: 62px;
    background: rgba(26,26,46,0.98);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    z-index: 9998;
    margin: 0;
    flex: unset;
    align-items: stretch;
  }
  #navMenu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: rgba(26,26,46,0.98);
    transform: rotate(45deg);
    border-radius: 2px;
  }
  #navMenu.open { display: flex !important; padding: 0.75rem; }
  #navMenu li { margin: 0.2rem 0; list-style: none; }
  #navMenu li a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
  }
  #navMenu li a:hover { background: rgba(255,255,255,0.1); }
  .nav-phone-bar { display: block; order: 11; width: 100%; }
}