/* fireside-journal — S4 editorial columns
   Palette: cream #FBF4EC · dusk peach #E8B893 · pine #3E4A3D · bark #5A4636
   Text: pine #3E4A3D on cream = 8.6:1 · bark #5A4636 on cream = 7.4:1
   Travel-journal rhythm: asymmetric grid, thin rules, handwritten-feel
   italic captions, round-masked illustrations. No 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: #FBF4EC;
  --cream-2: #F3E7DA;
  --peach: #E8B893;
  --peach-deep: #C9793F;
  --pine: #3E4A3D;
  --pine-dark: #2F3A2F;
  --bark: #5A4636;
  --line: rgba(62, 74, 61, 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(--pine);
  background: var(--cream);
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--peach-deep); outline-offset: 3px; }

/* ---- demo banner ---- */
.demo-banner {
  display: block;
  background: var(--pine);
  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;
}
.demo-banner b { font-weight: 800; color: var(--peach); }

/* ---- shared editorial furniture ---- */
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(--peach-deep);
  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(--pine);
  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(--pine-dark); }
.btn--ghost {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--cream-2); }

/* ---- 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(--pine);
}
.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(--peach-deep); }

.masthead-grid { padding-top: 2.5rem; }
h1 {
  font-size: clamp(2.7rem, 13vw, 4.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
h1 em { font-style: italic; color: var(--peach-deep); }
.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(--peach);
  padding-left: 1.1rem;
  margin-top: 1.6rem;
}

/* ---- majoitus ---- */
.entry {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry-art svg { 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(--peach-deep);
}

/* ---- ohjelma ---- */
.ohjelma-list { list-style: none; display: grid; gap: 1.6rem; }
.ohjelma-list li { border-top: 1px solid var(--line); padding-top: 1rem; }
.ohjelma-list p { color: var(--bark); }
.hand--wide { display: block; margin-top: 2rem; font-size: 1.1rem; }

/* ---- hinnasto ---- */
.price-list { display: grid; gap: 0.1rem; }
.price-list > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
}
.price-list dt { flex: 1 1 auto; }
.price-list dd { font-family: var(--display); font-weight: 600; white-space: nowrap; }
.note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--bark); max-width: 52ch; }

/* ---- yhteys ---- */
.yhteys-lede { color: var(--bark); max-width: 40ch; 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(--peach-deep);
  margin-bottom: 0.25rem;
}
.yhteys-grid dd { color: var(--pine); }

/* ---- footer ---- */
.footer {
  margin-top: 3.5rem;
  background: var(--pine);
  color: var(--cream);
  padding: 2.5rem var(--gutter) 2.5rem;
  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(--peach); }
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #E4DCCF;
}
.ai-note strong { color: var(--cream); font-weight: 600; }

/* ---- desktop: the asymmetric editorial grid ---- */
@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; }
  .cols { columns: 2; column-gap: 2.5rem; }
  .cols p { break-inside: avoid; }
  .pull { 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; }
  .ohjelma-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .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;
  }
}
