/* Väliaikaiset tyylimuuttujat. Korvataan design/tokens.css:llä, kun se on
   mainissa (vaihe 4). Kontrastit on valittu WCAG 2.1 AA:n mukaan
   (leipäteksti vähintään 4.5:1 taustaa vasten). */
:root {
  --color-bg: #ffffff;
  --color-surface: #f3f5f7;
  --color-text: #1b1f24;
  --color-muted: #4f5964;
  --color-border: #d3d9df;
  --color-accent: #0a58a8;
  --color-accent-hover: #084682;
  --color-focus: #0a58a8;
  --color-status-bg: #e5eef8;
  --color-status-text: #0a3f75;
  --color-coming-bg: #eef0f2;
  --color-coming-text: #3d4650;
  --color-draft-bg: #fff2c4;
  --color-draft-text: #4d3b00;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1.0625rem;
  --line-height: 1.6;
  --font-size-h1: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem);
  --font-size-h2: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem);
  --font-size-h3: 1.2rem;
  --font-size-small: 0.9375rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --radius: 0.5rem;
  --measure: 68ch;
  --wrap: 72rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #11161b;
    --color-surface: #1a2027;
    --color-text: #e7eaee;
    --color-muted: #aab3bd;
    --color-border: #313a44;
    --color-accent: #8cc2ff;
    --color-accent-hover: #b5d8ff;
    --color-focus: #8cc2ff;
    --color-status-bg: #1d3550;
    --color-status-text: #cfe4ff;
    --color-coming-bg: #262d35;
    --color-coming-text: #d5dbe1;
    --color-draft-bg: #4a3a00;
    --color-draft-text: #fff2c4;
  }
}

/* Perustyylit. Käyttävät vain tokens-tiedoston muuttujia. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: var(--space-5) 0 var(--space-3);
}

h1 {
  font-size: var(--font-size-h1);
  margin-top: var(--space-4);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p,
ul,
ol {
  max-width: var(--measure);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -10rem;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  color: var(--color-accent);
  border: 2px solid var(--color-focus);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: var(--space-3);
}

.draft-banner {
  background: var(--color-draft-bg);
  color: var(--color-draft-text);
  padding: var(--space-2) var(--gutter);
  text-align: center;
  font-size: var(--font-size-small);
}

.site-header {
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-height: 4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-2) 0;
}

.site-nav a[aria-current] {
  font-weight: 700;
}

/* Kielivalikko: nykyisen kielen lippu, josta aukeavat muut kielet (details,
   ei JavaScriptiä). */
.lang-menu {
  position: relative;
  margin-left: auto;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  cursor: pointer;
  list-style: none;
}

.lang-menu summary::-webkit-details-marker {
  display: none;
}

/* Avautumisen merkki lipun vieressä. */
.lang-menu summary::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.125rem) rotate(45deg);
}

.lang-menu[open] summary::after {
  transform: translateY(0.125rem) rotate(-135deg);
}

.lang-menu ul {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 6;
  min-width: 10rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}

.flag {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--color-border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-inline-end: var(--space-1);
}

main {
  padding-bottom: var(--space-6);
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-4);
  max-width: none;
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.card h3 {
  margin-top: 0;
}

.status {
  display: inline-block;
  margin: 0 0 var(--space-2);
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  font-size: var(--font-size-small);
  background: var(--color-status-bg);
  color: var(--color-status-text);
}

.status-coming {
  background: var(--color-coming-bg);
  color: var(--color-coming-text);
}

.updated {
  color: var(--color-muted);
  font-size: var(--font-size-small);
}

/* Kuvakaappaukset ja esimerkit */
.shot {
  margin: var(--space-4) 0 var(--space-5);
  max-width: 50rem;
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.shot-tall {
  max-width: 24.5rem;
}

figcaption {
  margin-top: var(--space-2);
  max-width: var(--measure);
  font-size: var(--font-size-small);
  color: var(--color-muted);
}

.split {
  display: grid;
  gap: 0 var(--space-5);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) 24.5rem;
    align-items: start;
  }

  .split .shot {
    margin-top: var(--space-3);
  }
}

.dialogue {
  margin: var(--space-4) 0 var(--space-5);
  max-width: var(--measure);
}

.dialogue blockquote {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}

.dialogue blockquote p {
  margin: var(--space-2) 0;
}

dl.terms dt {
  font-weight: 700;
  margin-top: var(--space-3);
}

dl.terms dd {
  margin: var(--space-1) 0 0;
  max-width: var(--measure);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--font-size-small);
}

.footer-inner {
  padding-block: var(--space-4);
}

.footer-inner p {
  margin: var(--space-1) 0;
}

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

/* Raamin ilme: lukittu design (Claude Design, "Raami - Web-sivun ilme",
   31.10.2026). Koskee sivuja, joiden body-elementillä on luokka raami, eli
   kaikkia /raami/- ja /fi/raami/-sivuja. Lähde ja säännöt: CLAUDE.md.
   Kontrastit (WCAG 2.1 AA): himmeä #8E939C paneelilla 5.6:1, leipäteksti
   paneelilla 9.2:1, lime yöllä 14.8:1, paperikortin teksti 8.8:1. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-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: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/newsreader-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: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/newsreader-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: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-italic-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: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-italic-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;
}

/* Värit ja mitat. Perustyylien muuttujat ohjataan samoihin arvoihin, jotta
   base.css:n osat (ohituslinkki, murupolku, alatunniste) seuraavat ilmettä. */
