/* ============================================================
   Stony Brook AMS Workshops — shared stylesheet
   Used by the hub page and every individual workshop page.
   Edit colors/fonts here once and every page updates.
   ============================================================ */

:root {
  --sbu-red: #990000;
  --sbu-red-dark: #6f0000;
  --ink: #1f2328;
  --muted: #5b636b;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --max: 1040px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 20px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }

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

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
  gap: 8px;
}
.brand { font-weight: 700; letter-spacing: .2px; color: var(--ink); }
.brand span { color: var(--sbu-red); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--sbu-red); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--sbu-red) 0%, var(--sbu-red-dark) 100%);
  color: #fff;
  padding: 76px 0 64px;
}
.hero .container { max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  opacity: .85;
  margin: 0 0 12px;
}
.hero h1 { font-size: 2.6rem; margin: 0 0 14px; color: #fff; }
.hero .lede { font-size: 1.2rem; opacity: .95; margin: 0 0 26px; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 1rem; opacity: .95; margin-bottom: 30px;
}
.hero-meta .label { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; opacity: .75; margin-bottom: 2px; }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--sbu-red);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid #fff;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Muted / "coming soon" button — visible but not yet active */
.btn-muted {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.25);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-muted.btn-dark {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line);
}

/* ---------- Sections ---------- */
section { padding: 60px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
section h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  display: inline-block;
}
section .section-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- Program / schedule ---------- */
.schedule { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; }
.slot {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.slot:last-child { border-bottom: none; }
.slot:nth-child(odd) { background: var(--bg-soft); }
.slot .time { color: var(--sbu-red); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot .title { font-weight: 600; }
.slot .who { color: var(--muted); font-size: 15px; }

/* ---------- Cards (speakers / organizers) ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--sbu-red); font-size: 22px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.card .role { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Email (mailto) links ---------- */
a[href^="mailto:"] { color: #1a56db; }
a[href^="mailto:"]:hover { color: #123fa8; }

/* ---------- Topics list ---------- */
.topics {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 28px;
}
.topics li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
}
.topics li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  background: var(--sbu-red);
  border-radius: 50%;
}

/* ---------- Info / directions ---------- */
#directions a { color: #1a56db; }
#directions a:hover { color: #123fa8; }

.info-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .info-grid { grid-template-columns: 1fr; } }
.info-grid h3 { margin: 0 0 6px; font-size: 1.1rem; }

/* ---------- Registration form ---------- */
.form-wrap { max-width: 620px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--sbu-red); }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
}
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}
.field input[type="file"] { font-family: inherit; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sbu-red);
  box-shadow: 0 0 0 3px rgba(153,0,0,.12);
}
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--sbu-red); }
.form-submit {
  background: var(--sbu-red); color: #fff; font-weight: 600; font-size: 16px;
  padding: 12px 30px; border: none; border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease;
}
.form-submit:hover { background: var(--sbu-red-dark); }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-status { margin-top: 16px; font-weight: 500; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: var(--sbu-red); }

/* ---------- Callout ---------- */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sbu-red);
  border-radius: var(--radius);
  padding: 22px 24px;
}

/* ---------- Hub page workshop list ---------- */
.workshop-list { display: grid; gap: 18px; }
.workshop-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; background: var(--bg);
  box-shadow: var(--shadow); transition: transform .08s ease;
}
.workshop-item:hover { transform: translateY(-2px); }
.workshop-item h3 { margin: 0 0 4px; }
.workshop-item .when { color: var(--muted); font-size: 15px; }
.badge {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
}
.badge-upcoming { background: #e8f5e9; color: #2e7d32; }
.badge-past { background: var(--bg-soft); color: var(--muted); }

/* ---------- Placeholder marker ---------- */
.tbd { color: #b26a00; background: #fff5e6; padding: 0 6px; border-radius: 4px;
  font-style: italic; font-size: .95em; }

/* ---------- Footer ---------- */
.site-footer {
  background: #14171a; color: #aeb6bd; padding: 36px 0; font-size: 14px;
}
.site-footer a { color: #fff; }
.site-footer .container { display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .slot { grid-template-columns: 1fr; gap: 4px; }
}
