/* Oletukat SITE 3 — base layer. Tokens only. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: var(--text-base); line-height: var(--leading-body);
  color: var(--color-text); background: var(--color-white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* ---- Headings: one family, semibold, tight ---- */
h1, h2, h3, h4 { font-family: var(--font); font-weight: var(--weight-semibold); color: var(--color-ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-h1); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-h2); line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); }
h3 { font-size: var(--text-h3); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: var(--text-h4); line-height: 1.25; letter-spacing: -0.015em; }
.card h3, .contact-card h3, .callout h3, .timeline h3, .numbered h3 { font-size: var(--text-h4); }

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { max-width: var(--measure); text-wrap: pretty; }
strong { font-weight: var(--weight-semibold); color: var(--color-text-strong); }

a { color: var(--color-green); text-decoration-line: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; transition: color var(--t); }
a:hover { color: var(--color-ink); }

:focus-visible { outline: var(--focus-ring-w) solid var(--color-focus); outline-offset: var(--focus-offset); border-radius: var(--radius-sm); }
.on-dark :focus-visible, .section--dark :focus-visible, .page-hero :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: var(--color-focus-on-dark); }
.site-header:not(.is-stuck) :focus-visible { outline-color: var(--color-focus-on-dark); }
.no-hero .site-header :focus-visible, .site-header.is-stuck :focus-visible { outline-color: var(--color-focus); }

::selection { background: var(--color-accent); color: var(--color-ink); }
hr { border: 0; border-top: 1px solid var(--color-divider); margin: 0; }

/* ---- Layout ---- */
.container, .container-wide { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--first { padding-top: calc(var(--header-h) + var(--section-pad) * 0.5); }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }
.section--alt { background: var(--color-mist); }
.section--dark { background: var(--color-ink); color: var(--color-on-dark-muted); }
.section--inverse { background: var(--color-ink); color: var(--color-on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--inverse h1, .section--inverse h2, .section--inverse h3, .section--inverse h4 { color: var(--color-on-dark); }
.section--dark a:not(.btn), .section--inverse a:not(.btn) { color: var(--color-accent-hover); }
.section--dark strong, .section--inverse strong { color: var(--color-on-dark); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.stack-sm > * + * { margin-top: var(--space-2); }
.center { text-align: center; }
.center > p, .center > .lead { margin-inline: auto; }
.center .btn-row { justify-content: center; }

.lead { font-size: var(--text-lg); line-height: 1.55; color: var(--color-text); }
.muted, .subtle { color: var(--color-text); }
.small { font-size: var(--text-sm); }
.nowrap { white-space: nowrap; }
.rule { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: var(--space-4); top: var(--space-4); z-index: var(--z-modal); padding: var(--space-3) var(--space-5); background: var(--color-ink); color: var(--color-white); font-weight: var(--weight-semibold); border-radius: var(--radius-pill); transform: translateY(-200%); }
.skip-link:focus { transform: none; color: var(--color-white); }

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 64rem) {
  .split { grid-template-columns: repeat(12, 1fr); gap: var(--space-8); }
  .split > :first-child { grid-column: 1 / span 6; }
  .split > :last-child  { grid-column: 7 / span 6; }
  .split--wide-text > :first-child { grid-column: 1 / span 7; }
  .split--wide-text > :last-child  { grid-column: 9 / span 4; }
  .split--reverse > :first-child { order: 2; grid-column: 7 / span 6; }
  .split--reverse > :last-child  { order: 1; grid-column: 1 / span 6; }
}

/* ---- Check list (green circle + white tick, drawn in CSS) ---- */
.list-marked, .checks { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.list-marked li, .checks li { position: relative; padding-left: 2rem; max-width: var(--measure); }
.list-marked li::before, .checks li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-green); }
.list-marked li::after, .checks li::after { content: ""; position: absolute; left: 0.43rem; top: 0.5em; width: 0.32rem; height: 0.6rem; border: solid var(--color-white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks--2 { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .checks--2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-5); } }
.section--dark .list-marked li::before, .section--inverse .list-marked li::before { background: var(--color-accent); }
.section--dark .list-marked li::after, .section--inverse .list-marked li::after { border-color: var(--color-ink); }

@media print { .site-header, .cta-band, .band, .lightbox { display: none !important; } body { background: var(--color-white); } }