.raami {
  --r-night: #0e1116;
  --r-panel: #161b22;
  --r-sunk: #1c222b;
  --r-line: #262c35;
  --r-line-strong: #333a45;
  --r-line-hover: #4a5262;
  --r-lime: #c6f432;
  --r-lime-hover: #bae52f;
  --r-text: #ecedea;
  --r-lead: #c9cdd3;
  --r-body: #b9bdc4;
  --r-muted: #8e939c;
  --r-paper: #f4f3ee;
  --r-paper-text: #3f444d;
  --r-serif: "Newsreader", Georgia, serif;
  --r-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --r-mono: ui-monospace, Menlo, monospace;

  --color-bg: var(--r-night);
  --color-surface: var(--r-panel);
  --color-text: var(--r-text);
  --color-muted: var(--r-muted);
  --color-border: var(--r-line);
  --color-accent: var(--r-text);
  --color-accent-hover: var(--r-text);
  --color-focus: var(--r-lime);
  --font-sans: var(--r-sans);
  --font-size-base: 1rem;
  --measure: 45rem;
  --wrap: 75rem;
  --gutter: 1.25rem;

  overflow-x: clip;
  color-scheme: dark;
  background: var(--r-night);
  color: var(--r-text);
  font-family: var(--r-sans);
}

@media (min-width: 60rem) {
  .raami {
    --gutter: 3rem;
  }
}

/* Typografia */
.raami h1,
.raami h2,
.raami h3,
.raami dt {
  font-family: var(--r-serif);
  font-weight: 500;
  color: var(--r-text);
}

.raami h1 {
  margin: 1.375rem 0 0;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.raami h2 {
  margin: 4.5rem 0 0;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.raami h3 {
  margin: 2.5rem 0 0;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.raami main p,
.raami main ul,
.raami main ol,
.raami main dl {
  margin: 0.875rem 0 0;
  color: var(--r-body);
}

.raami main :is(h2, h3) + :is(p, ul, ol, dl) {
  margin-top: 1.125rem;
}

.raami main ul,
.raami main ol {
  padding-left: 1.25rem;
}

.raami main li + li {
  margin-top: 0.375rem;
}

.raami main li::marker {
  color: var(--r-muted);
}

.raami strong {
  color: var(--r-text);
  font-weight: 600;
}

.raami em {
  color: var(--r-text);
  font-style: normal;
  font-weight: 500;
}

.raami .lead {
  margin-top: 1.375rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--r-lead);
}

@media (min-width: 48rem) {
  .raami .lead {
    font-size: 1.125rem;
    line-height: 1.6;
  }
}

.raami .eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
}

.raami .eyebrow + h2 {
  margin-top: 0.875rem;
}

.raami code {
  padding: 0.125rem 0.4375rem;
  border-radius: 5px;
  background: var(--r-panel);
  color: var(--r-lime);
  font: 500 0.75rem var(--r-mono);
}

.raami .updated {
  color: var(--r-muted);
  font-size: 0.875rem;
}

/* Linkit: tekstinväriset ja alleviivatut, ei sinistä. */
.raami a {
  color: var(--r-text);
  text-decoration: underline;
  text-decoration-color: var(--r-muted);
  text-underline-offset: 4px;
}

.raami a:hover {
  color: var(--r-text);
  text-decoration-color: var(--r-text);
}

.raami :focus-visible {
  outline: 2px solid var(--r-lime);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Luonnosbanneri: paperipohja, ohut, vasemmalle. */
.raami .draft-banner {
  padding: 0.625rem max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: var(--r-paper);
  color: var(--r-night);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
}

/* Yläpalkki: 56 px mobiilissa, 64 px leveämmillä, hiusviivaraja, ei varjoa. */
.raami .site-header {
  position: relative;
  border-bottom: 1px solid var(--r-line);
}

.raami .header-inner {
  flex-wrap: nowrap;
  gap: 1.375rem;
  min-height: 3.5rem;
}

.raami .brand {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--r-text);
  text-decoration: none;
}

.raami .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--r-text);
  text-decoration: none;
}

.raami .wordmark-name {
  font: 500 1.0625rem var(--r-serif);
  letter-spacing: -0.02em;
}

.raami .wordmark-by {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: var(--r-muted);
}

.raami .raami-nav,
.raami .header-inner > .brand {
  display: none;
}

.raami .raami-nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.raami .raami-nav a {
  font-size: 0.875rem;
  font-weight: 500;
}

.raami .raami-nav a {
  color: var(--r-body);
  text-decoration: none;
}

.raami .raami-nav a:hover,
.raami .raami-nav a[aria-current] {
  color: var(--r-text);
}

.raami .raami-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--r-lime);
}

/* Kielivalikko näkyy kaikilla leveyksillä; kapealla se työntää valikon oikealle. */
.raami .lang-menu summary {
  color: var(--r-body);
}

.raami .lang-menu ul {
  top: calc(100% + 0.25rem);
  background: var(--r-panel);
  border-color: var(--r-line);
  border-radius: 12px;
}

.raami .lang-menu a {
  color: var(--r-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}

.raami .lang-menu a:hover {
  background: var(--r-line);
}

.raami .flag {
  box-shadow: 0 0 0 1px var(--r-line-strong);
}

/* Mobiilivalikko ilman JavaScriptiä. */

.raami .raami-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.75rem;
  cursor: pointer;
  list-style: none;
}

.raami .raami-menu summary::-webkit-details-marker {
  display: none;
}

.raami .menu-icon {
  display: block;
  width: 1.25rem;
  height: 0.40625rem;
  border-block: 1.5px solid var(--r-text);
}

