/* Shared styles for the small pages: privacy notice, thank-you page and 404.
   Tokens match index.html; keep the two in step. */
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/v1/funnel-display-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/v1/funnel-display-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/v1/funnel-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/v1/funnel-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Martian Mono"; font-style: normal; font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; src: url(/assets/fonts/v1/martian-mono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0D100F;
  --ink-line: rgba(255, 255, 255, .13);
  --mist: #D6F0E6;
  --mist-ink: #3A564E;
  --paper: #F1F3F2;
  --paper-line: rgba(13, 16, 15, .14);
  --signal: #3CE3B5;
  --signal-hi: #6FEDCB;
  --signal-ink: #0A7A5F;
  --mute-d: #8D9995;
  --mute-l: #5C6965;
  --f-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 3.2vw, 44px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); font-size: 11px; font-weight: 500; font-variation-settings: "wdth" 87.5; letter-spacing: .05em; text-transform: uppercase; }
em { font-style: normal; font-weight: 300; }

/* Language: with JavaScript one language shows; without it, both do. */
html.js[lang="fi"] [data-l="en"], html.js[lang="en"] [data-l="fi"] { display: none !important; }
html:not(.js) .lang { display: none; }

/* Themes */
.page--paper { background: var(--paper); color: var(--ink); --line: var(--paper-line); --mute: var(--mute-l); --accent: var(--signal-ink); }
.page--ink { background: var(--ink); color: #fff; --line: var(--ink-line); --mute: var(--mute-d); --accent: var(--signal); }
.page--ink :focus-visible { outline-color: var(--signal); }
.page--mist { background: var(--mist); color: var(--ink); --line: rgba(13, 16, 15, .16); --mute: var(--mist-ink); --accent: var(--signal-ink); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; line-height: 1; text-decoration: none; }
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 999px; }
.lang button { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; transition: background-color .3s, color .3s; }
.page--paper .lang button[aria-current], .page--mist .lang button[aria-current] { background: var(--ink); color: #fff; }
.page--ink .lang button[aria-current] { background: #fff; color: var(--ink); }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.pill--signal { background: var(--signal); color: var(--ink); }
.pill--signal:hover { background: var(--signal-hi); }
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: #000; }
.pill--line { border: 1.5px solid var(--line); }
.pill--line:hover { border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Main */
main { flex: 1; width: 100%; }
.wrap { padding-inline: var(--gutter); max-width: 1400px; margin-inline: auto; }
.eyebrow { margin: 0 0 20px; color: var(--mute); }
.display { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 9vw, 140px); line-height: .93; letter-spacing: -.045em; text-wrap: balance; }
.display em { color: var(--accent); }
.lede { margin: 28px 0 36px; max-width: 38ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--mute); }

/* Statement pages (thanks, 404) */
.statement { position: relative; isolation: isolate; display: grid; align-content: center; min-height: 70svh; padding-block: clamp(48px, 10vh, 120px); overflow: hidden; }
.statement__ptr { position: absolute; z-index: -1; right: 6%; top: 50%; width: clamp(120px, 18vw, 260px); transform: translateY(-50%) rotate(-14deg); filter: drop-shadow(0 40px 80px rgba(60, 227, 181, .3)); }
@media (max-width: 760px) { .statement__ptr { opacity: .25; right: -6%; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease-out) both; }
  .rise--2 { animation-delay: .08s; }
  .rise--3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Document (privacy) */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px clamp(40px, 7vw, 120px); padding-block: clamp(48px, 8vw, 120px) clamp(72px, 10vw, 140px); }
.doc__head { position: sticky; top: 32px; align-self: start; }
.doc__head .display { font-size: clamp(42px, 5.5vw, 84px); }
.doc__meta { margin: 24px 0 0; color: var(--mute); }
.doc__body { max-width: 68ch; }
.doc__body h2 { margin: 48px 0 12px; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--f-display); letter-spacing: -.02em; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body li { color: #2C3532; font-size: 17px; }
.doc__body p { margin: 0 0 14px; }
.doc__body ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc__body li { margin-bottom: 6px; }
.doc__body a { color: var(--signal-ink); text-underline-offset: 3px; }
.doc__lang + .doc__lang { margin-top: 0; }
html:not(.js) .doc__lang + .doc__lang { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc__head { position: static; } }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-inline: var(--gutter); padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--mute); }
.foot span, .foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot__group { display: flex; flex-wrap: wrap; gap: 6px 24px; }
