/* hietalan-jakeluasema — teema fireside-journal (showcase 2026-08, S4 editorial columns)
   Paletti johdettu uudelleen teeman speksistä tien varren pysähdykseen:
     cream      #FCF6EE  (pohja, oli #FBF4EC)
     cream-2    #F2E6D6  (lämmin pohja, oli #F3E7DA)
     amber      #E7B77F  (koristeaksentti, iltavalo — ei tekstivärinä)
     rust       #A34A1E  (tekstiturvallinen aksentti, 5.5:1 cream-pohjalla)
     spruce     #38463C  (leipäteksti + alatunniste, 9.3:1 cream-pohjalla)
     bark       #56412F  (toissijainen teksti, 8.9:1 cream-pohjalla)
   Kontrastit: spruce/cream 9.3:1 · bark/cream 8.9:1 · rust/cream 5.5:1
               cream/spruce (alatunniste) 9.3:1 · #E4DCCF/spruce 7.3:1
   Journal-rytmi: epäsymmetrinen ruudukko, ohuet viivat, kursivoidut
   käsialamaiset kuvatekstit, pyöreämaskattu masthead-kuvitus. Ei JS:ää. */

@font-face {
  font-family: "Gelasio";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/gelasio-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/assistant-variable-latin.woff2") format("woff2");
}

:root {
  --cream: #FCF6EE;
  --cream-2: #F2E6D6;
  --amber: #E7B77F;
  --rust: #A34A1E;
  --spruce: #38463C;
  --spruce-dark: #2E3A31;
  --bark: #56412F;
  --line: rgba(56, 70, 60, 0.22);
  --display: "Gelasio", Georgia, "Times New Roman", serif;
  --body: "Assistant", "Segoe UI", system-ui, sans-serif;
  --shell: 68rem;
  --gutter: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--spruce);
  background: var(--cream);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---- luonnosbanneri ---- */
.draft-banner {
  display: block;
  background: var(--spruce);
  color: var(--cream);
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
}
.draft-banner b { font-weight: 800; color: var(--amber); }

/* ---- jaettu editorial-kalusto ---- */
main > section,
.masthead {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main > section { padding-top: 3.5rem; padding-bottom: 1rem; }
main > section + section { border-top: 1px solid var(--line); margin-top: 3rem; }

.kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.9rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.14; }
h2 {
  font-size: clamp(1.7rem, 6.2vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
  max-width: 18ch;
}
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.hand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--bark);
}

.btn {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.8rem 1.5rem;
  background: var(--spruce);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.btn:hover { background: var(--spruce-dark); }

/* ---- masthead ---- */
.masthead { padding-top: 1.25rem; padding-bottom: 1rem; }
.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--spruce);
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.topnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.topnav a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bark);
  border-bottom: 1px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--rust); }

.masthead-grid { padding-top: 2.5rem; }
h1 {
  font-size: clamp(2.4rem, 11vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
h1 em { font-style: italic; color: var(--rust); }
.lede { font-size: 1.15rem; max-width: 34ch; color: var(--bark); }
.masthead-text .hand { display: block; margin-top: 1.1rem; }

.masthead-art { margin-top: 2.5rem; }
.masthead-art svg { width: 100%; height: auto; border-radius: 999px; }
.masthead-art figcaption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.95rem;
}

/* ---- tarina ---- */
.cols p { max-width: 62ch; margin-bottom: 1.1rem; }
.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--bark);
  border-left: 3px solid var(--amber);
  padding-left: 1.1rem;
  margin-top: 1.6rem;
}
.disclaimer {
  margin-top: 1.8rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--bark);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* ---- pysähdys: vuorottelevat journal-aukeamat ---- */
.entry {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.entry-art img { width: 100%; height: auto; border-radius: 14px; }
.entry-body p { color: var(--bark); max-width: 54ch; }
.meta {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
.photo-note {
  background: var(--cream-2);
  border-left: 3px solid var(--amber);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--bark);
  max-width: 60ch;
}
.photo-note strong { color: var(--spruce); }

/* ---- tien varresta: pisteviivarivit ---- */
.leader-list { display: grid; gap: 0.1rem; }
.leader-list > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
}
.leader-list dt { flex: 1 1 auto; }
.leader-list dd {
  font-family: var(--display);
  font-style: italic;
  color: var(--bark);
  text-align: right;
}
.note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--bark); max-width: 56ch; }
.hand--wide { display: block; margin-top: 2rem; font-size: 1.1rem; }

/* ---- yhteys ---- */
.yhteys-lede { color: var(--bark); max-width: 42ch; margin-bottom: 2rem; }
.yhteys-grid { display: grid; gap: 1.4rem; }
.yhteys-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.25rem;
}
.yhteys-grid dd { color: var(--spruce); }
.tel {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}
.tel:hover { border-bottom-color: var(--rust); }

/* ---- alatunniste ---- */
.footer {
  margin-top: 3.5rem;
  background: var(--spruce);
  color: var(--cream);
  padding: 2.5rem var(--gutter) 1rem;
  text-align: center;
}
.footer-name { font-family: var(--display); font-size: 1.15rem; }
.footer .small { font-size: 0.9rem; color: #E4DCCF; margin-top: 0.4rem; }
.footer .small b { color: var(--amber); }

/* ---- työpöytä: epäsymmetrinen editorial-ruudukko ---- */
@media (min-width: 62rem) {
  :root { --gutter: 2.5rem; }
  main > section { padding-top: 5rem; }
  .masthead-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .masthead-art { margin-top: 0; }
  main > section { display: grid; grid-template-columns: 13rem 1fr; column-gap: 3rem; }
  .kicker { grid-column: 1; padding-top: 0.6rem; }
  main > section > h2 { grid-column: 2; }
  main > section > *:not(.kicker):not(h2) { grid-column: 2; }
  main > section > .btn { justify-self: start; }
  .cols { columns: 2; column-gap: 2.5rem; }
  .cols p { break-inside: avoid; }
  .pull, .disclaimer { columns: 1; }
  .entry {
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: start;
  }
  .entry--flip { grid-template-columns: 1fr 15rem; }
  .entry--flip .entry-art { order: 2; }
  .yhteys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  h2 { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
}

/* Tekoälyilmoitus (EU AI Act 50 art.) — ks. webpages/kit/ai-disclosure/.
   Teemaneutraali: perii värin ja fontin alatunnisteesta. */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #E4DCCF;      /* 7.3:1 spruce-taustalla */
}

.ai-note strong {
  font-weight: 600;
  color: var(--cream);
}