.raami .raami-menu[open] .menu-icon {
  height: 0;
  border-bottom: 0;
}

.raami .raami-menu nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--r-night);
  border-bottom: 1px solid var(--r-line);
}

.raami .raami-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.raami .raami-menu a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--r-line);
  color: var(--r-text);
  font-weight: 500;
  text-decoration: none;
}

@media (min-width: 48rem) {
  .raami .header-inner {
    min-height: 4rem;
  }

  .raami .header-inner > .brand,
  .raami .raami-nav {
    display: block;
  }

  .raami .raami-nav {
    margin-left: auto;
  }

  .raami .lang-menu {
    margin-left: 0;
  }

  .raami .wordmark-by,
  .raami .raami-menu {
    display: none;
  }
}

/* Murupolku */
.raami .breadcrumbs ol {
  margin-top: 2rem;
  font-size: 0.875rem;
}

.raami .breadcrumbs a {
  color: var(--r-muted);
  text-decoration: none;
}

.raami .breadcrumbs a:hover {
  color: var(--r-text);
}

.raami .breadcrumbs [aria-current] {
  color: var(--r-text);
}

@media (min-width: 60rem) {
  .raami .breadcrumbs ol {
    margin-top: 3.5rem;
  }
}

/* Sisältöpalsta 720 px. Etusivun lohkot (.band, .hero) ovat leveämpiä. */
.raami main {
  padding-bottom: 4.5rem;
}

.raami main > :not(.band, .hero) {
  max-width: 45rem;
}

.raami .band {
  margin-top: 4.5rem;
}

.raami .band > h2:first-child,
.raami .band > .eyebrow:first-child {
  margin-top: 0;
}

.raami .narrow {
  max-width: 45rem;
}

/* Painikkeet: pilleri, yksi lime per ruutu. */
.raami .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.raami .button {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border: 1px solid var(--r-line-strong);
  border-radius: 999px;
  color: var(--r-text);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.raami .button:hover {
  border-color: var(--r-line-hover);
}

.raami .button-primary {
  border-color: var(--r-lime);
  background: var(--r-lime);
  color: var(--r-night);
  font-weight: 600;
}

.raami .button-primary:hover {
  border-color: var(--r-lime-hover);
  background: var(--r-lime-hover);
  color: var(--r-night);
}

@media (max-width: 47.99rem) {
  .raami .actions .button {
    flex: 1 1 100%;
  }
}

/* Merkinnät */
.raami .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.375rem;
  padding: 0;
  list-style: none;
}

.raami .chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.3125rem 0.6875rem;
  border: 1px solid var(--r-line-strong);
  border-radius: 999px;
  color: var(--r-text);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.raami .chips .status {
  background: none;
  color: var(--r-text);
  border-radius: 999px;
}

.raami .chips .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--r-lime);
}

/* Kuvakehys: paneelikortti ilman varjoa ja selainkehystä, kuvateksti
   kursiivilla kortin sisällä. */
.raami .shot {
  margin: 2rem 0 0;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid var(--r-line);
  border-radius: 16px;
  background: var(--r-panel);
}

.raami .shot img {
  border: 1px solid var(--r-line);
  border-radius: 10px;
}

.raami figcaption {
  max-width: none;
  margin: 0.875rem auto 0;
  color: var(--r-muted);
  font: italic 400 0.875rem/1.5 var(--r-serif);
  text-align: center;
}

.raami .shot-tall {
  max-width: 27.5rem;
}

/* Etusivun yläosa */
.raami .hero {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.375rem;
}

.raami .hero h1 {
  margin-top: 0;
}

.raami .hero .shot {
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 60rem) {
  /* Tänään-kuva on suunnitelman paneelia korkeampi, joten teksti alkaa
     ylhäältä eikä keskity kuvan korkeuteen. */
  .raami .hero {
    grid-template-columns: minmax(0, 1fr) 27.5rem;
    gap: 3.5rem;
    align-items: start;
    margin: 1.375rem calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 1rem;
    overflow: hidden;
  }

  .raami .hero > div {
    padding-top: 3.5rem;
  }

  .raami .hero::before {
    content: "";
    position: absolute;
    right: -8.75rem;
    top: -7.5rem;
    width: 35rem;
    height: 35rem;
    border: 1px solid rgb(198 244 50 / 0.12);
    border-radius: 50%;
    pointer-events: none;
  }

  .raami .hero > * {
    position: relative;
  }
}

/* Kaksi palstaa ja kortit */
.raami .cols {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.raami .modes + .cols {
  margin-top: 2.5rem;
}

.raami .cols > * > :first-child,
.raami .cols > .shot {
  margin-top: 0;
}

.raami h2.h2-small {
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

@media (min-width: 60rem) {
  .raami .cols {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .raami .cols-cards {
    gap: 1.25rem;
  }
}

.raami .panel-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--r-panel);
}

.raami .panel-card h2 {
  margin-top: 0;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.raami .panel-card p {
  font-size: 0.9375rem;
}

.raami .text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.125rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.raami .text-links li {
  margin: 0;
}

.raami .text-links a {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Tilakortit: suljettu ja avoin rengas, sama kieli kuin laajennuskuvakkeessa. */
.raami .modes {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .raami .modes {
    grid-template-columns: 1fr 1fr;
  }
}

.raami .mode-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--r-panel);
}

.raami .mode-card h3,
.raami .mode-card p {
  margin: 0;
}

.raami .mode-card p {
  font-size: 0.9375rem;
}

.raami .mode-card .shot {
  margin: auto 0 0;
  padding: 0;
  border: 0;
  background: none;
}

/* Keskusteluesimerkki: ei puhekuplia, kaksi palstaa, puhuja kursiivilla. */
.raami .dialogue {
  margin: 0;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--r-panel);
}

