/* ── Urban AI — MSU ─────────────────────────────────────────── */

:root {
  color-scheme: light;

  --green:        #18453B;   /* MSU green */
  --green-700:    #0f2f28;
  --green-300:    #4a7d70;
  --accent:       #C8842B;   /* warm amber for callouts */
  --accent-soft:  #fdf3e3;
  --ink:          #16211f;
  --ink-soft:     #4d5b58;
  --ink-faint:    #7b8683;
  --rule:         #e2e7e5;
  --bg:           #ffffff;
  --bg-soft:      #f8faf9;
  --bg-tint:      #eff4f2;
  --radius:       10px;
  --shadow:       0 1px 2px rgba(22,33,31,.06), 0 8px 24px -12px rgba(22,33,31,.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }
.main { padding: 3rem 0 5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--green); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 2.5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.15rem; margin-top: 2rem; }
h4 { font-size: 1rem; margin-top: 1.5rem; color: var(--ink-soft); }

p, ul, ol { margin: 0 0 1.1rem; }
li + li { margin-top: .3rem; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.eyebrow {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 650; color: var(--green-300); margin: 0 0 .6rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-faint); font-size: .92rem; }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: var(--green); color: #fff; border-radius: 11px;
  font-family: var(--sans); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.12rem; }
.brand-text small { font-size: .8rem; color: var(--ink-faint); }

.nav { display: flex; gap: .15rem; flex-wrap: wrap; }
.nav a {
  padding: .45rem .7rem; border-radius: 7px; font-size: .92rem;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--bg-tint); color: var(--ink); }
.nav a.active { color: var(--green); background: var(--bg-tint); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: .8rem; }
  .nav.open { display: flex; }
  .masthead-inner { flex-wrap: wrap; }
}

/* ── Hero + page head ─────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1200px 400px at 12% -10%, color-mix(in srgb, var(--green) 14%, transparent), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  padding: 4.5rem 0 3.5rem;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 20ch; }

/* Partner logos, top right of the hero */
.hero-logos {
  position: absolute; top: -.35rem; right: 2px;
  display: flex; align-items: center; gap: 1.9rem;
}
.hero-logos a { display: block; line-height: 0; opacity: .92; transition: opacity .15s; }
.hero-logos a:hover { opacity: 1; }
.hero-logos img { display: block; width: auto; }
.logo-msu  { height: 80px; }
.logo-spdc { height: 72px; }
.logo-cmse { height: 78px; }

@media (max-width: 1080px) {
  .hero-logos { position: static; margin-bottom: 2rem; gap: 1.3rem; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .logo-msu { height: 56px; } .logo-spdc, .logo-cmse { height: 50px; }
}

/* Offered-by row at the foot of the home page */
.partners { display: grid; gap: 1.6rem 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.2rem 0 0; padding: 0; list-style: none; }
@media (max-width: 620px) { .partners { grid-template-columns: 1fr; gap: 1.3rem; } }
.partners li { margin: 0; font-size: .95rem; }
.partners strong { display: block; }
.partners span { color: var(--ink-faint); font-size: .88rem; }
.hero .lede { margin-bottom: 2rem; }

.hero-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem;
}
.hero-facts > div { background: var(--bg); padding: 1rem 1.1rem; display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span { font-size: .85rem; color: var(--ink-faint); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: .8rem; }
.hero-dates { font-size: .9rem; color: var(--ink-faint); margin: 0; }

.pagehead { background: var(--bg-soft); border-bottom: 1px solid var(--rule); padding: 3rem 0 2.2rem; }
.pagehead h1 { margin-bottom: .4rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: .68rem 1.3rem; border-radius: 8px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .95rem; border: 1px solid var(--green);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--bg-tint); color: var(--green); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }

/* ── Cards & grids ────────────────────────────────────────── */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; background: var(--bg); box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green-300); transform: translateY(-2px); }

.card-num {
  display: inline-block; font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; color: var(--green); background: var(--bg-tint);
  padding: .18rem .5rem; border-radius: 5px; margin-bottom: .6rem;
}
/* ── Tables ───────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; border-radius: var(--radius); border: 1px solid var(--rule); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: var(--bg-tint); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); border-bottom: 2px solid var(--rule); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }

/* ── Callouts ─────────────────────────────────────────────── */
.note, .warn, .tip {
  border-left: 4px solid var(--green-300); background: var(--bg-soft);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.warn { border-left-color: var(--accent); background: var(--accent-soft); }
.tip  { border-left-color: var(--green); }
.note p:last-child, .warn p:last-child, .tip p:last-child { margin-bottom: 0; }
.note strong:first-child, .warn strong:first-child, .tip strong:first-child { display: block; margin-bottom: .25rem; }

/* ── Tracks (no-code vs Colab) ────────────────────────────── */
.tracks { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin: 1.5rem 0 2rem; }
.track { border: 1px solid var(--rule); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: var(--bg); }
.track.track-b { border-top-color: var(--accent); }
.track h3 { margin-top: 0; display: flex; align-items: baseline; gap: .5rem; }
.track .badge { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: .16rem .45rem; border-radius: 4px; background: var(--bg-tint); color: var(--ink-soft); }

/* ── Meta row ─────────────────────────────────────────────── */
.meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.meta li {
  font-size: .82rem; color: var(--ink-soft); background: var(--bg-tint);
  padding: .28rem .7rem; border-radius: 999px; margin: 0;
}
.meta li strong { color: var(--ink); font-weight: 600; }

/* ── Timeline (schedule) ──────────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 2rem 0; border-left: 2px solid var(--rule); }
.timeline > li { position: relative; padding: 0 0 2rem 1.8rem; margin: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--bg);
}
.timeline h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.timeline .when { font-family: var(--mono); font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }

/* ── Misc ─────────────────────────────────────────────────── */
code { font-family: var(--mono); font-size: .88em; background: var(--bg-tint); padding: .12em .4em; border-radius: 4px; }
pre { background: var(--bg-tint); padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--rule); }
pre code { background: none; padding: 0; }
blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--rule); color: var(--ink-soft); font-style: italic; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }

.people { display: grid; gap: 2.8rem 2.6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .5rem; }
@media (max-width: 1080px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem 2.4rem; } }
@media (max-width: 700px)  { .people { grid-template-columns: 1fr; gap: 2.2rem; } }
.person img, .person .avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  background: var(--bg-tint); display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: var(--green-300); margin: 0 0 .85rem;
}
.person h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.person .role { font-size: .85rem; color: var(--ink-faint); margin-bottom: .7rem; }
.person p { margin: 0 0 .7rem; }
.person p:last-child { margin-bottom: 0; }

.prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .93rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--rule); padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.footer-grid strong { display: block; margin-bottom: .3rem; }
.footer-grid p { margin: .3rem 0; color: var(--ink-soft); }
.footer-legal { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.footer-legal p { margin: 0; color: var(--ink-faint); font-size: .85rem; }

@media print {
  .masthead, .site-footer, .hero-cta, .prevnext, .nav-toggle { display: none; }
  body { font-size: 11pt; } a { color: inherit; text-decoration: none; }
}

/* A destination that exists but has no URL yet — reads as a link, isn't one. */
.pending-link {
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
  color: var(--ink); font-weight: 600;
}
