:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-rule: #E4E4E7;
  --color-muted: #71717A;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(9, 9, 11, 0.15);
}

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--color-neutral-light);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); font-weight: 600; line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

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

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-rule);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }
.nav-toggle {
  background: none; border: 1px solid var(--color-rule); border-radius: var(--radius);
  padding: .5rem; cursor: pointer; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-rule);
  padding: 1rem 1.25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: .5rem 0;
  text-decoration: none;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.primary-nav a:hover { color: var(--color-accent); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; flex-direction: row; gap: 2rem;
    position: static; padding: 0; border: 0; background: transparent;
  }
}

/* === Hero (centered) === */
.hero { padding-block: 3.5rem 3rem; text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: .75rem;
  color: var(--color-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero h1 {
  max-width: 28ch;
  margin: 0 auto 1.25rem;
  font-weight: 600;
}
.hero .lede {
  max-width: 48ch;
  margin: 0 auto 1.75rem;
  color: var(--color-secondary);
  font-size: 1.125rem;
}
.hero-cta { margin: 0 0 2.5rem; }
.hero-figure {
  margin: 2rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 768px) {
  .hero { padding-block: 6rem 4rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.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-light); }
.btn-accent:hover { background: #1D4ED8; color: var(--color-neutral-light); }

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: #F4F4F5; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-sub { color: var(--color-secondary); margin: 0 0 1.5rem; font-size: 1.0625rem; }
.centered { text-align: center; }

/* === Grid === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* === Cards === */
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-top: .5rem; }
.card p { color: var(--color-secondary); margin-bottom: 0; }
.card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  margin-bottom: .5rem;
}
a.card-link { color: inherit; text-decoration: none; display: block; }
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  text-decoration: none;
}
.card-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: .9375rem;
}

/* === Pull quote === */
.pull-quote {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
  max-width: 60ch;
  margin: 0 auto 1rem;
}
.pull-quote cite {
  font-style: normal;
  color: var(--color-secondary);
  font-size: .9375rem;
  font-weight: 500;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(250, 250, 250, 0.8); max-width: 56ch; margin: 0 auto 1.5rem; }
.cta-band .contact-line { font-size: .95rem; }
.cta-band .contact-line a { color: var(--color-neutral-light); text-decoration: underline; }

/* === Article-detail === */
.article {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.article-head { margin-bottom: 1.5rem; }
.article-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-sub {
  font-size: 1.25rem;
  color: var(--color-secondary);
  line-height: 1.5;
}
.article-figure {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}
.article-figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-block: 1.25rem;
  color: var(--color-primary);
}
.article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.625rem;
}
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-rule); }
.back-link { font-weight: 600; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--color-primary); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .875rem;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-neutral-light);
  color: var(--color-primary);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-consent {
  display: flex; gap: .625rem; align-items: flex-start;
  font-size: .9rem; color: var(--color-secondary);
  flex-wrap: wrap;
}
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(250,250,250,0.75);
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h3 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}
.site-footer .tagline { font-size: .9375rem; margin-top: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(250,250,250,0.75); }
.site-footer a:hover { color: var(--color-neutral-light); }
.site-footer address { font-style: normal; font-size: .9375rem; line-height: 1.7; }
.legal-links { margin-top: 1rem !important; display: flex; gap: 1rem; flex-wrap: wrap; }
.legal-links li { margin: 0; }
.copyright {
  border-top: 1px solid rgba(250,250,250,0.1);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem;
}
.copyright p { margin: 0; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; }
}

/* === 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;
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.4);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .875rem; font-size: .9375rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem .875rem;
  border-radius: 6px;
  border: 1px solid rgba(250,250,250,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-banner__prefs {
  display: grid; gap: .5rem;
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid rgba(250,250,250,0.15);
  font-size: .875rem;
}
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; }
.cookie-banner__prefs button {
  justify-self: start;
  margin-top: .5rem;
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  border-color: var(--color-neutral-light);
}
