/* ==========================================================
   Variables — change the accent color here if you want to adjust it
   ========================================================== */
:root {
  --navy: #10253F;
  --navy-light: #1B3A5C;
  --accent: #2C5282;
  --bg: #FAFAF8;
  --bg-alt: #F1F0EB;
  --text: #1F2937;
  --text-muted: #5B6472;
  --border: #E4E1D8;
  --radius: 10px;
  --max-width: 1100px;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--navy); }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: .5em 1.2em; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logo { font-family: var(--font-heading); font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: .5em 1.2em; border-radius: 999px;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width); margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.hero-inner { flex: 1; max-width: 620px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero-text { font-size: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-avatar {
  flex-shrink: 0;
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
  object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(16,37,63,.18);
}

/* ---------- Gallery ---------- */
.gallery { padding: 1rem 0 3rem; }
.gallery-track {
  display: flex; gap: 1rem; overflow-x: auto; padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory;
}
.gallery-item {
  flex: 0 0 220px; scroll-snap-align: start; margin: 0;
}
.gallery-item span {
  display: flex; align-items: center; justify-content: center;
  height: 150px; background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--text-muted); font-size: .9rem;
}
.gallery-item figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.gallery-hint { text-align: center; font-size: .8rem; color: var(--text-muted); padding: 0 1.5rem; }

/* ---------- Generic sections ---------- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 4rem 1.5rem; }
.section-label {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  color: var(--accent); font-weight: 600; margin-bottom: .4rem;
}
.section h2 { font-size: 2rem; margin-bottom: 2rem; }
.section-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }

/* ---------- About ---------- */
.about-photo {
  aspect-ratio: 4/5; background: var(--bg-alt); border: 1px dashed var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
img.about-photo {
  width: 100%; object-fit: cover; border: none;
  box-shadow: 0 8px 24px rgba(16,37,63,.15);
}
.credentials { list-style: none; padding: 0; margin-top: 1.5rem; display: grid; gap: .6rem; }
.credentials li {
  padding-left: 1.4rem; position: relative; color: var(--text);
}
.credentials li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
}

/* ---------- Publications ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.pub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.pub-cover {
  height: 160px; background: var(--bg-alt); border-radius: calc(var(--radius) - 4px);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  margin-bottom: 1rem; font-size: .9rem;
}
img.pub-cover { width: 100%; object-fit: cover; }
.link-arrow { text-decoration: none; font-weight: 600; color: var(--navy); font-size: .9rem; }

/* ---------- Publication article ---------- */
.article-page { background: var(--bg); }
.article-page .site-header { position: sticky; }
.article-hero, .article-body { max-width: 800px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.article-hero { padding-top: 4.5rem; padding-bottom: 2.5rem; }
.article-kicker { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.12; max-width: 760px; }
.article-dek { font-size: 1.25rem; max-width: 650px; margin: 1.2rem 0; }
.article-byline { color: var(--text); font-weight: 600; }
.article-body { padding-bottom: 4.5rem; }
.article-body h2 { font-size: 1.75rem; margin: 3rem 0 1rem; }
.article-body h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article-body p, .article-body li { font-size: 1.03rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: .45rem; color: var(--text-muted); }
.article-figure { margin: 2.5rem 0; }
.article-figure img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,37,63,.14); }
.article-figure.portrait img { max-width: 420px; margin: 0 auto; }
.article-figure figcaption { margin-top: .75rem; font-size: .86rem; color: var(--text-muted); }
.article-figure figcaption a { color: var(--accent); }
.article-quote { border-left: 4px solid var(--accent); margin: 2rem 0; padding: .4rem 0 .4rem 1.2rem; font-family: var(--font-heading); font-size: 1.25rem; color: var(--navy); }
.article-sources { padding-left: 1.2rem; }
.article-sources li { margin-bottom: .8rem; font-size: .9rem; }
.article-sources a { overflow-wrap: anywhere; }
.article-footer { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem 3.5rem; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .article-hero { padding-top: 3rem; }
  .article-dek { font-size: 1.1rem; }
  .article-body p, .article-body li { font-size: 1rem; }
}

/* ---------- Articles ---------- */
.article-list { display: grid; gap: 1.6rem; }
.article-row {
  padding: 1.6rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.article-tag {
  display: inline-block; background: var(--bg-alt); color: var(--accent);
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  padding: .25em .7em; border-radius: 999px; margin-bottom: .6rem;
}

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1rem; }
.event-row {
  display: flex; align-items: center; gap: 1.6rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.6rem;
}
.event-date {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--navy); color: #fff; border-radius: 8px; padding: .5rem 0;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; line-height: 1.1;
}
.event-date span { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .05em; }
.event-info { flex: 1; }
.event-info h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.event-info p { margin: 0; font-size: .9rem; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.video-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video-thumb {
  aspect-ratio: 16/9; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.video-card h3 { padding: 1rem; font-size: 1rem; margin: 0; }

/* ---------- Connect (incl. contact form, merged in) ---------- */
.exchanges { background: var(--navy); }
.exchanges-inner { max-width: 880px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; }
.section-label-light { color: #9FC0E8; }
.exchanges h2, .exchanges p { color: #fff; }
.exchanges p { color: #C9D6E6; }
.exchanges-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  text-align: left; margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.exchanges-col h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.newsletter-form input {
  padding: .8em 1.2em; border-radius: 999px; border: none; min-width: 220px; flex: 1; font-size: 1rem;
}
.social-links { display: flex; gap: 1.4rem; }
.social-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.social-links a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: .3rem; }
.contact-form label { font-size: .85rem; font-weight: 600; margin-top: .8rem; color: #C9D6E6; }
.contact-form input, .contact-form textarea {
  padding: .7em 1em; border: none; border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.contact-form button { margin-top: 1rem; justify-self: start; }
.contact-info { margin-top: 1.5rem; }
.contact-info h4 { font-size: .85rem; margin: 1rem 0 .2rem; color: #9FC0E8; }
.contact-info h4:first-child { margin-top: 0; }
.contact-info p { margin: 0; }
.contact-info a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem; max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.site-footer p { margin: 0; font-size: .85rem; }
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-nav a { font-size: .85rem; text-decoration: none; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .exchanges-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .card-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .hero { flex-direction: column-reverse; text-align: center; padding-top: 3rem; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav a { width: 100%; padding: .9rem 1.5rem; border-top: 1px solid var(--border); }
  .nav-cta { border-radius: 0; }
  .card-grid, .video-grid { grid-template-columns: 1fr; }
  .event-row { flex-wrap: wrap; }
}