.raami .dialogue blockquote {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.raami .dialogue blockquote p {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.75rem;
  margin: 0;
  color: var(--r-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.raami .dialogue .speaker {
  color: var(--r-muted);
  font: italic 400 0.9375rem/1.55 var(--r-serif);
}

.raami .dialogue .assistant {
  color: var(--r-body);
}

.raami .dialogue .assistant .speaker {
  color: var(--r-lime);
}

.raami .dialogue figcaption {
  margin-top: 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--r-line);
  text-align: left;
}

.raami .dialogue code {
  background: var(--r-night);
  font-style: normal;
}

/* Käsitteet */
.raami dl.terms dt {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.raami dl.terms dd {
  margin: 0.25rem 0 0;
}

/* Kysymykset: haitari ilman JavaScriptiä. */
.raami .faq {
  margin-top: 1.25rem;
  border-top: 1px solid var(--r-line);
}

.raami .faq details {
  border-bottom: 1px solid var(--r-line);
}

.raami .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.raami .faq summary::-webkit-details-marker {
  display: none;
}

.raami .faq summary::after {
  content: "+";
  color: var(--r-muted);
}

.raami .faq details[open] summary::after {
  content: "–";
}

.raami .faq h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.raami .faq details p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

/* Lue lisää ja varhainen pääsy */
.raami .link-grid {
  display: grid;
  gap: 0.625rem 1.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 30rem) {
  .raami .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.raami .link-grid li {
  margin: 0;
}

.raami .link-grid a {
  font-size: 0.9375rem;
  font-weight: 500;
}

.raami .early-access {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--r-paper);
  color: var(--r-night);
}

.raami .early-access::after {
  content: "";
  position: absolute;
  right: -3.75rem;
  bottom: -5rem;
  width: 13.75rem;
  height: 13.75rem;
  border: 8px solid var(--r-lime);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
  pointer-events: none;
}

.raami .early-access > * {
  position: relative;
  z-index: 1;
}

.raami .early-access h2 {
  margin-top: 0;
  color: var(--r-night);
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.raami .early-access p {
  max-width: 22.5rem;
  color: var(--r-paper-text);
  font-size: 0.9375rem;
}

.raami .early-access a {
  color: var(--r-night);
}

.raami .early-access :focus-visible {
  outline-color: var(--r-night);
}

/* Alatunniste */
.raami .site-footer {
  border-top: 1px solid var(--r-line);
  color: var(--r-muted);
  font-size: 0.875rem;
}

.raami .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.75rem;
}

.raami .footer-inner p {
  margin: 0;
}

.raami .site-footer a {
  color: var(--r-muted);
}

/* Raamin tuotekortti yrityksen etusivulla: Raamin ilme kortin sisällä
   (Night-pohja, Newsreader-otsikko, lime-linkki), ei riipu body-luokasta. */
.product-card--raami {
  --r-night: #0e1116;
  --r-panel: #161b22;
  --r-line: #262c35;
  --r-lime: #c6f432;
  --r-text: #ecedea;
  --r-body: #b9bdc4;
  --r-muted: #8e939c;
  background: var(--r-night);
  border: 1px solid var(--r-line);
  border-radius: 20px;
  color: var(--r-body);
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

.product-card--raami h3,
.product-card--raami h3 a {
  font: 500 28px/1.15 "Newsreader", Georgia, serif;
  letter-spacing: -0.02em;
  color: var(--r-text);
  text-decoration: none;
}

.product-card--raami .product-card__tagline {
  font: 500 18px/1.4 "Newsreader", Georgia, serif;
  color: var(--r-text);
}

.product-card--raami .status {
  background: transparent;
  border: 1px solid #333a45;
  border-radius: 999px;
  color: var(--r-text);
  font: 700 12px/1.6 "Instrument Sans", system-ui, sans-serif;
  padding: 2px 10px;
}

.product-card--raami .status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--r-lime);
  vertical-align: 1px;
}

.product-card--raami .product-card__shot {
  background: var(--r-panel);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.product-card--raami .product-card__shot img {
  width: auto;
  max-height: 22rem;
  border: 0;
  border-radius: 10px;
}

.product-card--raami .product-card__link a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--r-lime);
  color: var(--r-night);
  font: 700 14px/1.3 "Instrument Sans", system-ui, sans-serif;
  text-decoration: none;
}

.product-card--raami .product-card__link a:hover {
  background: #bae52f;
  color: var(--r-night);
}

/* Huushollin ilme: lukittu design (Claude Design, "Huusholli Web Design",
   31.10.2026). Koskee sivuja, joiden body-elementillä on luokka huusholli,
   eli kaikkia /huusholli/-sivuja kieliversioineen. Design määrää tyylin;
   sivuston rakenne, osoitteet ja kielet tulevat sivuston omista säännöistä
   (docs/sivusto.md). Tokenit: FamilyCore Design Tokens (colors_and_type.css).
   Kontrastit (WCAG 2.1 AA): muste hiekalla 14:1, nest-soft hiekalla 5.9:1,
   paperi clayllä 4.6:1, vaalea teksti nest-darkilla 13:1. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/huusholli/nunito-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: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/huusholli/nunito-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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/huusholli/source-serif-4-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: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/huusholli/source-serif-4-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;
}

/* ---------- Tokenit ---------- */

.huusholli {
  --h-sand: #f3e9d7;
  --h-sand-deep: #e8dcc5;
  --h-paper: #faf5ea;
  --h-paper-warm: #f5ecd9;
  --h-nest-dark: #0f2a3d;
  --h-nest-mid: #1f3e55;
  --h-nest-soft: #3a5569;
  --h-moss: #4a7a5f;
  --h-moss-deep: #345b46;
  --h-moss-soft: #d5e4db;
  --h-blue: #3e6fa8;
  --h-blue-deep: #2b5685;
  --h-clay: #c97b5c;
  --h-clay-deep: #a8603f;
  --h-clay-soft: #f4ddd0;
  --h-sun: #e8b64e;
  --h-sun-soft: #faeacb;
  --h-berry: #a3466b;
  --h-ink: #1a1814;
  --h-ink-muted: #5b5448;
  --h-line: #e3d6bd;
  --h-line-strong: #c7b696;
  --h-on-dark: #f5ecd9;
  --h-sans: "Nunito", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --h-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --h-shadow-sm: 0 1px 2px rgba(15, 42, 61, 0.06);
  --h-shadow: 0 2px 8px rgba(15, 42, 61, 0.08);
  --h-shadow-lg: 0 6px 20px rgba(15, 42, 61, 0.12);
  --h-shadow-kid-lg: 0 6px 0 rgba(15, 42, 61, 0.1), 0 14px 28px rgba(201, 123, 92, 0.16);

  /* Sivuston yleiset muuttujat Huushollin arvoille. */
  --color-bg: var(--h-sand);
  --color-surface: var(--h-paper);
  --color-text: var(--h-ink);
  --color-muted: var(--h-nest-soft);
  --color-border: var(--h-line);
  --color-accent: var(--h-blue);
  --color-accent-hover: var(--h-blue-deep);
  --color-focus: var(--h-blue);
  --color-draft-bg: var(--h-sun-soft);
  --color-draft-text: #5a4a1e;
  --wrap: 73.75rem; /* 1180 px */
  --gutter: 1.25rem;
  --measure: 64ch;
  --radius: 12px;
  color-scheme: light;
  font: 400 16px/1.55 var(--h-sans);
  text-wrap: pretty;
}

.huusholli :focus-visible {
  outline: 2px solid var(--h-blue);
  outline-offset: 2px;
}

.huusholli a {
  color: var(--h-blue);
}

.huusholli a:hover {
  color: var(--h-blue-deep);
}

.huusholli strong {
  font-weight: 700;
}

.huusholli em {
  font-style: normal;
  font-weight: 700;
  color: var(--h-nest-mid);
}

.huusholli .brand-term {
  font-style: normal;
}

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

/* ---------- Typografia ---------- */

.huusholli h1 {
  font: 700 clamp(30px, 4.2vw, 50px)/1.12 var(--h-serif);
  color: var(--h-nest-dark);
  text-wrap: balance;
  margin: 0 0 16px;
}

.huusholli h2 {
  font: 700 clamp(26px, 3vw, 32px)/1.2 var(--h-serif);
  color: var(--h-nest-dark);
  text-wrap: balance;
  margin: 0 0 16px;
}

.huusholli h2.h2-small {
  font-size: 26px;
}

.huusholli h3 {
  font: 800 20px/1.3 var(--h-sans);
  color: var(--h-nest-dark);
  margin: 0 0 8px;
}

.huusholli main p,
.huusholli main li {
  color: var(--h-ink);
}

.huusholli .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--h-nest-soft);
  margin: 0 0 24px;
}

