/* Yhteiskävely, tyyli */

html { scroll-behavior: smooth; }

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-muted: #5B6472;
  --accent: #2D5A3D;
  --accent-soft: #E8F0EA;
  --border: #E5E1D8;
  --radius: 10px;
  --max-width: 680px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero image banner */
.hero-image {
  width: 100%;
  height: clamp(220px, 38vw, 460px);
  overflow: hidden;
  background: var(--accent);
  display: block;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Header */
.hero {
  background: var(--accent);
  color: #FFFFFF;
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 44px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero .tagline {
  margin: 0;
  font-size: 19px;
  opacity: 0.92;
  line-height: 1.45;
}

/* Sections */
main section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
main section:last-child { border-bottom: none; }
main h2 {
  font-size: 28px;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
main h3 {
  font-size: 20px;
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}
main p { margin: 0 0 16px; }

/* Next walk */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}
.event-badge {
  display: block;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 12px 16px;
  margin: -28px -28px 24px;
}
.event-date {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.event-place {
  font-size: 18px;
  margin-bottom: 10px;
}
.event-meet {
  color: var(--text-muted);
  margin-bottom: 6px;
}
.event-transit {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 15px;
}
.event-transit a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.event-transit a:hover { text-decoration: underline; }
.event-desc {
  margin-bottom: 16px;
}
.event-host {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

.event-maps {
  margin: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-maps figure {
  margin: 0;
  text-align: center;
}
.event-maps img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.event-maps .map-portrait img {
  max-height: 520px;
  width: auto;
}
.event-maps figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Tips (Jos jännittää jutella) */
.tips .lead {
  font-size: 18px;
  margin-bottom: 24px;
}
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.tips-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before {
  content: "›";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

/* Organize */
.organize .lead {
  font-size: 18px;
  margin-bottom: 28px;
}
.template-box {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
#template {
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text);
}
#copy-btn {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
#copy-btn:hover { opacity: 0.9; }
#copy-btn:active { transform: translateY(1px); }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.principles {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.principles li:last-child { border-bottom: none; }
.principles li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* About */
.about-person {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.about-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  display: block;
}
.about-text { flex: 1; min-width: 0; }
.about-text p:first-child { margin-top: 0; }
.about .social {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
}
.about a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.about a:hover { text-decoration: underline; }

/* Hampurilaisvalikko */
.menu {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
}
.menu-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.15s, background 0.15s;
}
.menu-toggle:hover { background: #244a32; }
.menu-toggle:active { transform: scale(0.96); }
.menu-icon-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
}
.menu-list {
  position: absolute;
  top: 60px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.menu-list li { margin: 0; }
.menu-list a {
  display: block;
  padding: 11px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.menu-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Jakonapit */
.share .share-lead {
  margin-bottom: 20px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.15s;
}
.share-btn:hover { opacity: 0.92; }
.share-btn:active { transform: translateY(1px); }

/* Footer */
footer {
  padding: 28px 0 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
footer p { margin: 0; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; }
  main section { padding: 40px 0; }
  main h2 { font-size: 24px; }
  .event-card { padding: 22px; }
  .event-badge { margin: -22px -22px 20px; font-size: 13px; padding: 10px 14px; }
  .event-date { font-size: 20px; }
  body { font-size: 16px; }
  .about-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .about-photo { width: 160px; height: 160px; }
  .about .social { text-align: left; }
  .event-maps .map-portrait img { max-height: 460px; }
  .menu { top: 10px; right: 10px; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-list { min-width: 200px; }
  .share-btn { padding: 9px 15px; font-size: 14px; }
}
