:root {
  --bg: #fcf8fd;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #2f2234;
  --muted: #6e6172;
  --brand: #8b57a1;
  --brand-2: #d58ed7;
  --line: #eadcf0;
  --shadow: 0 10px 30px rgba(91, 52, 101, 0.08);
  --radius: 24px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213, 142, 215, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 87, 161, 0.15), transparent 30%),
    linear-gradient(180deg, #fff9ff 0%, #f8f2fa 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(252, 248, 253, 0.8);
  border-bottom: 1px solid rgba(234, 220, 240, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}

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

.nav a {
  display: inline-block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-radius: 999px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(139, 87, 161, 0.08);
  color: var(--text);
  outline: none;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(139, 87, 161, 0.08);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.15rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1rem;
}

.panel p:last-child,
.card p:last-child,
.mini-card p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  outline: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.button--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card-list {
  display: grid;
  gap: 0.9rem;
  height: 100%;
}

.mini-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 1.2rem 0 3rem;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card__image {
  aspect-ratio: 16 / 10;
  background: #f4edf7;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__image img.face-focus {
  object-fit: cover;
  object-position: center 20%;
}

.card__body {
  padding: 1.2rem 1.25rem 1.3rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card a {
  text-decoration: none;
  color: var(--brand);
  display: block;
  height: 100%;
}

.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(139, 87, 161, 0.08);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.footer__inner {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article {
  padding: 2rem 0 3rem;
}

.article__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.article__meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article__image {
  margin: 1.5rem 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__content {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.article__content p + p {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .hero__grid,
  .cards,
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel,
  .article__content {
    padding: 1.35rem;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .nav ul {
    gap: 0.25rem;
  }

  .nav a {
    padding: 0.55rem 0.8rem;
  }
}
/* Linkit ja lähteet sivun tekstikortit */

.sources-page .cards {
  align-items: stretch;
}

.sources-page .card {
  min-height: 100%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sources-page .card:hover,
.sources-page .card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(91, 52, 101, 0.12);
}

.sources-page .card a {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sources-page .card__body {
  height: 100%;
  padding: 1.3rem 1.35rem 1.4rem;
}

.sources-page .card__body h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.sources-page .card__body p {
  color: var(--muted);
}

.sources-page .card__body strong {
  color: var(--brand);
}

.sources-page .card__tag {
  margin-bottom: 0.85rem;
}
.sources-page .source-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 253, 0.92));
  border: 1px solid rgba(234, 220, 240, 0.95);
  box-shadow: 0 10px 30px rgba(91, 52, 101, 0.08);
}

.sources-page .source-card:hover,
.sources-page .source-card:focus-within {
  border-color: rgba(139, 87, 161, 0.38);
  box-shadow: 0 16px 38px rgba(91, 52, 101, 0.14);
}

.sources-page .source-tag {
  background: rgba(139, 87, 161, 0.1);
  color: var(--brand);
  border: 1px solid rgba(139, 87, 161, 0.12);
}

.sources-page .source-card h3 {
  color: var(--text);
}

.sources-page .source-card p {
  color: var(--muted);
}

.sources-page .source-card strong {
  color: var(--brand);
}

.sources-page .source-nav a {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: 0 8px 22px rgba(91, 52, 101, 0.05);
}

.sources-page .source-nav a:hover,
.sources-page .source-nav a:focus-visible {
  background: rgba(139, 87, 161, 0.08);
  border-color: rgba(139, 87, 161, 0.22);
  color: var(--brand);
}

.sources-page .source-note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 248, 253, 0.84));
  border: 1px solid rgba(234, 220, 240, 0.95);
}