.huusholli .eyebrow {
  font: 700 13px/1.4 var(--h-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-moss-deep);
  margin: 0 0 10px;
}

.huusholli main ul,
.huusholli main ol {
  padding-inline-start: 1.25rem;
}

.huusholli main li + li {
  margin-top: 6px;
}

.huusholli dl.terms dt {
  font: 800 16px/1.3 var(--h-sans);
  color: var(--h-nest-dark);
  margin-top: 16px;
}

.huusholli dl.terms dd {
  margin: 4px 0 0;
}

.huusholli .steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  max-width: var(--measure);
}

.huusholli .steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 56px;
  min-height: 44px;
}

.huusholli .steps li + li {
  margin-top: 14px;
}

.huusholli .steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--h-paper);
  box-shadow: var(--h-shadow);
  font: 700 20px/40px var(--h-serif);
  color: var(--h-clay);
  text-align: center;
}

.huusholli code {
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--h-sand-deep);
  padding: 1px 6px;
  border-radius: 5px;
}

.huusholli .updated {
  color: var(--h-nest-soft);
  font-size: 13px;
}

/* ---------- Napit ja merkinnät ---------- */

.huusholli .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--h-line-strong);
  background: transparent;
  color: var(--h-nest-mid);
  font: 700 15px/1.3 var(--h-sans);
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
}

.huusholli .button:hover {
  background: var(--h-sand-deep);
  color: var(--h-nest-dark);
}

.huusholli .button-primary {
  background: var(--h-clay);
  border-color: var(--h-clay);
  color: var(--h-paper);
}

.huusholli .button-primary:hover {
  background: var(--h-clay-deep);
  border-color: var(--h-clay-deep);
  color: var(--h-paper);
}

.huusholli .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.huusholli .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.huusholli .chips li {
  font: 700 12px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: 999px;
  padding: 5px 12px;
}

.huusholli .chips .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: var(--h-moss-soft);
  border-color: transparent;
  color: var(--h-moss-deep);
}

.huusholli .chips .status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--h-moss);
}

