:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --ink: #102033;
  --muted: #526174;
  --accent: #0b5f73;
  --accent-2: #086b67;
  --accent-soft: #e7f5f4;
  --border: #dbe4ee;
  --shadow: 0 4px 18px rgba(16, 32, 51, 0.045);
  --radius: 12px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 143, 138, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 6%, rgba(11, 95, 115, 0.12), transparent 28rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

main {
  padding: 44px 18px 82px;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 12px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  max-width: 760px;
}

.tagline {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 8px;
}

.site-header {
  align-items: center;
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.86);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px 26px;
  position: relative;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 12px;
  min-width: 240px;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(11, 95, 115, 0.22);
  height: 40px;
  position: relative;
  width: 40px;
}

.brand-mark::after {
  background: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  content: "";
  height: 14px;
  left: 13px;
  position: absolute;
  top: 13px;
  width: 14px;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.site-nav a {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  padding: 8px 11px;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(11, 95, 115, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 11px 17px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  box-shadow: 0 18px 42px rgba(11, 95, 115, 0.26);
  color: #ffffff;
  transform: translateY(-1px);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--border);
  box-shadow: none;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  margin: 0 auto 34px;
  max-width: var(--max-width);
}

.hero-copy,
.hero-panel,
.section,
.page-hero,
.prose {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 228, 238, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 58px);
}

.hero-highlights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.highlight {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px;
}

.highlight .value {
  font-size: 1.45rem;
  font-weight: 900;
}

.highlight .label {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  background: linear-gradient(160deg, rgba(231, 245, 244, 0.96), rgba(255, 255, 255, 0.9));
  padding: clamp(24px, 4vw, 38px);
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.panel-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.panel-list li {
  border-top: 1px solid rgba(11, 95, 115, 0.14);
  font-weight: 650;
  padding: 12px 0 12px 24px;
  position: relative;
}

.panel-list li::before {
  background: var(--accent-2);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 20px;
  width: 8px;
}

.section {
  margin: 0 auto 28px;
  max-width: var(--max-width);
  padding: clamp(24px, 4vw, 38px);
}

.section-feature {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 245, 244, 0.68));
}

.section-header {
  margin-bottom: 22px;
}

.section-grid.two,
.card-grid.two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.link-card {
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
  border-color: rgba(23, 143, 138, 0.48);
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.08);
  color: var(--ink);
  transform: translateY(-2px);
}

.card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 900;
}

.card-arrow {
  color: var(--accent-2);
  font-size: 1.4rem;
  font-weight: 900;
}

.cta-card {
  align-items: center;
  background: var(--accent);
  border-radius: var(--radius);
  color: #ffffff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 34px);
}

.cta-card h3,
.cta-card .eyebrow,
.cta-card p {
  color: #ffffff;
}

.cta-card .button {
  background: #ffffff;
  color: var(--accent);
}

.cta-card .button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.58);
  color: #ffffff;
}

.page {
  margin: 0 auto;
  max-width: var(--max-width);
}

.page-hero {
  margin-bottom: 22px;
  padding: clamp(28px, 5vw, 54px);
}

.prose {
  padding: clamp(24px, 4vw, 42px);
}

.prose h2 {
  border-top: 1px solid var(--border);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  margin-top: 34px;
  padding-top: 28px;
}

.prose h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.prose h3 {
  font-size: 1.18rem;
  margin-top: 24px;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 8px;
}

.prose ul {
  margin: 12px 0 22px;
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 9px;
}

.prose strong {
  color: var(--ink);
  font-weight: 850;
}

.prose img {
  border-radius: 16px;
  display: block;
  height: auto;
  margin: 24px auto;
  max-width: min(100%, 760px);
  width: 100%;
}

.prose img.inline-image-small {
  max-width: min(100%, 360px);
}

.prose img.inline-image-medium {
  max-width: min(100%, 560px);
}

.prose img.inline-image-large {
  max-width: min(100%, 920px);
}

.prose code {
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.92em;
  padding: 0.12rem 0.32rem;
}

.prose pre {
  background: var(--ink);
  border-radius: 14px;
  color: #ffffff;
  overflow-x: auto;
  padding: 18px;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.news-layout {
  display: grid;
  gap: 22px;
}

.news-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-image-link {
  display: block;
}

.news-image {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.news-card-body {
  padding: 22px;
}

.news-card h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.news-card h2 a {
  color: var(--ink);
}

.text-link {
  font-weight: 850;
}

.empty-state {
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.empty-state h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.empty-state code {
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  padding: 0.12rem 0.32rem;
}

.site-footer {
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto 38px;
  max-width: var(--max-width);
  padding: 22px 24px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .news-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  main {
    padding: 26px 12px 60px;
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    font-size: 0.86rem;
    padding: 7px 8px;
  }

  .hero-highlights,
  .section-grid.two,
  .card-grid.two {
    grid-template-columns: 1fr;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Page imagery is optional; text stays on its own readable surface. */
.page-banner { margin: 0 0 22px; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.page-banner img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 5; object-fit: cover; }
.page-banner figcaption { padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.prose { overflow-wrap: anywhere; }
.prose > p, .prose > ul, .prose > ol { max-width: 75ch; }
.prose a { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #173f6b; outline-offset: 4px; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.brand-mark { flex-shrink: 0; }
.hero-copy, .hero-panel { min-width: 0; }
.back-link { display: inline-block; margin-bottom: 18px; }
.talks-intro { margin-bottom: 22px; }
.talk-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 22px 0 0; }
.talk-meta dt { font-weight: 700; }
.talk-meta dd { margin: 0; color: var(--muted); }
.talk-audience { color: var(--muted); }
.slide-preview { padding: clamp(18px, 3vw, 32px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.slide-preview h2 { font-size: 1.5rem; margin-bottom: 12px; }
.slide-preview p { max-width: 75ch; color: var(--muted); }
.slide-preview iframe { display: block; border: 1px solid var(--border); width: 100%; aspect-ratio: 16 / 9; margin-top: 20px; background: #fff; }
@media (max-width: 720px) {
  .page-banner img { aspect-ratio: 2 / 1; }
  .site-footer { margin-left: 12px; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shared image-and-title header for Talks and professional content pages. */
.joined-hero { padding: 0; overflow: hidden; }
.joined-hero .page-banner { margin: 0; border-radius: 0; }
.joined-hero-copy { padding: clamp(24px, 3vw, 38px); }
.joined-hero-copy h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); margin-bottom: 12px; }
.joined-hero-copy .lead { margin: 0; max-width: 68ch; }
