
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
@font-face { font-family: "Big Shoulders Stencil"; src: url("fonts/big-shoulders-stencil.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/plex-sans.woff2") format("woff2"); font-weight: 100 700; font-stretch: 85% 100%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("fonts/share-tech-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.piilo {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 50; padding: 8px 12px;
  background: #fff; color: #000;
}
.skip:focus { top: 8px; }

.cg-kangas { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: block; }
@media (forced-colors: active), (prefers-contrast: more) {
  .cg-kangas, .cg-hud { display: none !important; }
}

.lokero-lomake[hidden] { display: none; }
.lokero-lomake { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.lokero-lomake input {
  width: 9.5ch; padding: 6px 8px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 1px solid currentColor;
}
.lokero-lomake button { padding: 6px 12px; cursor: pointer; background: transparent; border: 1px solid currentColor; }
.lokero-virhe { flex-basis: 100%; min-height: 1.4em; }
.lokero-avaa { margin-top: 6px; padding: 3px 10px; cursor: pointer; background: transparent; border: 1px solid currentColor; font-size: 13px; }
#h-arkisto, #h-esittely, #h-saatavuus, #h-pyynto { scroll-margin-top: 90px; }
.arkisto-ilmoitus:empty { display: none; }
.arkisto-ilmoitus { margin-top: 16px; }
.arkisto-siirto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.arkisto-siirto[hidden] { display: none; }
.siirto-nappi { padding: 6px 12px; cursor: pointer; background: transparent; border: 1px solid currentColor; font-size: 14px; }
.siirto-ohje { flex: 1 1 18em; font-size: 13px; }
.siirto-kentta { flex-basis: 100%; padding: 6px 8px; background: transparent; border: 1px solid currentColor; font-size: 13px; }

.esittely-lista { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 28px 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.esittely-lista li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.esittely-lista .kello { width: min(100%, 440px); cursor: zoom-in; }
.esittely-lista .kello.ei-suurennu { cursor: default; }
.esittely-lista p { max-width: 24em; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.esittely-lista b { display: block; }
.suurennos { padding: 0; border: 0; background: transparent; color: inherit; max-width: 100vw; max-height: 100vh; overflow: visible; }
.suurennos::backdrop { background: rgba(0, 0, 0, 0.88); }
.suurennos-kello { width: min(92vw, 79vh, 662px); }
@media (max-width: 600px) {
  .suurennos-kello { width: min(96vw, 70vh); }
  .suurennos .suurennos-kello > .kello-runko { display: none; }
  .suurennos .suurennos-kello > img { left: 0; top: 0; width: 100%; }
}
.suurennos figcaption { max-width: 32em; margin: 8px auto 0; text-align: center; font-size: 15px; line-height: 1.5; color: #e6eef1; }
.suurennos-sulje { display: block; margin: 12px auto 0; padding: 6px 14px; cursor: pointer; background: transparent; color: #e6eef1; border: 1px solid currentColor; font-size: 14px; }

.kello { position: relative; display: block; aspect-ratio: 1 / 1; margin: 0; color: var(--runko, rgba(160, 200, 230, 0.4)); }
.kello > .kello-runko { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kello > img { position: absolute; left: 13.75%; top: 13.75%; width: 72.5%; height: auto; border-radius: 50%; }
.kello > .kello-elava { position: absolute; left: 13.75%; top: 13.75%; width: 72.5%; height: 72.5%; border-radius: 50%; pointer-events: none; }
