/* ============================================================
   TEMBA AI Club
   Editorial: warm paper, one accent, hairline rules, real type.
   ============================================================ */

:root {
  --paper:      #FAF8F3;
  --paper-2:    #F3F0E8;
  --ink:        #1A1915;
  --ink-soft:   #45423A;
  --muted:      #86816F;
  --rule:       #E2DDD0;
  --rule-soft:  #EDE9DE;
  --accent:     #BF5700;   /* burnt orange */
  --accent-dim: #A64B00;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ext {
  font-size: 0.72em;
  margin-left: 0.28em;
  vertical-align: 0.12em;
  color: var(--muted);
}

.dot { color: var(--rule); margin: 0 0.5em; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;                 /* let it shrink instead of pushing the page wide */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a { white-space: nowrap; }

.nav a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 76px;
  padding-bottom: 78px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.3rem, 9.5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.018em;
  margin: 14px 0 0;
}

.lede {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 18px auto 0;
}

.standing {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 20px;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .ext, .btn:hover .jump { color: var(--paper); }

/* Same weight as .ext, but pointing down the page rather than off it. */
.jump {
  font-size: 0.78em;
  margin-left: 0.34em;
  color: var(--muted);
}

/* The join and contact buttons sit side by side, and drop to one
   per line when there isn't room. */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn-row .btn { margin-top: 0; }

/* A quieter second row — same shape, less weight than the two joins. */
.btn-row--sub { margin-top: 12px; }

.btn-soft {
  border-color: var(--rule);
  color: var(--ink-soft);
}

.hero-mark { margin-bottom: 26px; }

/* The PNG carries its own alpha — no plate behind it, or we'd be
   painting back the black background we're trying to avoid. */
.hero-mark img {
  display: block;
  width: 196px;
  height: 196px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-mark img:hover {
  transform: scale(1.04);
}

/* ---------- Next meeting ---------- */
.next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 26px 30px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.next-when {
  display: grid;
  justify-items: center;
  line-height: 1;
  padding-right: 34px;
  border-right: 1px solid var(--rule);
  min-width: 92px;
}

.next-month {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.next-day {
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 4px 0 3px;
}

.next-weekday {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.next-what h2 {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 7px 0 6px;
}

.next-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.next-count {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}

/* ---------- Speakers ---------- */
.speakers-block {
  max-width: 700px;
  margin: 46px auto 0;
}

.speakers-head {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.speaker { border-bottom: 1px solid var(--rule); }

.speaker summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  cursor: pointer;
  list-style: none;
}

.speaker summary::-webkit-details-marker { display: none; }
.speaker summary:hover .sp-name { color: var(--accent); }

.sp-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  transition: color 0.15s;
}

.sp-name::after {
  content: "+";
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 9px;
}

.speaker[open] .sp-name::after { content: "–"; }

.sp-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.sp-bio {
  padding: 2px 2px 26px;
}

.sp-bio p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.sp-bio p + p { margin-top: 11px; }

/* ---------- Sections ---------- */
.section { padding-top: 84px; }

.section-head {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 8px;
  text-align: center;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 2.05rem;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-top: 5px;
}

.section-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 34px;
  text-align: center;
}

/* ---------- Calendar ---------- */
/* Flex rather than grid: a wrapped last month centres itself instead of
   sitting alone against the left edge. */
.calendar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 34px;
}

/* ---------- Day popover ---------- */
.cal-pop {
  position: absolute;
  z-index: 20;
  transform: translate(-50%, -100%);
  min-width: 150px;
  max-width: 232px;
  padding: 10px 13px 11px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(26, 25, 21, 0.09);
  pointer-events: none;
  text-align: left;
}

.cal-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 7px;
  height: 7px;
  margin-left: -4px;
  background: #fff;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transform: rotate(45deg);
}

.pop-topic {
  font-family: var(--serif);
  font-size: 0.96rem;
  line-height: 1.32;
  color: var(--ink);
}

.pop-meta {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}

.cal-month { flex: 1 1 200px; max-width: 290px; }

.cal-month-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--rule);
}

.cal-wds, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 0;
}

.cal-wd {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 7px;
}

.cal-day {
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  border-radius: 50%;
}

.cal-day.empty { visibility: hidden; }

.cal-day.marked { cursor: pointer; font-weight: 500; }