/* ---------- Yläpalkki ---------- */

.huusholli .draft-banner {
  font: 600 12px/1.4 var(--h-sans);
}

.huusholli .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--h-paper);
  border-bottom: 1px solid var(--h-line);
}

.huusholli .header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.huusholli .header-inner > .brand {
  font: 600 13px/1.3 var(--h-sans);
  color: var(--h-nest-soft);
  text-decoration: none;
  white-space: nowrap;
}

.huusholli .header-inner > .brand:hover {
  color: var(--h-nest-dark);
}

.huusholli .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--h-nest-dark);
  text-decoration: none;
  margin-inline-end: auto;
}

.huusholli .wordmark .mark {
  width: 30px;
  height: 30px;
}

.huusholli .wordmark-name {
  font: 800 20px/1 var(--h-sans);
}

.huusholli .wordmark-by {
  display: none;
}

.huusholli .huusholli-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.huusholli .huusholli-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  font: 700 14px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
  text-decoration: none;
}

.huusholli .huusholli-nav a:hover,
.huusholli .huusholli-nav a[aria-current] {
  background: var(--h-sand-deep);
  color: var(--h-nest-dark);
}

.huusholli .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--h-clay);
  color: var(--h-paper);
  font: 700 14px/1.3 var(--h-sans);
  text-decoration: none;
  text-wrap: balance;
}

.huusholli .nav-cta:hover {
  background: var(--h-clay-deep);
  color: var(--h-paper);
}

/* Kielivalikko: nykyisen kielen lippu, josta aukeavat muut kielet lippuineen ja
   nimineen (sama kuin Raamilla; käyttäjän valinta 31.10.2026). */
.huusholli .lang-menu {
  margin-inline-start: 0;
}

.huusholli .lang-menu summary {
  font: 700 14px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
  padding: 0 10px;
  border-radius: 999px;
}

.huusholli .lang-menu .flag {
  box-shadow: 0 0 0 1px var(--h-line-strong);
}

.huusholli .lang-menu summary:hover {
  background: var(--h-sand-deep);
}

.huusholli .lang-menu ul {
  min-width: 12rem;
  padding: 6px;
  background: var(--h-paper);
  border: 1px solid var(--h-line);
  border-radius: 12px;
  box-shadow: var(--h-shadow-lg);
}

.huusholli .lang-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  font: 600 14px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
}

.huusholli .lang-menu a:hover {
  background: var(--h-sand-deep);
  color: var(--h-nest-dark);
}

/* Kapea näyttö: osion sivut valikossa (details), ei JavaScriptiä. */
.huusholli .huusholli-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.huusholli .huusholli-menu summary::-webkit-details-marker {
  display: none;
}

.huusholli .menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--h-nest-dark);
}

.huusholli .menu-icon::before,
.huusholli .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--h-nest-dark);
}

.huusholli .menu-icon::before {
  top: -6px;
}

.huusholli .menu-icon::after {
  top: 6px;
}

.huusholli .huusholli-menu nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--h-paper);
  border-bottom: 1px solid var(--h-line);
  box-shadow: var(--h-shadow-lg);
  padding: 8px 20px 16px;
}

.huusholli .huusholli-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.huusholli .huusholli-menu a {
  display: block;
  padding: 12px 8px;
  font: 700 16px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
  text-decoration: none;
  border-radius: 8px;
}

.huusholli .huusholli-menu a:hover,
.huusholli .huusholli-menu a[aria-current] {
  background: var(--h-sand-deep);
}

.huusholli .site-header {
  position: sticky;
}

.huusholli .huusholli-menu {
  position: static;
}

@media (max-width: 63.99rem) {
  /* Kapea näyttö: pesämerkki + nimi, kielivalikko ja hampurilainen. CoreContent-
     linkki ja CTA ovat valikossa ja sivun sisällössä. */
  .huusholli .huusholli-nav,
  .huusholli .header-inner > .brand,
  .huusholli .nav-cta {
    display: none;
  }

  .huusholli .header-inner {
    min-height: 56px;
  }
}

@media (min-width: 64rem) {
  .huusholli .huusholli-menu {
    display: none;
  }

  .huusholli .header-inner {
    gap: 12px;
  }
}

/* ---------- Murupolku ---------- */

.huusholli .breadcrumbs ol {
  font: 600 13px/1.4 var(--h-sans);
  color: var(--h-nest-soft);
  margin-top: 16px;
}

.huusholli .breadcrumbs a {
  color: var(--h-nest-soft);
}

.huusholli .breadcrumbs a:hover {
  color: var(--h-nest-dark);
}

.huusholli .breadcrumbs [aria-current] {
  color: var(--h-nest-dark);
}

/* ---------- Sisältö ja osiot ---------- */

.huusholli main {
  padding-bottom: 0;
}

/* Esittelysivu: osiot ovat täysleveitä kaistoja, joiden sisältö on 1180 px:ssä.
   Taustat vuorottelevat sand / paper; yksi tumma osio ja yksi clay-soft. */
.huusholli main > .hero,
.huusholli main > .band {
  margin: 0 calc(50% - 50vw);
  padding: 64px max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter)));
}

.huusholli main > .band:nth-of-type(even) {
  background: var(--h-paper);
}

.huusholli main > .band.cols-cards {
  background: var(--h-nest-dark);
  color: var(--h-on-dark);
}

.huusholli main > .band.cols-cards h2,
.huusholli main > .band.cols-cards p {
  color: var(--h-on-dark);
}

.huusholli main > .band.cols-cards a {
  color: var(--h-sun);
}

