/* ═══════════════════════════════════════════
   Minun Suomeni — yhteinen tyylitiedosto
   ═══════════════════════════════════════════ */

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

:root {
  --blue:        #002F6C;
  --blue-mid:    #003F8F;
  --blue-light:  #1a5faf;
  --blue-pale:   #e8f0fb;
  --gold:        #c9943a;
  --gold-light:  #f0c060;
  --gold-pale:   #fdf4e3;
  --cream:       #faf8f4;
  --white:       #ffffff;
  --text-dark:   #111827;
  --text-mid:    #374151;
  --text-muted:  #6b7280;
  --border:      rgba(0,47,108,.09);
  --radius:      5px;
  --shadow-sm:   0 2px 8px rgba(0,47,108,.06);
  --shadow-md:   0 6px 20px rgba(0,47,108,.09);
  --shadow-lg:   0 12px 36px rgba(0,47,108,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Typography ── */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
p  { color: var(--text-mid); line-height: 1.75; }
a  { color: var(--blue-mid); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Section headings ── */
.eyebrow {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-light);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }
.eyebrow-light::before { background: var(--gold); }

.section-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-title em { font-style: italic; color: var(--blue-mid); }
.section-title-light em { color: var(--gold-light); }
.section-desc { font-size: .95rem; color: var(--text-muted); max-width: 500px; line-height: 1.7; margin-top: .4rem; }

.see-all {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-mid);
  text-decoration: none; border-bottom: 1.5px solid var(--blue-light);
  padding-bottom: 1px; white-space: nowrap; transition: color .2s, border-color .2s;
}
.see-all:hover { color: var(--gold); border-color: var(--gold); }
.see-all-light { color: var(--gold-light); border-color: var(--gold); }
.see-all-light:hover { color: #fff; border-color: #fff; }

/* ── Buttons ── */
.btn { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .8rem 1.8rem; border-radius: 3px; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, border-color .2s, color .2s; border: none; }
.btn-primary { background: var(--gold); color: var(--blue); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--blue); }
.btn-outline { background: transparent; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.3); }
.btn-outline:hover { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline-blue { background: transparent; color: var(--blue-mid); border: 1.5px solid var(--blue-light); }
.btn-outline-blue:hover { background: var(--blue-pale); }

/* ── Cards ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; overflow: hidden; background: var(--blue-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-cat { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: .4rem; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: .4rem; }
.card-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }
.card-meta { margin-top: .8rem; font-size: .68rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: .7rem; display: flex; align-items: center; gap: .4rem; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }

/* Dark card variant (for highlighted sections) */
.card-dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.card-dark:hover { background: rgba(255,255,255,.1); }
.card-dark .card-cat { color: var(--gold-light); }
.card-dark .card-title { color: #fff; }
.card-dark .card-desc { color: rgba(255,255,255,.5); }

/* ── Tag badge ── */
.badge { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; background: var(--gold); color: var(--blue); padding: .18rem .55rem; border-radius: 2px; }
.badge-blue { background: var(--blue-pale); color: var(--blue-mid); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--text-muted); opacity: .5; }

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--blue); padding: 6rem 0 3.5rem; margin-top: 60px; }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3rem); font-weight: 900; color: #fff; margin-bottom: .5rem; }
.page-hero-title em { font-style: italic; color: var(--gold-light); }
.page-hero-desc { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 540px; line-height: 1.7; }

/* ── Stats bar ── */
.stats-bar { background: var(--blue); border-top: 1px solid rgba(255,255,255,.06); }
.stats-inner { display: flex; max-width: 1100px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat { flex: 1; min-width: 100px; padding: 1.3rem 1rem; border-right: 1px solid rgba(255,255,255,.07); text-align: center; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 1.65rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-label { font-size: .65rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .25rem; }

/* ── Article content ── */
.article-body { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--text-dark); }
.article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: var(--text-dark); }
.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: .8rem 0 1.1rem 1.4rem; }
.article-body li { margin-bottom: .4rem; }
.article-body a { color: var(--blue-light); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--blue); }
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-infobox { background: var(--blue-pale); border-left: 3px solid var(--blue-light); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.article-infobox h4 { font-size: .9rem; color: var(--blue-mid); margin-bottom: .5rem; }
.article-infobox p, .article-infobox li { font-size: .85rem; color: var(--text-mid); }

/* ── Newsletter ── */
.newsletter { background: linear-gradient(140deg, var(--blue) 0%, #001030 100%); padding: 3.5rem 2rem; text-align: center; }
.nl-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.nl-title em { font-style: italic; color: var(--gold-light); }
.nl-sub { font-size: .9rem; color: rgba(255,255,255,.5); margin-bottom: 1.8rem; }
.nl-form { display: flex; gap: .5rem; justify-content: center; max-width: 400px; margin: 0 auto; flex-wrap: wrap; }
.nl-input { flex: 1; min-width: 180px; padding: .75rem 1.1rem; font-size: .87rem; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; border-radius: 3px; outline: none; transition: border-color .2s; font-family: inherit; }
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-input:focus { border-color: var(--gold); }
.nl-btn { background: var(--gold); color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .75rem 1.3rem; border: none; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: background .2s; font-family: inherit; }
.nl-btn:hover { background: var(--gold-light); }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 1.2rem; }
  .section { padding: 2.8rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .nl-form { flex-direction: column; align-items: stretch; }
  .nl-input { min-width: 0; }
}
