/* Eräkaveri website — colours and shapes taken from the app's own tokens
   (mobile/src/lib/theme.ts): birch-cream page, white shadowed cards with no
   borders, pill chips, forest green primary, amber accent. Static CSS only:
   no framework, no JS, so pages stay fast for SEO. */

:root {
  --bg: #f6f4ee;
  --card: #ffffff;
  --card-alt: #e9f2ea;
  --text: #18261e;
  --muted: #5f7268;
  --primary: #2e7d52;
  --primary-deep: #1d5237;
  --primary-soft: #ddeee2;
  --accent: #d9932f;
  --accent-soft: #f7ecd8;
  --shadow: 0 2px 10px rgba(24, 38, 30, .08);
  --shadow-lg: 0 8px 28px rgba(24, 38, 30, .12);
  --radius: 18px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Per-theme accent tint: each page family leans on its own hue while staying
   inside the app's palette (ski pages cool, berry pages warm, etc.). */
body.theme-fishing { --tint: #5d8bab; }
body.theme-ladut   { --tint: #6f8fa6; }
body.theme-home    { --tint: #2e7d52; }
body.theme-hiking  { --tint: #2e7d52; }
body.theme-mtb     { --tint: #3a7a5c; }
body.theme-berries { --tint: #3f5f8a; }
body.theme-linnut  { --tint: #b5763a; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

img, svg { max-width: 100%; }

a { color: var(--primary-deep); }

/* --- Header ------------------------------------------------------------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 18px 20px;
}
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--primary); }
.brand.small { font-size: 18px; }

.langs { display: flex; gap: 6px; }
.lang {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--muted); background: var(--card); box-shadow: var(--shadow);
}
.lang.on { background: var(--primary); color: #fff; }

/* --- Hero ---------------------------------------------------------------
   Split layout: copy on the cream left, illustration bleeding off the right
   edge and fading into the page so the artwork has no hard seam. */
.hero {
  max-width: var(--maxw); margin: 4px auto 0; padding: 0 20px 8px;
  display: grid; grid-template-columns: minmax(320px, 46%) 1fr;
  gap: 28px; align-items: center;
}
.hero-art-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card-alt); box-shadow: var(--shadow-lg);
}
.hero-art, .hero-photo {
  display: block; width: 100%; height: clamp(260px, 32vw, 420px);
  object-fit: cover;
}
/* Soft fade on the left edge so the illustration melts into the cream page. */
.hero-art-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, rgba(246, 244, 238, 0) 26%);
}
.hero-text { padding: 12px 0; }

.hero-points {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 14px;
}
.hero-points li {
  display: grid; grid-template-columns: 28px 1fr; row-gap: 2px; column-gap: 10px;
  align-items: start; font-size: 14px; color: var(--muted);
}
.hero-points .ic { grid-row: span 2; font-size: 20px; line-height: 1.2; }
.hero-points strong { color: var(--text); font-size: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-text { order: 2; }
  .hero-art-wrap { order: 1; }
  .hero-art-wrap::after {
    background: linear-gradient(to bottom, rgba(246, 244, 238, 0) 70%, var(--bg) 100%);
  }
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px); line-height: 1.12; letter-spacing: -.02em;
  margin: 0 0 12px;
}
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0 0 14px; }
.lead.sm { font-size: 16px; }
.microcopy { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.region { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.region.big {
  display: inline-block; background: var(--primary-soft); color: var(--primary-deep);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.badge {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.badge.soon { color: var(--muted); }

/* --- Sections ----------------------------------------------------------- */
main section { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px; }
main section h2 {
  font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; margin: 0 0 6px;
}

.grid {
  display: grid; gap: 16px; margin-top: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 6px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { font-size: 26px; line-height: 1; }
.card.place { border-top: 4px solid var(--tint); }

.feature-list, .why-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.feature-list li, .why-list li {
  background: var(--card); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); font-size: 16px;
}
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: 800; margin-right: 10px; }

/* --- Keyword / terms block --------------------------------------------- */
.terms-grid {
  display: grid; gap: 18px; margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.terms-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--accent-soft); color: #6b4a12; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.terms-col:first-child .chips li { background: var(--primary-soft); color: var(--primary-deep); }

.back { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 40px; }
.back a { font-weight: 700; text-decoration: none; }

/* --- Footer ------------------------------------------------------------- */
.footer {
  max-width: var(--maxw); margin: 20px auto 0; padding: 26px 20px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  border-top: 1px solid #e6e3d8;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--primary-deep); }
.copy { color: var(--muted); font-size: 13px; margin: 0 0 0 auto; }

@media (max-width: 640px) {
  .copy { margin: 0; width: 100%; }
}

/* Dark mode mirrors the app's dark tokens. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1512; --card: #171f1a; --card-alt: #15281d;
    --text: #e9f1ea; --muted: #9aaf9f;
    --primary: #4cb782; --primary-deep: #9fe0bd; --primary-soft: #1d3a29;
    --accent: #e2a94e; --accent-soft: #33270f;
    --shadow: 0 2px 10px rgba(0,0,0,.4); --shadow-lg: 0 8px 28px rgba(0,0,0,.5);
  }
  .chips li { color: #f0dcb4; }
  .terms-col:first-child .chips li { color: #bfe7cf; }
  .footer { border-top-color: #25332a; }
}

/* Content band: text beside an illustration (degrades to text-only when the
   artwork isn't present — sideArt returns nothing). */
.band {
  display: grid; gap: 26px; align-items: center;
  grid-template-columns: 1fr;
}
.band:has(.band-art) { grid-template-columns: 1.1fr .9fr; }
.band-art img {
  display: block; width: 100%; height: 100%; max-height: 340px;
  object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .band:has(.band-art) { grid-template-columns: 1fr; }
}

/* Wide banner above the destination cards. */
.places-banner img {
  display: block; width: 100%; max-height: 300px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 16px;
}

/* Legal documents (website/data/legal) — plain prose, narrower measure. */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.01em; margin: 0 0 10px; }
.legal h2 { font-size: clamp(19px, 2.6vw, 24px); margin: 28px 0 6px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal .legal-notice { margin: 0 0 18px; }

/* --- search-intent landing pages (#295) --- */
.article .article-sec { max-width: 760px; margin: 28px auto 0; }
.article .article-sec h2 { font-size: clamp(20px, 2.8vw, 26px); margin: 0 0 8px; }
.article .article-sec p { line-height: 1.65; margin: 0 0 12px; }
.article .faq h3 { font-size: 17px; margin: 18px 0 4px; }
.intents { margin-top: 32px; }
.intent-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.intent-list li { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.intent-list li a { font-weight: 700; display: block; margin-bottom: 4px; }
.intent-list li span { color: #5a665f; font-size: 14px; line-height: 1.45; }
.species-chips li { padding: 0; }
.species-chips li a { display: inline-block; padding: 8px 14px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 0; }
.tackle-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 720px; }
.tackle-table th, .tackle-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e6e2; vertical-align: top; }
.tackle-table th { font-weight: 700; background: #f0f3ef; }
.cta.band { margin-top: 32px; }