.cal-day.marked:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cal-day.is-pinned { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.is-next.is-pinned { box-shadow: inset 0 0 0 2px var(--ink); }

.cal-day.is-next {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cal-day.is-upcoming {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
}

.cal-day.is-past {
  background: var(--rule);
  color: var(--ink-soft);
}

.cal-day.is-break {
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin-top: 34px;
  font-size: 0.74rem;
  color: var(--muted);
}

.legend li { display: flex; align-items: center; gap: 7px; }

.key {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.key-next     { background: var(--accent); }
.key-upcoming { box-shadow: inset 0 0 0 1.5px var(--accent); }
.key-past     { background: var(--rule); }
.key-break    { box-shadow: inset 0 0 0 1px var(--rule); }

/* ---------- News ---------- */
/* Column is centred on the page; the text inside stays left-aligned
   so every line starts at the same place — centred body copy is
   markedly harder to read. */
.news {
  border-top: 1px solid var(--rule);
  max-width: 700px;
  margin: 0 auto;
}

.news-week { border-bottom: 1px solid var(--rule); }

.news-week-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 2px;
  cursor: pointer;
  user-select: none;
}

.news-week-header:hover .news-date { color: var(--accent); }

.news-date {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.tag-latest {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 10px;
  vertical-align: 0.16em;
}

.news-toggle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
}

.news-week-body {
  display: none;
  padding: 4px 2px 30px;
}

.news-week.open .news-week-body { display: block; }

.nw-item {
  display: flex;
  gap: 15px;
  margin-top: 17px;
}

.nw-num {
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  min-width: 20px;
  text-align: right;
  padding-top: 0.42em;
  flex-shrink: 0;
}

.nw-body {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.nw-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.nw-body a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.nw-body strong { font-weight: 600; color: var(--ink); }

.nw-body ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.nw-body li {
  margin-bottom: 4px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.nw-body li::marker { color: var(--rule); }

.nw-body li > ul {
  margin: 4px 0 7px 16px;
  list-style-type: circle;
}

.nw-body li li > ul { list-style-type: square; }

/* ---------- Resources ---------- */
.resources {
  border-top: 1px solid var(--rule);
  max-width: 700px;
  margin: 0 auto;
}

.resource {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left 0.18s;
}

.resource:hover { padding-left: 8px; }
.resource:hover .rc-label { color: var(--accent); }

.rc-label {
  font-family: var(--serif);
  font-size: 1.08rem;
  transition: color 0.15s;
}

.rc-meta {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.empty-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  padding: 18px 0;
}

/* ---------- Contact ---------- */
.leads {
  max-width: 700px;
  margin: 36px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}

.leads-part + .leads-part {
  margin-top: 30px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.leads-intro {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto;
}

.leads-intro + .lead-group { margin-top: 20px; }

.leads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 20px;
}

.lead-program {
  text-align: center;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.lead-list {
  list-style: none;
}

/* TEMBA sits across the full width — one rule under the label, names abreast. */
.lead-list--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 34px;
}

.lead-list li {
  text-align: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule-soft);
}

/* The part separator closes the TEMBA block — a segmented rule above it reads as noise. */
.lead-list--row li { border-bottom: none; padding-bottom: 0; }

/* Name links to LinkedIn, email opens mail — two targets, one row. */
.lead-name {
  display: block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

a.lead-name:hover { color: var(--accent); }

.lead-email {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  text-decoration: none;
  transition: color 0.15s;
}

.lead-email:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--rule);
  padding: 26px 0 40px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .calendar { gap: 38px 34px; }

  /* Slightly tighter day circles keep all three months on one row here —
     a month can't shrink below 7 × the circle width. */
  .cal-day { width: 27px; height: 27px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 22px; }

  .hero {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-mark { margin-bottom: 24px; }
  .hero-mark img { width: 128px; height: 128px; }

  .next {
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 22px;
  }

  .next-when { padding-right: 22px; min-width: 74px; }
  .next-day { font-size: 2.5rem; }

  .next-count {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
  }

  .calendar { gap: 30px; }
  .cal-month { flex-basis: 100%; }
  .leads-grid { grid-template-columns: 1fr; gap: 26px; }

  /* Stacked, the TEMBA names need the same rhythm as the other columns. */
  .lead-list--row { grid-template-columns: 1fr; }
  .lead-list--row li { border-bottom: 1px solid var(--rule-soft); padding-bottom: 13px; }
  .lead-list--row li:last-child { border-bottom: none; padding-bottom: 0; }
  .section { padding-top: 62px; }
  .section-head h2 { font-size: 1.75rem; }

  .masthead-inner { gap: 14px; }
  .nav { gap: 12px; }
  .nav a { font-size: 0.78rem; }
  .nav .ext { display: none; }
  .wordmark span { display: none; }
}

/* Five nav links don't fit a phone at the 680px sizing, so tighten once more
   rather than let the last one sit clipped in the scroller. */
@media (max-width: 430px) {
  .masthead-inner { gap: 10px; }
  .nav { gap: 9px; }
  .nav a { font-size: 0.74rem; }
}
