/* saavutettavasuomi.fi — values from the design export (Home, 2026-10-23): colours, type
   scale, spacing and layout are carried over as they were. One deliberate change: the focus
   ring. The design's amber #E8A200 is 2.02:1 against the page background, under the 3:1
   WCAG 2.2 asks of a focus indicator (1.4.11), so a dark outline (15:1) sits inside an amber
   halo. On the dark footer the amber halo alone gives 7.5:1. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  --accent: #0B4A85;
  --accent-hover: #07325C;
  --ink: #14212B;
  --ink-2: #33424E;
  --ink-3: #4A5864;
  --bg: #F4F6F7;
  --rule: #D5DBDF;
  --on-dark: #E3E8EB;
  --focus: #E8A200;
  --gutter: clamp(16px, 4vw, 40px);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus);
  border-radius: 2px;
}
.site-footer a:focus-visible { outline-color: var(--focus); box-shadow: none; outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 1;
}
.skip:focus { top: 16px; color: #FFFFFF; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.brand svg { flex: none; }
.navs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav-list a { display: inline-block; padding: 10px 0; }
.nav-list a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.lang-list { gap: 8px 20px; font-size: 16px; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(48px, 7vw, 88px); }
.eyebrow {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  /* Long compound words carry soft hyphens (tools/build.py); this is the fallback. */
  overflow-wrap: break-word;
}
.lede { margin: 28px 0 0; max-width: 620px; font-size: 21px; color: var(--ink-2); }

/* Sections: heading on the left, content on the right, stacking on narrow screens */
.section { border-top: 1px solid var(--rule); }
.section .wrap {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
}
.section:last-child .wrap { padding-bottom: 72px; }
.section h2 { margin: 0; flex: 1 1 200px; font-size: 22px; line-height: 1.3; }
.section-body { flex: 999 1 480px; min-width: 0; max-width: 640px; }
.section-body p { margin: 0 0 16px; }
.section-body > :last-child { margin-bottom: 0; }

/* Products */
.products { flex: 999 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.product {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.product > div { min-width: 0; flex: 1 1 320px; }
.product-id { display: flex; align-items: center; gap: 16px; }
.product-id img { flex: none; display: block; border-radius: 9px; }
.product h3 { margin: 0; font-size: 20px; }
.product p { margin: 4px 0 0; color: var(--ink-2); }
.product a { font-weight: 700; padding: 10px 0; }

/* Contact */
.contact-grid { flex: 999 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.label {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-grid p { margin: 0; }

/* Text pages (accessibility statement, privacy notice) */
.page { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 72px; }
.prose { max-width: 680px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 28px; }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0 0 6px; }
.meta { color: var(--ink-3); font-size: 16px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 32px;
  font-size: 16px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer a[aria-current] { font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
