@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap");

:root {
  --bg: #fff;
  --surface-soft: #f7f5fb;
  --border: rgba(92, 43, 130, .14);
  --text: #1f2544;
  --muted: #4f5878;
  --primary: #5c2b82;
  --primary-dark: #3f1c62;
  --teal: #138b98;
  --blue: #2f4aa0;
  --accent: #d7a441;
  --shadow: 0 18px 40px rgba(31, 37, 68, .08);
  --shadow-hover: 0 24px 50px rgba(47, 74, 160, .15);
  --container: 1280px;
  --gutter: 48px;
  --heading: "Manrope", "Avenir Next", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body, button, select { font-family: var(--body); }
h1, h2, h3, .eyebrow, .nav-links, .button, .filter-label, .result-count, .post-type { font-family: var(--heading); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.container { width: min(calc(100% - var(--gutter)), var(--container)); margin: 0 auto; }
.site-shell { overflow: hidden; }

.topbar, .site-header { position: relative; z-index: 20; padding: 30px 0 18px; background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.42) 72%, rgba(255,255,255,0)); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 90px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--text); font-size: .96rem; font-weight: 600; letter-spacing: -.02em; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 600; letter-spacing: -.02em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31,37,68,.12); }
.button-primary { color: #fff; background: var(--primary); }

.news-hero { position: relative; min-height: 510px; display: grid; align-items: center; overflow: hidden; background: #ede7f3; }
.news-hero::before { content: ""; position: absolute; inset: 0; background: url("../images/news-hero.png") center / cover no-repeat; transform: scale(1.02); }
.news-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 35%, rgba(255,255,255,.73) 50%, rgba(255,255,255,.15) 72%, rgba(255,255,255,.02) 100%), linear-gradient(0deg, rgba(38,18,75,.08), transparent 42%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; padding: 70px 0 88px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; color: var(--primary); font-size: clamp(3.4rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy p { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.8; }

.archive-section { position: relative; padding: 88px 0 105px; }
.archive-section::before { content: ""; position: absolute; top: 0; right: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(19,139,152,.09), transparent 68%); pointer-events: none; }
.archive-intro { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 42px; }
.archive-heading { max-width: 700px; }
.archive-heading h2 { margin-bottom: 13px; color: var(--primary); font-size: clamp(2.2rem, 4vw, 3.55rem); line-height: 1.04; letter-spacing: -.055em; }
.archive-heading p { margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.linkedin-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.filter-panel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 34px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: rgba(247,245,251,.82); box-shadow: 0 10px 26px rgba(31,37,68,.05); }
.filter-control { display: flex; align-items: center; gap: 16px; }
.filter-label { color: var(--text); font-size: .9rem; font-weight: 800; }
.select-wrap { position: relative; min-width: 190px; }
.select-wrap::after { content: ""; position: absolute; top: 50%; right: 18px; width: 8px; height: 8px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
#year-filter { width: 100%; min-height: 50px; padding: 0 46px 0 17px; border: 1px solid rgba(92,43,130,.28); border-radius: 12px; color: var(--text); background: #fff; font-weight: 700; appearance: none; cursor: pointer; outline: none; }
#year-filter:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(92,43,130,.12); }
.result-count { color: var(--muted); font-size: .91rem; font-weight: 700; }
.result-count strong { color: var(--primary); }

.posts-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(31,37,68,.055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(92,43,130,.3); box-shadow: var(--shadow-hover); }
.post-image { position: relative; height: 228px; overflow: hidden; background: linear-gradient(135deg, #e8e0f0, #dcecf0); }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-image img { transform: scale(1.035); }
.post-image.contain img { object-fit: contain; padding: 22px; background: #f8f7fb; }
.post-image.placeholder { display: grid; place-items: center; isolation: isolate; }
.post-image.placeholder::before { content: "SMC"; color: rgba(255,255,255,.72); font: 800 4.4rem var(--heading); letter-spacing: -.09em; }
.post-image.placeholder::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, var(--primary), #465bb1 62%, var(--teal)); }
.post-body { display: flex; flex-direction: column; min-height: 310px; padding: 27px 28px 29px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.post-type { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px; color: var(--primary); background: #f1eaf6; font-size: .71rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.post-type.speech { color: #0c7480; background: #e6f4f5; }
.post-type.event { color: #795316; background: #fbf2de; }
.post-date { color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.post-card h3 { margin-bottom: 14px; color: var(--text); font-size: 1.25rem; line-height: 1.35; letter-spacing: -.035em; }
.post-excerpt { display: -webkit-box; margin-bottom: 24px; overflow: hidden; color: var(--muted); font-size: .92rem; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; color: var(--primary); font-weight: 800; font-size: .9rem; }
.post-link span { transition: transform .18s ease; }
.post-link:hover span, .post-link:focus-visible span { transform: translateX(4px); }
.post-link:focus-visible { outline: 3px solid rgba(92,43,130,.2); outline-offset: 4px; border-radius: 3px; }
.empty-state { display: none; padding: 64px 24px; border: 1px dashed rgba(92,43,130,.28); border-radius: 22px; color: var(--muted); background: var(--surface-soft); text-align: center; }

.site-footer { width: 100%; padding: 46px max(32px, calc((100vw - var(--container)) / 2)) 28px; color: rgba(255,255,255,.88); background: linear-gradient(90deg, #26124b 0%, #2e1960 45%, #341f72 100%); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.12fr; gap: 28px; }
.footer-column { display: flex; flex-direction: column; gap: 11px; }
.footer-brand img { width: 122px; margin-bottom: 13px; }
.footer-brand-copy { max-width: 245px; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; }
.footer-title { margin-bottom: 4px; color: #fff; font-size: .95rem; font-weight: 800; }
.footer-links { display: grid; gap: 9px; color: rgba(255,255,255,.77); font-size: .88rem; }
.footer-links a:hover { color: #fff; }
.footer-meta { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.62); font-size: .84rem; }
.footer-meta-links { display: flex; flex-wrap: wrap; gap: 14px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .nav { flex-wrap: wrap; gap: 18px; }
  .nav-links { order: 3; width: 100%; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .archive-intro { display: block; }
}
@media (max-width: 680px) {
  :root { --gutter: 28px; }
  .topbar { padding-top: 16px; padding-bottom: 12px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 82px; }
  .nav-actions { width: 100%; margin-left: 0; }
  .nav-actions .button { width: 100%; }
  .news-hero { min-height: 590px; background-position: 68% center; }
  .news-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92) 55%, rgba(255,255,255,.5)); }
  .hero-grid { padding: 52px 0 78px; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.25rem); }
  .archive-section { padding: 70px 0 82px; }
  .filter-panel, .filter-control { align-items: stretch; flex-direction: column; }
  .filter-panel { gap: 14px; }
  .filter-control { gap: 9px; }
  .select-wrap { width: 100%; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-image { height: 215px; }
  .post-body { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-right: 22px; padding-left: 22px; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}
