/* ---------------------------------------------------------------
   Insenta – yhteiset tyylit
   Värit ja mitat on koottu :root-lohkoon. Muuta niitä siellä,
   niin muutos näkyy kaikilla sivuilla.
   --------------------------------------------------------------- */

:root {
  --sand:       #f2ece1;   /* taustan perusväri */
  --sand-deep:  #e7ded0;   /* vuorottelevat osiot */
  --paper:      #fbf8f3;   /* kortit ja nostot */
  --ink:        #1a201b;   /* leipäteksti ja otsikot */
  --muted:      #6d685e;   /* toissijainen teksti */
  --line:       #d5cab8;   /* ohuet viivat */
  --green:      #1f7a4c;   /* tunnusväri, napit */
  --green-deep: #145838;   /* napin hover-tila */
  --green-pale: #dceade;

  --wrap: 62rem;
  --gap: clamp(3rem, 8vw, 6rem);
  --radius: 0.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

/* ---------- Typografia ---------- */

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.lead {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}

.small { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Rakenne ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

section { padding-block: var(--gap); }
section.tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.alt { background: var(--sand-deep); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: var(--sand);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

/* ---------- Ylätunniste ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--sand);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  padding-block: 1.25rem;
}

.wordmark {
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--gap); }

.hero h1 { max-width: 16ch; }

.hero .lead { margin-top: 1.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

/* ---------- Napit ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--green-deep); color: #fff; }
.btn svg { flex: none; }

.btn-plain {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 1.0625rem;
}

/* ---------- Tiilikuvio ---------- */

.bricks {
  margin-top: 3rem;
  max-width: 44rem;
}

/* ---------- Listat ---------- */

.cols {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2.5rem;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 34rem;
}

.plain-list li {
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 1px;
  background: var(--green);
}

.no-list li::before {
  background: none;
  border: 1px solid var(--line);
}

/* ---------- Vaiheet ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Yhteys ---------- */

.contact-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  margin-top: 2.5rem;
}

.contact-lines {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
  font-size: 1.0625rem;
}

.contact-lines strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

/* ---------- UKK ---------- */

.faq { margin-top: 2.5rem; max-width: 44rem; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--green);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }

.faq details > *:not(summary) { padding-bottom: 1.25rem; }

/* ---------- Pitkä teksti ---------- */

.prose { max-width: 40rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.375rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Alatunniste ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-foot .wrap {
  display: grid;
  gap: 1.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  max-width: 55ch;
}
