/* ============================================================
   Leiden Blue + Oranje Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* Leiden Blue palette + Oranje accent */
  --leiden-blue:    #13294b;
  --leiden-light:   #1a3a66;
  --leiden-mist:    #eef2f5;
  --delft-tint:     #dce6f0;
  --oranje:         #e65c2e;
  --oranje-dark:    #c94d24;
  --canal-mist:     #f5f0e8;
  --ink:            #13294b;
  --ink-soft:       #2a4060;
  --white:          #ffffff;
  --line:           rgba(19, 41, 75, 0.14);

  --display: 'Fraunces', serif;
  --body:    'IBM Plex Sans', sans-serif;
  --mono:    'IBM Plex Mono', monospace;

  --max: 1160px;
  --radius: 4px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--leiden-mist);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--display); font-weight:600; margin:0 0 0.5em; color: var(--leiden-blue); }
p{ margin:0 0 1em; }
:focus-visible{ outline: 2px solid var(--oranje); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow{
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oranje);
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width:16px; height:2px;
  background: var(--oranje);
  display:inline-block;
}

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--leiden-blue);
  border-bottom: 6px solid var(--oranje);
  box-shadow: 0 4px 16px rgba(19, 41, 75, 0.15);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--display); font-weight:700; font-size:1.25rem;
  color: var(--canal-mist);
}
.logo .mark{
  width:30px; height:30px; flex-shrink:0;
}
.logo .mark path{ fill: var(--canal-mist); }
.logo .mark .roof{ fill: var(--oranje); }
nav.main-nav ul{ display:flex; gap: 32px; }
nav.main-nav a{
  font-size: 0.95rem; font-weight:500; color: #b8cee8;
  position:relative; padding: 4px 0;
  transition: color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--white); }
nav.main-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--oranje);
}
.nav-cta{
  background: var(--oranje); color: var(--white) !important;
  padding: 10px 20px; border-radius: var(--radius);
  font-weight:600; font-size:0.9rem;
  transition: background .15s ease;
}
.nav-cta:hover{ background: var(--oranje-dark); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; }
.nav-toggle svg path{ stroke: var(--canal-mist); }

@media (max-width: 860px){
  nav.main-nav{
    position:fixed; inset: 76px 0 0 0; background: var(--leiden-blue);
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: all .2s ease; padding: 24px 28px; border-top: 6px solid var(--oranje);
  }
  nav.main-nav.open{ opacity:1; transform:none; pointer-events:auto; }
  nav.main-nav ul{ flex-direction:column; gap:20px; }
  .nav-toggle{ display:block; }
}

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight:600; font-size:0.95rem; cursor:pointer; border:1.5px solid transparent;
  transition: all .15s ease;
}
.btn-primary{ background: var(--oranje); color:var(--white); }
.btn-primary:hover{ background: var(--oranje-dark); }
.btn-ghost{ border-color: var(--leiden-blue); color: var(--leiden-blue); }
.btn-ghost:hover{ background: var(--leiden-blue); color:var(--white); }

