/* Unary — Signal Dark. Shared styles; page layout is inline in each page. */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/licenses/) */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/SpaceGroteskVariable.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root { color-scheme: dark; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #050A1C; }
img, svg { max-width: 100%; }
a { color: #EAF0FA; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid #00F2FD; outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }
input, select, textarea, button { font: inherit; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Skip link */
.skip { position: absolute; left: 12px; top: -48px; z-index: 10; padding: 10px 16px; border-radius: 8px; background: #00F2FD; color: #001A66; font: 600 15px Inter, system-ui, sans-serif; text-decoration: none; }
.skip:focus { top: 12px; color: #001A66; }

/* Content placeholders: invisible normally; add ?ph to any URL to highlight what still needs filling in. */
html.show-ph .ph { outline: 2px dashed #F5B942 !important; outline-offset: 3px; background-color: rgba(245, 185, 66, 0.12) !important; border-radius: 4px; }

/* Responsive overrides for the inline layout */
@media (max-width: 860px) {
  .s-hero { flex-direction: column !important; align-items: stretch !important; }
  .s-hero > * { flex: 0 0 auto !important; width: 100%; }
  .s-g2, .s-g3, .s-g4 { grid-template-columns: minmax(0, 1fr) !important; }
  main { overflow-wrap: anywhere; }
  .s-h1 { font-size: 44px !important; }
  .s-sec { padding-left: 20px !important; padding-right: 20px !important; }
  h2[style*="font-size: 48px"], h2[style*="font-size: 44px"], h2[style*="font-size: 40px"] { font-size: 32px !important; }
  .s-sec > div[style*="padding: 72px 64px"], .s-sec > div[style*="padding: 64px"] { padding: 36px 24px !important; }
}
@media (max-width: 520px) {
  .s-h1 { font-size: 36px !important; }
  nav[aria-label="Main"], nav[aria-label="Päävalikko"] { gap: 14px 20px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