.huusholli main > .band.cols-cards a:hover {
  color: var(--h-sun-soft);
}

.huusholli main > .band:last-child {
  background: var(--h-clay-soft);
}

@media (min-width: 60rem) {
  .huusholli main > .hero,
  .huusholli main > .band {
    padding-block: 96px;
  }
}

/* Hero: 7/5, teksti vasemmalla, taideruutu oikealla. */
.huusholli .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 40px;
}

.huusholli .hero > div > p:not(.lead) {
  margin: 0 0 20px;
}

.huusholli .hero .art {
  position: relative;
  border-radius: 28px;
  background: var(--h-paper-warm);
  box-shadow: var(--h-shadow-kid-lg);
  padding: 56px 24px 24px;
  overflow: hidden;
}

.huusholli .hero .art .tilu {
  position: absolute;
  width: 96px;
  height: 96px;
  right: 16px;
  top: 8px;
  z-index: 2;
}

.huusholli .hero .art .deco {
  position: absolute;
  width: 48px;
  height: 48px;
  left: 20px;
  top: 14px;
  opacity: 0.9;
}

.huusholli .hero .art .shot {
  margin: 0;
  max-width: none;
}

/* "Perheen arki, yhdessä": kolme lukutason taulua vaihtuvat ristihäivytyksellä
   (esilukija → lukija → aikuinen), 15 s kierto, ei JavaScriptiä. Ensimmäinen
   dia varaa tilan, muut ovat sen päällä. Liikkeen rajoituksella vain ensimmäinen. */
.huusholli .hero .art {
  display: grid;
}

.huusholli .hero .art .art-slide {
  grid-area: 1 / 1;
  animation: huusholli-slides 15s infinite;
}

.huusholli .hero .art .art-slide:nth-of-type(2) {
  animation-delay: -10s;
}

.huusholli .hero .art .art-slide:nth-of-type(3) {
  animation-delay: -5s;
}

@keyframes huusholli-slides {
  0%, 27% { opacity: 1; }
  33%, 94% { opacity: 0; }
  100% { opacity: 1; }
}

/* Dian nimi kuvan päällä (pilleri), häipyy dian mukana. */
.huusholli .hero .art .art-slide {
  position: relative;
}

.huusholli .hero .art .art-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--h-nest-dark);
  color: var(--h-on-dark);
  font: 700 13px/1.3 var(--h-sans);
}

/* Tilu neuvoo pienintä: kaksi askelta vuorotellen (8 s kierto). */
.huusholli .tilu-seq {
  display: grid;
}

.huusholli .tilu-seq .tilu-frame {
  grid-area: 1 / 1;
  animation: huusholli-two-frames 8s infinite;
}

.huusholli .tilu-seq .tilu-frame:nth-of-type(2) {
  animation-delay: -4s;
}

@keyframes huusholli-two-frames {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .huusholli .hero .art .art-slide,
  .huusholli .tilu-seq .tilu-frame {
    animation: none;
  }

  .huusholli .hero .art .art-slide:not(:first-of-type),
  .huusholli .tilu-seq .tilu-frame:not(:first-of-type) {
    display: none;
  }
}

@media (min-width: 60rem) {
  .huusholli .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    padding-top: 56px;
  }
}

/* Kuvakaappaukset: paperikortti, ei selainkehystä kuvan ympärille. */
.huusholli .shot {
  margin: 0;
  max-width: none;
}

.huusholli .shot img,
.huusholli .shot picture {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: var(--h-paper);
  box-shadow: var(--h-shadow);
}

.huusholli figcaption {
  margin-top: 10px;
  font: 400 13px/1.5 var(--h-sans);
  color: var(--h-nest-soft);
}

/* Käsikirjan sivut: kuva kappaleiden lomassa, 720 px. */
.huusholli main > .shot {
  margin: 24px 0 32px;
  max-width: 45rem;
}

.huusholli main > h2 {
  margin-top: 48px;
}

.huusholli main > h1 {
  margin-top: 24px;
}

/* Vuorotteleva kaksipalstainen "zig-zag": teksti ja kuva. */
.huusholli .cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
}

.huusholli .cols > div > :first-child {
  margin-top: 0;
}

@media (min-width: 60rem) {
  .huusholli .cols {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  /* Joka toinen rivi peilattuna: kuva vasemmalla leveämmässä palstassa. */
  .huusholli main > .band.cols:nth-of-type(odd) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .huusholli main > .band.cols:nth-of-type(odd) > .shot {
    order: -1;
  }
}

/* Kolmen ja kahden kortin ryhmät: paperikortit, auto-fit, ei kiinteitä korkeuksia. */
.huusholli .modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.huusholli .mode-card {
  background: var(--h-paper);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--h-shadow);
}

.huusholli main > .band:nth-of-type(even) .mode-card {
  background: var(--h-sand);
}

.huusholli .mode-card h3 {
  margin-bottom: 14px;
}

.huusholli .mode-card .shot img {
  box-shadow: var(--h-shadow-sm);
}

.huusholli .modes + ul,
.huusholli .modes + .cols {
  margin-top: 24px;
}

/* Tumma osio: kortit nest-mid-pohjalla. */
.huusholli .cols-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.huusholli .panel-card {
  background: var(--h-nest-mid);
  border-radius: 12px;
  padding: 24px;
}

.huusholli .panel-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.huusholli .panel-card p {
  margin: 0;
}

/* Kapea osio (kysymykset). */
.huusholli .narrow > * {
  max-width: 47.5rem;
  margin-inline: auto;
}

