/* ---------- Tokens ---------- */
:root {
  --bg: #e3ead7;
  --bg-alt: #d6e1c6;
  --surface: #f2f6ea;
  --ink: #1c2a18;
  --ink-soft: #4b5a41;
  --green: #2c4a2a;
  --green-soft: #c3d6b0;
  --brown: #6b4a28;
  --border: #c3d2af;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --max: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--green); }

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  overflow-x: auto;
}
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--green); text-decoration: none; }

.lang-toggle {
  font-family: var(--sans);
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-sep { color: var(--border); margin: 0 2px; }
.lang-toggle[data-active="en"] [data-lang-opt="en"],
.lang-toggle[data-active="fi"] [data-lang-opt="fi"] {
  color: var(--green);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0 0 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.headline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--green);
  font-size: 1.15rem;
  margin: 0 0 18px;
}

.lede {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.02rem;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-block;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--green) 85%, black); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.hero-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}
.hero-meta a { color: var(--ink-soft); }
.hero-meta a:hover { color: var(--green); }
.meta-sep { margin: 0 8px; color: var(--border); }

/* ---------- Sections ---------- */
.section { padding: 52px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.body-text {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.02rem;
}
.body-text p { margin: 0 0 16px; }
.body-text p:last-child { margin-bottom: 0; }

/* ---------- Cover letter ---------- */
.letter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 68ch;
}
.letter-sign { margin-top: 24px; }
.letter-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ---------- Strength cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Timeline ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.timeline-item {
  border-left: 3px solid var(--green-soft);
  padding-left: 20px;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-head h3 { font-size: 1.12rem; }

.timeline-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 3px 0 0;
}

.timeline-dates {
  font-size: 0.85rem;
  color: var(--brown);
  white-space: nowrap;
  font-weight: 600;
}

.timeline-item ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.timeline-item li { margin-bottom: 6px; }

.timeline-note { color: var(--ink-soft); font-size: 0.92rem; margin: 12px 0 0; }

.timeline-link { margin: 10px 0 0; font-size: 0.92rem; font-weight: 600; }
.timeline-link a::after { content: " \2197"; }

/* ---------- Tag lines ---------- */
.sub-heading {
  font-size: 1.05rem;
  margin: 36px 0 14px;
  color: var(--ink);
}
.sub-heading-first { margin-top: 0; }

.tag-line {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.9;
  margin: 0;
}
.tag-line span:not(.tag-sep) { color: var(--ink); }
.tag-sep { color: var(--brown); margin: 0 10px; opacity: 0.6; }

/* ---------- CTA / footer ---------- */
.section-cta { text-align: center; }
.section-cta .section-title { text-align: center; }
.cta-text {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 24px;
}
.section-cta .hero-actions { justify-content: center; }
.section-cta .hero-meta { margin-top: 22px; }
.cta-aside {
  margin: 32px auto 0;
  max-width: 50ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-aside p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.aside-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 7px 16px;
}
.aside-link:hover { background: var(--brown); color: #fff; text-decoration: none; }
.aside-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .header-row { padding: 14px 20px; }
  .main-nav { order: 3; width: 100%; gap: 14px; }
  .lang-toggle { order: 2; }
  .letter { padding: 22px 20px; }
}