/* ---------------- Hero ---------------- */
.hero{
  position:relative; overflow:hidden;
  padding: 88px 0 0;
  background: var(--leiden-blue);
}
.hero .wrap{ position:relative; z-index:2; }
.hero-inner{ max-width: 640px; }
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--canal-mist);
}
.hero h1 em{ font-style: italic; color: var(--oranje); }
.hero p.lede{ font-size: 1.15rem; color: #b8cee8; max-width: 520px; }
.hero-actions{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }

.skyline{ width:100%; height: auto; display:block; margin-top: 56px; }
.skyline g{ fill: var(--leiden-light); }
.skyline g rect[fill="#F3F1E9"]{ fill: var(--canal-mist); }

/* ---------------- Stepped divider ---------------- */
.stepped-divider{ width:100%; height: 28px; display:block; }
.stepped-divider path{ fill: var(--leiden-blue); }
.section-alt + .stepped-divider path,
.stepped-divider.to-alt path{ fill: var(--delft-tint); }

/* ---------------- Journey stages ---------------- */
.section{ padding: 88px 0; }
.section-alt{ background: var(--delft-tint); }
.section-head{ max-width: 620px; margin-bottom: 56px; }

.stages{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  align-items:end;
}
.stage{
  background: var(--white); border: 1px solid var(--line);
  padding: 28px 22px; position:relative;
}
.stage:not(:last-child){ border-right:none; }
.stage .num{
  font-family: var(--mono); color: var(--oranje); font-size:0.85rem; margin-bottom:12px; display:block;
}
.stage h3{ font-size: 1.05rem; margin-bottom:8px; }
.stage p{ font-size:0.92rem; color: var(--ink-soft); margin:0; }
.stage:nth-child(1){ padding-top: 44px; }
.stage:nth-child(2){ padding-top: 34px; }
.stage:nth-child(3){ padding-top: 24px; }
.stage:nth-child(4){ padding-top: 14px; background: var(--leiden-blue); }
.stage:nth-child(4) h3, .stage:nth-child(4) .num{ color: var(--white); }
.stage:nth-child(4) p{ color: rgba(255,255,255,0.82); }

@media (max-width: 860px){
  .stages{ grid-template-columns: 1fr; }
  .stage, .stage:not(:last-child){ border-right:1px solid var(--line); padding-top:24px !important; }
}

/* ---------------- Cards ---------------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition: transform .18s ease, box-shadow .18s ease;
  border-top: 6px solid var(--leiden-blue);
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(19, 41, 75, 0.10); }
.card-body{ padding: 24px; display:flex; flex-direction:column; gap:10px; flex:1; }
.tag{
  font-family: var(--mono); font-size: 0.72rem; letter-spacing:0.04em; text-transform:uppercase;
  color: var(--leiden-blue); background: var(--leiden-mist); padding: 4px 10px; border-radius: 999px;
  display:inline-block; width:fit-content;
}
.tag.oranje{
  background: #fef0e8;
  border-color: var(--oranje);
  color: var(--oranje-dark);
}
.card h3{ font-size: 1.15rem; line-height:1.3; }
.card p.excerpt{ color: var(--ink-soft); font-size:0.94rem; margin:0; }
.card .read-more{ margin-top:auto; font-weight:600; color: var(--oranje); font-size:0.9rem; padding-top:12px; }

@media (max-width: 860px){ .grid-3{ grid-template-columns: 1fr; } }

/* ---------------- Category cards ---------------- */
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.cat-card{
  background: var(--white); border:1px solid var(--line); padding: 26px 22px;
  border-radius: var(--radius); text-align:left;
  border-top: 4px solid var(--leiden-blue);
}
.cat-card .icon{ width:34px; height:34px; color: var(--leiden-blue); margin-bottom:16px; }
.cat-card h4{ font-size:1rem; margin-bottom:6px; }
.cat-card p{ font-size:0.88rem; color: var(--ink-soft); margin:0; }
@media (max-width: 860px){ .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .grid-4{ grid-template-columns: 1fr; } }

/* ---------------- Callout ---------------- */
.callout{
  border-left: 6px solid var(--oranje); background: var(--white);
  padding: 20px 24px; font-size:0.92rem; color: var(--ink-soft);
}

/* ---------------- CTA banner ---------------- */
.cta-banner{
  background: var(--leiden-blue); color: var(--white); padding: 72px 0; text-align:center;
}
.cta-banner h2{ color: var(--white); }
.cta-banner p{ color: rgba(255,255,255,0.78); max-width:480px; margin:0 auto 28px; }

/* ---------------- Footer ---------------- */
footer{ background: var(--leiden-blue); color: rgba(255,255,255,0.7); padding: 56px 0 28px; border-top: 6px solid var(--oranje); }
footer .foot-grid{
  display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px;
}
footer h5{ color: var(--white); font-family: var(--body); font-size:0.85rem; letter-spacing:0.05em; text-transform:uppercase; margin-bottom:16px; }
footer li{ margin-bottom:10px; font-size:0.92rem; }
footer a:hover{ color: var(--white); }
footer .foot-bottom{
  border-top:1px solid rgba(255,255,255,0.14); padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem;
}
@media (max-width: 760px){ footer .foot-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------------- Page header ---------------- */
.page-header{ padding: 64px 0 48px; background: var(--leiden-blue); border-bottom: 6px solid var(--oranje); }
.page-header h1{ color: var(--canal-mist); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p{ color: #b8cee8; max-width: 560px; font-size:1.05rem; }
.page-header .eyebrow{ color: #f5b68a; }
.page-header .eyebrow::before{ background: #f5b68a; }

/* ---------------- Filters ---------------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 40px; }
.filter-chip{
  font-family: var(--mono); font-size:0.82rem; padding: 8px 16px; border-radius:999px;
  border:2px solid #a0b8d0; background: var(--white); cursor:pointer; transition: all .15s ease;
}
.filter-chip.active, .filter-chip:hover{ background: var(--leiden-blue); color:var(--white); border-color: var(--leiden-blue); }

/* ---------------- Article detail ---------------- */
.article-header{ padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: var(--leiden-blue); }
.article-header h1{ color: var(--canal-mist); font-size: clamp(2rem, 4vw, 2.6rem); max-width: 760px; }
.article-meta{ display:flex; gap:16px; align-items:center; font-family:var(--mono); font-size:0.82rem; color: #b8cee8; margin-top:20px; }
.article-body{ max-width: 700px; padding: 48px 0; }
.article-body h2{ font-size:1.4rem; margin-top:2em; }
.article-body p{ color: var(--ink); font-size:1.03rem; }
.article-body .disclaimer{
  background: var(--delft-tint); border-radius: var(--radius); padding: 18px 22px;
  font-size:0.92rem; color: var(--ink-soft); margin-bottom: 2em;
}

/* ---------------- Utility ---------------- */
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.mt-lg{ margin-top: 48px; }
.small-note{ font-size:0.82rem; color: var(--ink-soft); }
