/* =========================================================================
   May Institute Essentials 2026 — design system
   Fonts: Lato (headings) + Inter (body/UI)
   Palette: Northeastern red accent on a light, neutral base
   ========================================================================= */

:root {
  /* Color */
  --red: #c8102e;          /* Northeastern red, primary accent */
  --red-dark: #a00d25;     /* hover / active */
  --red-tint: #fbeaec;     /* very light red wash for surfaces */

  --ink: #1b1b1b;          /* headings / primary text */
  --body: #333739;         /* body text */
  --muted: #6b7280;        /* secondary text */

  --bg: #ffffff;           /* page background */
  --surface: #f6f7f8;      /* alternating section background */
  --surface-2: #eef0f2;    /* cards / subtle fills */
  --border: #e4e6e9;       /* hairlines */

  /* Type */
  --font-head: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);

  --nav-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
/* Keep images in the standard dynamic range so HDR photos don't make the
   rest of the page appear dimmed on HDR displays (progressive enhancement). */
img { dynamic-range-limit: standard; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
/* Subpage titles are <h1> for structure, but read at section-heading scale. */
.section__head h1,
.media__text h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--surface { background: var(--surface); }
.section__head { max-width: 46rem; margin-bottom: 2.5rem; }
.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.6rem;
}
.section__lead { font-size: 1.1rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.text-red { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(200, 16, 46, 0.22); }
.btn--primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(200, 16, 46, 0.32); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); box-shadow: 0 4px 12px rgba(200, 16, 46, 0.12); }
.btn--disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: #5b616c;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--border);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__name:hover { text-decoration: none; color: var(--ink); }
.brand__year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--red);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.nav__links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav__menu { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta { margin-left: 0.35rem; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.hero__meta .dot { color: var(--border); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red-tint);
  color: var(--red-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero__sub { font-size: 1.2rem; color: var(--muted); max-width: 42rem; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Secondary (converted) timezones under the hero times — clearly lighter weight */
.tz-alt { color: var(--muted); font-weight: 300; font-size: 0.95rem; margin: 0 0 1.75rem; }

/* ---------- Schedule ---------- */
.schedule { display: grid; gap: 1rem; }
.day {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.day__when { }
.day__date { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.day__dow { color: var(--muted); font-size: 0.9rem; }
.day__time { color: var(--muted); font-size: 0.85rem; margin-top: 0.35rem; }
.day__title { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; margin-bottom: 0.25rem; }
.day__track { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--red-dark); background: var(--red-tint); padding: 0.15rem 0.5rem; border-radius: 6px; margin-bottom: 0.5rem; }
.day__people { color: var(--muted); font-size: 0.95rem; }
.schedule__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.price {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.price__label { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.price__amount { font-family: var(--font-head); font-weight: 900; font-size: 2.5rem; color: var(--ink); margin: 0.5rem 0 0.25rem; }
.price__amount span { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.price__note { color: var(--muted); font-size: 0.95rem; }

/* Card hover: subtle lift + red highlight */
.day, .price { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.day:hover, .price:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.35);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 28px rgba(200, 16, 46, 0.12);
}

/* Registration includes list */
.includes { margin-top: 2.25rem; }
.includes h3 { font-size: 1.1rem; margin-bottom: 0.85rem; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; max-width: 44rem; }
.includes li { position: relative; padding-left: 1.65rem; color: var(--body); }
.includes li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.includes__note { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); max-width: 44rem; }

/* ---------- Speakers ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; align-items: start; }
.person { text-align: left; }
.person__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 0.9rem;
}
.person__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--muted);
  background: var(--surface-2);
}
.person__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: 0.15rem; }
.person__affil { color: var(--red-dark); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.6rem; }
.person__bio { color: var(--muted); font-size: 0.95rem; }

/* Wide variant (e.g. organizer) — photo beside text */
.person--wide { display: grid; grid-template-columns: 150px 1fr; gap: 1.5rem; align-items: start; }
.person--wide .person__photo { margin-bottom: 0; }
@media (max-width: 560px) {
  .person--wide { grid-template-columns: 1fr; }
  .person--wide .person__photo { max-width: 150px; }
}

/* ---------- Sponsors ---------- */
.sponsors { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem 2.25rem; margin-top: 1.5rem; }
.sponsors a { display: inline-flex; }
.sponsor-logo { width: auto; display: block; }
.sponsor-logo--khoury { height: 40px; }
.sponsor-logo--barnett { height: 54px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd2d6;
  padding-block: 3rem;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer__brand { font-family: var(--font-head); font-weight: 900; color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer h3 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); color: #9aa0a6; font-size: 0.85rem; }

/* ---------- Course pages ---------- */
.course { max-width: 46rem; }
.course h3 { font-size: 1.2rem; margin-top: 2.75rem; margin-bottom: 0.75rem; }
.course h3:first-of-type { margin-top: 0; }
.course ol, .course ul.steps { padding-left: 1.25rem; margin: 0 0 1rem; }
.course ol li, .course ul.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }

/* Inline + block code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--ink);
}
.code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.code code {
  display: block;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
}

/* Callout / note */
.callout {
  border-left: 3px solid var(--red);
  background: var(--red-tint);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--body);
}
.callout p:last-child { margin-bottom: 0; }

/* Resource links */
.reslinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.reslinks li { position: relative; padding-left: 1.5rem; }
.reslinks li::before { content: "\2192"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Schedule → course-page link */
.day__course { display: inline-block; margin-top: 0.55rem; font-size: 0.9rem; font-weight: 600; }

/* Per-day course schedule (on course pages) */
.cschedule { display: grid; gap: 1rem; margin: 0 0 1rem; }
.cday {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1.1rem 1.35rem;
  box-shadow: var(--shadow-sm);
}
.cday__head { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.65rem; }
.cslots { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.cslots li { display: grid; grid-template-columns: 128px 1fr; gap: 0.75rem; font-size: 0.95rem; align-items: baseline; }
.cslots__time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cslots__what { color: var(--body); }
.cslots li.is-break .cslots__what { color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .cslots li { grid-template-columns: 1fr; gap: 0.05rem; margin-bottom: 0.25rem; }
}

/* ---------- Draft banner (local only; remove before deploy) ---------- */
.draft-banner {
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* ---------- Header logo ---------- */
.brand__logo { height: 40px; width: auto; display: block; }

/* ---------- Schedule topic placeholder ---------- */
.day__topic { color: var(--muted); font-style: italic; font-size: 0.95rem; margin: 0.15rem 0 0.45rem; }

/* ---------- Cost fine print ---------- */
.price__fine { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Person link ---------- */
.person__link { display: inline-block; margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }

/* ---------- Scene photos ---------- */
.scene { display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.scene--hero { margin-top: 2.75rem; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; }

/* Two-column media (text + image) */
.media { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.media__text { max-width: 40rem; }
.media .scene { max-height: 380px; width: auto; max-width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .media { grid-template-columns: 1fr; }
  .media__text { max-width: none; }
}
@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--gutter) 1rem;
    display: none;
  }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__links a { padding: 0.7rem 0.5rem; }
  .nav__cta { margin: 0.5rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .day { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer__grid { grid-template-columns: 1fr; }
}
