/* ───────────────────────────────────────────────────────────────────────────
   MEMSEC — Memphis Infosec Social
   Dark, refined stylesheet. Navy/slate + teal accent. Professional, not "hacker".
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0b1120;
  --surface: #131c2e;
  --surface-2: #1b263b;
  --border: #243049;
  --text: #e6ebf5;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.2;
  color: #fff;
  font-weight: 600;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #5eead4; text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
}
.section__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 12px;
}
.section__lede {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 20px;
  color: #fff;
}
.nav__brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.nav__links a:hover { background: var(--surface); color: #fff; text-decoration: none; }
.nav__links .nav__cta {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.nav__links .nav__cta:hover { background: var(--accent); color: #06231f; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 2px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(45, 212, 191, 0.10), transparent 70%),
    var(--bg);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero__title em { color: var(--accent); font-style: normal; }
.hero__sub { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #06231f; }
.btn--primary:hover { background: #5eead4; color: #06231f; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); color: #fff; }

/* ─── Featured (next meetup) ─────────────────────────────────────────────── */
.featured {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.featured__card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.featured__meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  color: var(--muted); font-size: 14px; margin-bottom: 10px;
}
.featured__date { color: var(--accent); font-weight: 600; }
.featured__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 4px 0 12px; }
.featured__desc { color: #cdd6e6; }
.featured__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── About ──────────────────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.about__card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--accent); }
.about__card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ─── Events grid ────────────────────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .events-grid { grid-template-columns: 1fr; } }

.card.event {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card.event:hover { border-color: rgba(45, 212, 191, 0.4); transform: translateY(-2px); }
.event__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 8px; flex-wrap: wrap;
}
.event__date {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; color: var(--accent); font-size: 15px;
}
.event__tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.event__tags li {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px;
}
.event__title { font-size: 1.2rem; margin: 0 0 6px; }
.event__speaker { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.event__desc { color: #c3ccdd; font-size: 15px; }
.event__desc p:first-child { margin-top: 0; }
.event__desc p:last-child { margin-bottom: 0; }
.event__desc ul { padding-left: 1.2em; }
.event__link { margin-top: 16px; font-size: 14px; }

/* ─── Affiliations strip ─────────────────────────────────────────────────── */
.affiliations {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.affiliations__title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12px; color: var(--muted); margin: 0 0 24px;
}
.affiliations__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  list-style: none; padding: 0; margin: 0;
}
.affiliations__list a {
  color: var(--text); font-weight: 500; font-size: 15px;
  opacity: 0.85; border-bottom: 1px solid transparent;
}
.affiliations__list a:hover { color: var(--accent); opacity: 1; border-bottom-color: var(--accent); text-decoration: none; }

/* ─── Resources page ─────────────────────────────────────────────────────── */
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.links-list li:last-child { border-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}
.panel h2 { margin-top: 0; }

.support__methods { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: #070b15;
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.footer__muted { color: var(--muted); font-size: 15px; }
.footer__col h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.footer__col a { display: block; color: var(--text); padding: 4px 0; font-size: 15px; }
.footer__col a:hover { color: var(--accent); text-decoration: none; }
.footer__bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ─── Speakers grid ───────────────────────────────────────────────────────── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
@media (max-width: 820px) { .speakers-grid { grid-template-columns: 1fr; } }

.card.speaker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.card.speaker:hover { border-color: rgba(45, 212, 191, 0.4); transform: translateY(-2px); }

.speaker__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.speaker__photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(45, 212, 191, 0.4);
  flex-shrink: 0;
}
.speaker__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.4);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.speaker__id { min-width: 0; }
.speaker__name { font-size: 1.15rem; margin: 0 0 2px; }
.speaker__title { margin: 0; font-size: 14px; color: var(--muted); }
.speaker__company { margin: 0; font-size: 13px; color: var(--muted); }
.speaker__count {
  display: inline-block;
  margin: 6px 0 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 999px;
}
.speaker__bio { color: #c3ccdd; font-size: 15px; }
.speaker__bio p:first-child { margin-top: 0; }
.speaker__bio p:last-child { margin-bottom: 0; }

.speaker__links {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.speaker__links li { font-size: 14px; }

.speaker__talks {
  list-style: none; margin: 16px 0 0; padding: 0;
  border-top: 1px solid var(--border);
}
.speaker__talks li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.speaker__talks li:last-child { border-bottom: 0; }
.speaker__talks time {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent); font-weight: 600;
  flex-shrink: 0;
}
.speaker__talk-title { color: var(--text); flex: 1 1 auto; min-width: 60%; }
.speaker__talk-link { font-size: 13px; }

