:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #06B6D4;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --sidebar-w: 240px;
  --border: rgba(30, 27, 75, 0.12);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.01em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-primary); margin: 0 0 0.75rem; }
.sub { color: rgba(30, 27, 75, 0.72); font-size: 1.05rem; margin-bottom: 1.25rem; }
.lede { font-size: 1.2rem; color: rgba(30, 27, 75, 0.8); max-width: 60ch; margin: 0 0 1.5rem; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { position: fixed; top: 0.5rem; left: 0.5rem; background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 0.5rem 0.75rem; z-index: 10000; }

/* === Layout: sidebar-nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sidebar .logo { display: inline-block; }
.sidebar .logo img { height: 72px; width: auto; }
.sidebar-foot { display: none; margin: 0; font-size: 0.8rem; color: rgba(250, 245, 255, 0.55); }
.side-nav { position: relative; }
.nav-toggle { background: transparent; border: 1px solid rgba(250, 245, 255, 0.35); border-radius: 6px; width: 44px; height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-neutral-light); }
.nav-list { list-style: none; margin: 0; padding: 0; display: none; position: absolute; right: 0; top: calc(100% + 0.5rem); background: var(--color-neutral-dark); border: 1px solid rgba(250,245,255,0.15); border-radius: 8px; min-width: 220px; padding: 0.5rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); }
.nav-list.is-open { display: block; }
.nav-list li { list-style: none; }
.nav-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--color-neutral-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { background: rgba(250,245,255,0.08); color: var(--color-accent); }

.main { padding: 2rem 1.25rem; max-width: 100%; }

/* === Desktop sidebar === */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    gap: 2rem;
  }
  .sidebar .logo img { height: 96px; }
  .sidebar-foot { display: block; margin-top: auto; }
  .nav-toggle { display: none; }
  .nav-list { display: block; position: static; background: transparent; border: 0; padding: 0; box-shadow: none; width: 100%; }
  .nav-list li + li { margin-top: 0.15rem; }
  .side-nav { width: 100%; }
  .main { padding: 3rem 3rem 2rem; max-width: 1100px; }
}

/* === Hero === */
.hero { margin-bottom: 3.5rem; }
.hero-side { max-width: 780px; }
.hero-figure { margin: 2rem 0 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 25px 50px -30px rgba(30, 27, 75, 0.35); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn-primary:hover { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn-accent:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); border-color: var(--color-neutral-dark); }
button.btn-primary, button[type="submit"] { cursor: pointer; font-family: var(--font-body); }
button[type="submit"] { background: var(--color-primary); color: var(--color-neutral-light); border: 0; padding: 0.85rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.98rem; cursor: pointer; font-family: var(--font-body); }
button[type="submit"]:hover { background: var(--color-neutral-dark); }

/* === Intro / prose sections === */
.intro { max-width: 68ch; margin: 0 0 3.5rem; }
.intro p { font-size: 1.05rem; }

/* === Grid of cards === */
.grid-section { margin: 0 0 3.5rem; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -25px rgba(30, 27, 75, 0.35);
  border-color: var(--color-secondary);
}
.card .icon { color: var(--color-accent); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: rgba(30,27,75,0.78); font-size: 0.98rem; }

/* === Testimonial === */
.testimonial { margin: 0 0 3.5rem; max-width: 780px; }
.testimonial blockquote {
  margin: 1rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--color-accent);
  background: #fff;
  border-radius: 0 12px 12px 0;
}
.testimonial blockquote p { font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; line-height: 1.5; margin: 0 0 0.75rem; }
.testimonial cite { font-style: normal; font-size: 0.9rem; color: rgba(30,27,75,0.7); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 2.5rem 1.75rem;
  border-radius: 14px;
  margin: 0 0 3.5rem;
}
.cta-band h2, .cta-band p { color: var(--color-neutral-light); }
.cta-band .btn-accent { margin-top: 0.5rem; }

/* === Contact band === */
.contact-band { margin: 0 0 3.5rem; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.contact-band h2 { margin-bottom: 0.5rem; }

/* === Form === */
.form-section { max-width: 640px; margin: 0 0 3.5rem; }
.form-section form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: rgba(30,27,75,0.85); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin: 0 auto 3rem; padding-inline: 0; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-sub { font-size: 1.2rem; color: rgba(30,27,75,0.75); margin-bottom: 1rem; }
.article-hero { margin: 2rem 0; }
.article-hero img { aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.back-link { font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* === Footer === */
.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer nav ul, .site-footer .legal { list-style: none; margin: 0; padding: 0; }
.site-footer nav li, .site-footer .legal li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--color-neutral-dark); text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; }
.foot-brand { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 0.25rem; }
.legal { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.copy { margin-top: 2rem; color: rgba(30,27,75,0.6); font-size: 0.85rem; }

/* === 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: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; }
.cookie-banner a { color: var(--color-accent); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  border: 1px solid rgba(250,245,255,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: 0.88rem;
}
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); color: var(--color-neutral-dark); border-color: var(--color-accent); font-weight: 600; }
.cookie-banner__prefs { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; font: inherit; padding: 0.5rem 0.9rem; border-radius: 6px; border: 0; background: var(--color-accent); color: var(--color-neutral-dark); font-weight: 600; cursor: pointer; }
