/* Shared styles for the long-form content pages (SEO landing pages).
 *
 * The token values below MIRROR the :root block in index.html, which stays the
 * canonical source per CLAUDE.md rule 4. If you change a colour or font there,
 * change it here too. index.html and tietosuoja.html deliberately keep their own
 * inline copies so the landing page stays self-contained and render-blocking-free.
 */

:root {
  --cream: #fffaf5;
  --ink: #1b1c19;
  --ink-var: #56423d;
  --outline: rgba(27, 28, 25, 0.18);
  --terra: #e87b5a;
  --terra-deep: #d96645;
  --apricot: rgba(253, 185, 155, 0.4);
  --rose: rgba(255, 218, 214, 0.3);
  --peach: rgba(253, 217, 195, 0.4);
  --softrose: rgba(239, 211, 215, 0.3);
  --glass: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 4%, var(--apricot) 0%, transparent 46%),
    radial-gradient(circle at 92% 8%, var(--rose) 0%, transparent 54%),
    radial-gradient(circle at 88% 88%, var(--peach) 0%, transparent 48%),
    radial-gradient(circle at 6% 94%, var(--softrose) 0%, transparent 56%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400; text-wrap: balance; margin: 0 0 0.6rem;
}
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; margin-top: 3.2rem; }
h3 { font-size: clamp(21px, 2.4vw, 25px); line-height: 1.25; margin-top: 2.2rem; }
p { margin: 0.9rem 0; }
a { color: var(--terra-deep); }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 64px; } }
.narrow { max-width: 46rem; margin: 0 auto; }

.label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Header / footer, matching the landing page */
header.top { padding: 2rem 0 0; }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.logo .word { font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  .logo .word { font-size: 21px; }
  .logo svg { width: 26px; height: 26px; }
  header.top .btn.small { padding: 0.5rem 0.9rem; font-size: 11px; letter-spacing: 0.06em; }
}

.btn {
  display: inline-block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--terra);
  border: 1px solid var(--terra); border-radius: 9999px;
  padding: 0.85rem 1.9rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 102, 69, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--terra-deep); color: #fff; box-shadow: 0 6px 18px rgba(217, 102, 69, 0.35); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn.small { padding: 0.6rem 1.4rem; box-shadow: none; }

/* Article body */
.crumbs { font-size: 15px; color: var(--ink-var); margin: 2.6rem 0 1.4rem; }
.crumbs a { color: var(--ink-var); }
article { padding-bottom: 1rem; }
article .lead { font-size: 21px; color: var(--ink-var); line-height: 1.6; margin: 1.4rem 0 0; }
.meta { font-size: 15px; color: var(--ink-var); opacity: 0.85; margin-top: 1.2rem; }

/* The direct answer box — the thing a search result should be able to lift */
.answer {
  border-radius: 20px; padding: clamp(1.4rem, 3.5vw, 2.2rem);
  margin: 2.4rem 0 1rem;
  border-left: 4px solid var(--terra);
}
.answer p { margin: 0; font-size: 19px; }
.answer p + p { margin-top: 0.8rem; }

article ul, article ol { padding-left: 1.4rem; margin: 1rem 0; }
article li { margin: 0.55rem 0; }
article li::marker { color: var(--terra-deep); }

/* Statute citations */
.pykala {
  display: block; margin-top: 1.1rem;
  font-size: 16px; color: var(--ink-var);
  border-top: 1px solid var(--outline); padding-top: 0.8rem;
}
.pykala strong { font-weight: 600; }

/* Checklist / field-group cards */
.checklist { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.9rem; }
.checklist li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border);
  margin: 0;
}
.checklist li svg { flex: none; margin-top: 4px; }

/* Copy-paste template block */
.malli {
  border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.4rem);
  margin: 1.6rem 0;
  font-size: 16.5px; line-height: 1.75;
}
.malli h3 { margin-top: 0; }
.malli .rivi { margin: 0.35rem 0; }
.malli .tayta { color: var(--terra-deep); font-weight: 600; }
.malli hr { border: none; border-top: 1px solid var(--outline); margin: 1.3rem 0; }

/* Data table */
.taulu { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 16.5px; }
.taulu th, .taulu td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--outline); vertical-align: top; }
.taulu th { font-family: "Hanken Grotesk", sans-serif; font-weight: 600; }
.taulu tr:last-child td { border-bottom: none; }
.taulu-wrap { overflow-x: auto; }

/* On narrow screens stack each row instead of asking for a horizontal swipe —
   the audience is 55+ and sideways-scrolling tables hide content from them. */
@media (max-width: 560px) {
  .taulu-wrap { overflow-x: visible; }
  .taulu, .taulu tbody, .taulu tr, .taulu td { display: block; width: 100%; }
  .taulu thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .taulu tr { padding: 1rem 0; border-bottom: 1px solid var(--outline); }
  .taulu tr:last-child { border-bottom: none; }
  .taulu td { border-bottom: none; padding: 0.1rem 0; }
  .taulu td:first-child { font-weight: 600; color: var(--ink); }
}

/* FAQ */
.faq details {
  border-radius: 16px; padding: 0.4rem 1.3rem; margin: 0.8rem 0;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--glass-border);
}
.faq summary {
  cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 18px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--terra-deep); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin-top: 0; padding-bottom: 0.9rem; color: var(--ink-var); }

/* End-of-article call to action */
.cta {
  border-radius: 24px; padding: clamp(2rem, 5vw, 3.4rem);
  margin: 3.6rem 0 1rem; text-align: center;
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--ink-var); max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 1.4rem; }

.related { margin: 3rem 0 0; font-size: 16.5px; }
.related a { display: block; margin: 0.5rem 0; }

.disclaimer {
  font-size: 15.5px; color: var(--ink-var);
  border-top: 1px solid var(--outline); padding-top: 1.4rem; margin-top: 3rem;
}

footer { padding: 4rem 0 3.5rem; text-align: center; margin-top: 4rem; }
footer .logo { justify-content: center; margin-bottom: 1.6rem; }
footer .logo .word { font-size: 26px; }
footer p { max-width: 34rem; margin: 0.5rem auto; color: var(--ink-var); font-size: 14px; }
footer .copyright { opacity: 0.6; margin-top: 2.2rem; letter-spacing: 0.06em; }