/* Kysymykset: haitari hiusviivoin, + ja −. */
.huusholli .faq {
  max-width: 47.5rem;
  margin-inline: auto;
}

.huusholli .faq details {
  border-bottom: 1px solid var(--h-line);
}

.huusholli .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.huusholli .faq summary::-webkit-details-marker {
  display: none;
}

.huusholli .faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--h-paper);
  box-shadow: var(--h-shadow-sm);
  font: 700 18px/28px var(--h-sans);
  color: var(--h-clay);
  text-align: center;
}

.huusholli .faq details[open] summary::after {
  content: "−";
}

.huusholli .faq h3 {
  font: 800 17px/1.3 var(--h-sans);
  margin: 0;
}

.huusholli .faq details p {
  margin: 0 0 16px;
  max-width: none;
}

/* Lue lisää + kutsu: paperi + clay-soft. */
.huusholli .link-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.huusholli .link-grid a {
  display: block;
  padding: 12px 16px;
  background: var(--h-paper);
  border-radius: 12px;
  box-shadow: var(--h-shadow-sm);
  font: 700 15px/1.3 var(--h-sans);
  color: var(--h-nest-mid);
  text-decoration: none;
}

.huusholli .link-grid a:hover {
  background: var(--h-sand-deep);
  color: var(--h-nest-dark);
}

.huusholli .early-access {
  position: relative;
  background: var(--h-paper);
  border-radius: 20px;
  padding: 28px 28px 28px 120px;
  box-shadow: var(--h-shadow);
  overflow: hidden;
  min-height: 160px;
}

.huusholli .early-access::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 96px;
  height: 96px;
  background: url("/img/huusholli/tilu-wave.svg") no-repeat center / contain;
}

.huusholli .early-access h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.huusholli .early-access p {
  margin: 0 0 8px;
}

@media (max-width: 29.99rem) {
  .huusholli .early-access {
    padding: 24px 20px 112px;
  }

  .huusholli .early-access::before {
    left: auto;
    right: 16px;
  }
}

/* ---------- Tuotekortit yrityksen etusivulla ---------- */

/* Yksi rivi per tuote: kortit allekkain; leveällä näytöllä kuva ja teksti rinnakkain. */
.cards:has(.product-card) {
  grid-template-columns: 1fr;
}

.product-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  align-items: center;
}

@media (min-width: 60rem) {
  .product-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    padding: 28px;
  }
}

.product-card__shot {
  margin: 0;
  max-width: none;
}

.product-card__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.product-card__body > * {
  margin: 0 0 10px;
}

.product-card__body > :last-child {
  margin-bottom: 0;
}

.product-card__link a {
  text-decoration: none;
}

/* Huushollin tuotekortti: paperi hiekalla, Source Serif -otsikko, clay-nappi. */
.product-card--huusholli {
  background: #faf5ea;
  border: 1px solid #e3d6bd;
  border-radius: 20px;
  color: #1a1814;
  font-family: "Nunito", "Noto Sans", system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08);
  color-scheme: light;
}

.product-card--huusholli h3,
.product-card--huusholli h3 a {
  font: 700 28px/1.15 "Source Serif 4", Georgia, serif;
  color: #0f2a3d;
  text-decoration: none;
}

.product-card--huusholli .product-card__tagline {
  font: 700 18px/1.4 "Source Serif 4", Georgia, serif;
  color: #0f2a3d;
}

.product-card--huusholli p {
  color: #1a1814;
}

.product-card--huusholli .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d5e4db;
  border-radius: 999px;
  color: #345b46;
  font: 700 12px/1.6 "Nunito", system-ui, sans-serif;
  padding: 2px 10px;
}

.product-card--huusholli .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4a7a5f;
}

.product-card--huusholli .product-card__shot {
  background: #f3e9d7;
  border-radius: 14px;
  padding: 16px;
}

.product-card--huusholli .product-card__shot img {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08);
}

.product-card--huusholli .product-card__link a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: #c97b5c;
  color: #faf5ea;
  font: 700 14px/1.3 "Nunito", system-ui, sans-serif;
}

.product-card--huusholli .product-card__link a:hover {
  background: #a8603f;
  color: #faf5ea;
}

/* ---------- Kuvan suurennus ilman JavaScriptiä (:target) ---------- */

.huusholli .zoom {
  display: block;
  cursor: zoom-in;
}

.huusholli .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 42, 61, 0.88);
}

.huusholli .lightbox:target {
  display: block;
}

.huusholli .lightbox__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  cursor: zoom-out;
}

.huusholli .lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- Alatunniste ---------- */

.huusholli .site-footer {
  background: var(--h-nest-dark);
  color: var(--h-line);
  border-top: 0;
  font: 400 14px/1.6 var(--h-sans);
}

.huusholli .footer-inner {
  padding-block: 28px;
}

.huusholli .footer-inner p {
  margin: 4px 0;
}

.huusholli .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 18px/1.2 var(--h-sans);
  color: var(--h-paper);
  margin-bottom: 12px;
}

.huusholli .footer-brand .mark {
  width: 28px;
  height: 28px;
}

.huusholli .footer-brand span {
  font: 600 14px/1.3 var(--h-sans);
  color: var(--h-line-strong);
}

.huusholli .site-footer a {
  color: var(--h-line);
  text-decoration: none;
}

.huusholli .site-footer a:hover {
  color: var(--h-paper);
}

.huusholli .footer-langs {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  max-width: none;
}

.huusholli .footer-langs a[aria-current] {
  color: var(--h-sun);
}
