:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4B7A;
  --color-border: rgba(76, 29, 149, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 16px;
  --shadow-card: 0 30px 60px -30px rgba(76, 29, 149, 0.35);
  --shadow-soft: 0 12px 30px -18px rgba(76, 29, 149, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === Container === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 720px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  appearance: none; background: transparent; border: 1px solid var(--color-border);
  padding: 0.5rem; border-radius: 8px; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 4px;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--color-neutral-dark); }
.primary-nav { display: none; }
.primary-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.primary-nav a {
  display: block; padding: 0.6rem 0.75rem; border-radius: 8px;
  color: var(--color-neutral-dark); font-weight: 500;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(124, 58, 237, 0.08); text-decoration: none; }
.primary-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-neutral-light); padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .primary-nav ul { flex-direction: row; gap: 0.25rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 1rem;
}
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #a76e00; }
.btn-ghost { background: transparent; color: var(--color-neutral-dark); border-color: var(--color-neutral-dark); }

/* === Hero card === */
.hero { padding-block: 3rem; }
.hero-card__card {
  max-width: 880px; margin-inline: auto;
  padding: 2.25rem 1.5rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--color-border);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-accent); margin-bottom: 0.85rem;
}
.hero-card__sub {
  color: var(--color-muted); font-size: 1.15rem;
  max-width: 52ch; margin-inline: auto; margin-bottom: 1.75rem;
}
.hero-card__cta { margin-bottom: 2rem; }
.hero-card__figure {
  margin: 2rem -1rem -0.5rem;
  border-radius: 16px; overflow: hidden;
}
.hero-card__figure img {
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
}

@media (min-width: 768px) {
  .hero { padding-block: 5rem; }
  .hero-card__card { padding: 4rem; }
  .hero-card__figure { margin: 2.5rem 0 0; }
}

/* === Sections === */
.section { padding-block: 3.5rem; }
.section--intro { text-align: center; }
.section--intro h2 { margin-bottom: 1.25rem; }
.section--intro p { color: var(--color-muted); font-size: 1.075rem; }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__sub { color: var(--color-muted); max-width: 56ch; margin-inline: auto; }

/* === Cards === */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.card__icon {
  display: inline-flex; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary); margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-link h3 { color: var(--color-neutral-dark); }

/* === Quote === */
.section--quote { text-align: center; }
.quote {
  margin: 0; padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.quote p {
  font-family: var(--font-heading); font-size: 1.35rem;
  color: var(--color-neutral-dark); line-height: 1.5;
  margin-bottom: 1.25rem;
}
.quote cite {
  font-style: normal; color: var(--color-muted);
  font-weight: 500; font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-neutral-dark), var(--color-primary));
  color: #fff;
  margin-block: 2rem;
}
.cta-band__inner { text-align: center; padding-block: 3.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-accent { background: var(--color-accent); }
.cta-band__meta { font-size: 0.95rem; margin-block: 1rem 1.5rem; }
.cta-band__meta a { color: #fff; text-decoration: underline; }

/* === Split === */
.split { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
}
.split__figure img { border-radius: 14px; aspect-ratio: 4/5; object-fit: cover; }

/* === Contact info === */
.contact-info { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-info { grid-template-columns: 1fr 1fr; } }
.contact-info p { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 1.25rem; margin: 0; }
.contact-info strong { color: var(--color-neutral-dark); font-family: var(--font-heading); font-weight: 600; }

/* === Form === */
.contact-form {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 2rem;
  display: grid; gap: 1.25rem;
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit;
  padding: 0.75rem 0.9rem; border-radius: 10px;
  border: 1px solid var(--color-border); background: var(--color-neutral-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 3rem 1rem; }
.article-detail__header { margin-bottom: 2rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-detail__lede { font-size: 1.2rem; color: var(--color-muted); }
.article-detail__figure { margin: 2rem 0; }
.article-detail__figure img { aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; width: 100%; }
.article-detail__body p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-detail__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: rgba(255,255,255,0.9);
  padding-block: 3rem 1.5rem; margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.logo--footer img { height: 64px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 6px; }
.tagline { color: rgba(255,255,255,0.7); font-style: italic; margin-top: 0.75rem; }
.footer__title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.65); font-family: var(--font-body); font-weight: 600; margin-bottom: 0.85rem; }
.site-footer ul li { margin-bottom: 0.35rem; }
.footer__legal { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.9rem; }
.footer__legal li { margin: 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__copy { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem; border-radius: 14px;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.4);
  max-width: 640px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  appearance: none; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: inherit; font: inherit;
  padding: 0.55rem 1rem; border-radius: 999px; cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 600; }
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.1); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #a76e00; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: 0.5rem; appearance: none; background: var(--color-accent); color: #fff; font: inherit; font-weight: 600; padding: 0.5rem 1rem; border: none; border-radius: 999px; cursor: pointer; }
