:root {
  --bg: #edf2f8;
  --bg-deep: #dde6f0;
  --surface: rgba(255, 255, 255, 0.64);
  --ink: #0f1722;
  --ink-soft: #5c6673;
  --line: rgba(15, 23, 34, 0.08);
  --accent-dark: #005bb8;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(71, 132, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.9), transparent 22rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, var(--bg-deep) 100%);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(720px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(28px) saturate(160%);
  background: rgba(248, 251, 255, 0.72);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-row,
.footer-row,
.section-header,
.hero-actions {
  display: flex;
  gap: 1rem;
}

.header-row,
.footer-row,
.section-header {
  align-items: center;
  justify-content: space-between;
}

.header-row {
  min-height: 4.75rem;
}

.brand,
h1,
h2,
h3 {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand {
  font-size: 1.16rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.site-nav a:not(.button) {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #111826;
  color: #f8fbff;
  border: 1px solid rgba(17, 24, 38, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #0c1220;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.button-small {
  min-height: 2.5rem;
  padding: 0 1rem;
}

.button-muted {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.button-muted:hover,
.button-muted:focus-visible {
  background: rgba(255, 255, 255, 0.92);
}

.hero {
  padding: 6rem 0 3.5rem;
}

.hero-grid,
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  align-items: start;
}

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

.hero-copy {
  padding: 3rem 0;
}

.hero-copy-tight {
  padding: 2rem 0 1rem;
  max-width: 60rem;
}

.hero-copy h1,
.narrow h1 {
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.detail-shell h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6.1vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 1.2rem 0 0;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.detail-meta span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-meta strong {
  font-weight: 600;
  color: var(--ink);
}

.lead,
.section-intro,
.footer-copy,
.meta-line,
.row-summary,
.panel p {
  color: var(--ink-soft);
}

.lead {
  max-width: 56rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.14rem, 2vw, 1.46rem);
  line-height: 1.55;
}

.hero-kicker {
  color: var(--ink-soft);
}

.hero-kicker {
  max-width: 52rem;
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.meta-line {
  font-size: 0.97rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin: 2rem 0 1.4rem;
}

.eyebrow,
.row-date {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.eyebrow {
  color: var(--accent-dark);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(140%);
}

.section h2,
.meetup-row h3,
.panel h3 {
  margin: 0 0 0.55rem;
  line-height: 1.1;
}

.section {
  padding: 2.4rem 0 5rem;
}

.section-accent {
  padding-top: 0;
}

.section-current {
  padding-top: 0;
}

.panel {
  padding: 1.55rem;
}

.fact-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.fact-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.fact-row dt {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-row dd {
  margin: 0;
  color: var(--ink-soft);
}

.meetup-list {
  display: grid;
  gap: 1rem;
}

.section-header-stack {
  align-items: flex-start;
}

.meetup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: var(--shadow-soft);
}

.meetup-row:hover,
.meetup-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.row-summary {
  margin: 0.3rem 0 0;
  max-width: 44rem;
}

.arrow {
  color: var(--ink-soft);
}

.detail-hero {
  padding-bottom: 1.9rem;
}

.detail-shell {
  max-width: 68rem;
}

.preview-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.preview-actions {
  margin-top: 1.5rem;
}

.prose {
  padding: 1.65rem;
}

.prose h2,
.prose h3 {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  color: var(--accent-dark);
}

.prose h2,
.prose h3 {
  letter-spacing: -0.03em;
}

.prose ul {
  padding-left: 1.25rem;
}

.simple-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.simple-nav a {
  color: var(--accent-dark);
}

.detail-main {
  min-width: 0;
}

.detail-agenda h2 + h3 {
  margin-top: 1.4rem;
}

.simple-home-card {
  max-width: 64rem;
}

.simple-home-card p:first-child {
  margin-top: 0;
}

.next-meetup-content {
  margin-top: 1rem;
}

.next-meetup-intro {
  max-width: 58rem;
  margin-bottom: 1.25rem;
}

.next-meetup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.next-meetup-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.next-meetup-block .preview-list {
  margin-top: 0.75rem;
}

.site-footer {
  padding: 2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

.footer-copy {
  margin: 0.25rem 0 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .simple-nav,
  .next-meetup-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-header,
  .footer-row {
    align-items: flex-start;
  }

}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .footer-row,
  .section-header,
  .section-header-stack,
  .simple-nav,
  .meetup-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-row {
    min-height: 4rem;
    padding: 0.95rem 0;
    gap: 0.75rem;
  }

  .site-nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 0.65rem;
    font-size: 0.88rem;
  }

  .site-nav a:not(.button),
  .brand {
    white-space: nowrap;
  }

  .site-nav .button-small {
    min-height: 2.2rem;
    padding: 0 0.8rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-copy h1,
  .narrow h1 {
    font-size: clamp(2.7rem, 16vw, 4.1rem);
  }

  .detail-shell h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.05rem);
    line-height: 0.95;
  }

  .detail-meta {
    display: flex;
    gap: 0.25rem 0.45rem;
    padding: 0.68rem 0.82rem;
    font-size: 0.8rem;
  }

  .detail-meta span {
    font-size: 0.64rem;
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .meetup-row {
    padding: 1rem;
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

@media (max-width: 420px) {
  .header-row {
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.02rem;
  }

  .site-nav {
    gap: 0.5rem;
    font-size: 0.84rem;
  }

  .site-nav .button-small {
    min-height: 2.05rem;
    padding: 0 0.72rem;
  }
}
