/* Erä-Kurvat — väliaikainen perusryhditys.
   Korvaa Claude Designin tuottamalla CSS:llä myöhemmin. */

* { box-sizing: border-box; }

:root {
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-bg: #fafaf7;
  --color-accent: #2d4a2b;
  --color-line: #d8d6cf;
  --max-width: 960px;
}

html { font-size: 16px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-accent); }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin-top: 2rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }

/* Layout */
.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-line);
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
}
.site-nav a:hover { color: var(--color-text); }

/* Active page indicator (set body class on each page) */
.page-home .site-nav a[href="/"],
.page-jasenhakemus .site-nav a[href="/jasenhakemus.html"],
.page-lahjoitukset .site-nav a[href="/lahjoitukset.html"],
.page-tapahtumat .site-nav a[href="/tapahtumat.html"],
.page-galleria .site-nav a[href="/galleria.html"],
.page-jasenille .site-nav a[href="/jasenille/"] {
  color: var(--color-text);
  font-weight: 600;
}

/* Hero on front page */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 0.5rem; }
.hero .lead { font-size: 1.1rem; color: var(--color-muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.btn:hover { opacity: 0.9; text-decoration: none; }

/* Two-column CTAs on front page */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.cta-card {
  border: 1px solid var(--color-line);
  padding: 1.5rem;
  border-radius: 6px;
  background: #fff;
}
.cta-card h3 { margin-top: 0; }

/* Forms placeholder note */
.form-placeholder {
  border: 1px dashed var(--color-line);
  padding: 2rem;
  text-align: center;
  background: #fff;
  border-radius: 6px;
}

/* Calendar / iframe wrapper */
.calendar-embed iframe,
.form-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 6px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* Members area link list */
.member-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.member-links li {
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 6px;
}
.member-links a {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
}
.member-links a:hover { background: #f5f3ec; }
.member-links strong { display: block; margin-bottom: 0.25rem; }
.member-links small { color: var(--color-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Editor placeholder marker — make TÄYTÄ obvious in the rendered page */
.placeholder {
  background: #fff7d6;
  padding: 0.1em 0.3em;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.95em;
}
