/* Styling modeled on the UW Theme used by https://www.cs.wisc.edu/ */
:root {
  --uw-red: #c5050c;
  --uw-red-dark: #9b0000;
  --text: #121212;
  --muted: #646569;
  --link: #0479a8;
  --link-hover: #036796;
  --border: #f3f3f3;
  --bg-alt: #f7f7f7;
  --footer-bg: #282728;
  --footer-text: #adadad;
  --font-text: "Red Hat Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  background: #fff;
}

a { color: var(--link-hover); }
a:hover { color: var(--uw-red); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 0.5rem;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Global bar */
.global-bar {
  padding: 8px 24px;
  border-bottom: 1px solid var(--border);
}
.uw-global-name-link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.uw-global-name-link .uw-of { text-transform: none; }
.uw-global-name-link:hover { color: var(--uw-red); }

/* Header: crest + title */
.site-title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 12px;
}
.uw-crest-logo img {
  display: block;
  width: 40px;
  height: auto;
}
.site-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--uw-red);
  text-decoration: none;
}
.site-title:hover { color: var(--uw-red-dark); }
.site-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.site-tagline a { color: var(--text); text-decoration: none; }
.site-tagline a:hover { text-decoration: underline; }

/* Red main menu */
.main-menu {
  background: var(--uw-red);
  padding: 0 24px;
}
.main-menu ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-menu a {
  display: block;
  padding: 16px 30px 13px 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.main-menu a:hover { text-decoration: underline; }

/* Main content */
.content {
  max-width: 848px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

section { padding-top: 48px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
}
h1, h2 { margin: 0 0 16px; }
h1::before, h2::before {
  content: "";
  display: block;
  width: 60px;
  height: 8px;
  margin-bottom: 6px;
  background: var(--uw-red);
}
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h2::before { width: 45px; height: 6px; }
h3 { font-size: 22px; font-weight: 700; }

.lead { font-size: 21px; }
.muted { color: var(--muted); }

.logistics {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-left: 4px solid var(--uw-red);
}

/* Talks */
.talk {
  padding: 16px 0;
  border-top: 1px solid #dadfe1;
}
.talk:first-of-type { border-top: none; padding-top: 0; }
.talk-date {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--uw-red);
}
.talk-title { margin: 4px 0; }
.talk-speaker { margin: 0 0 8px; font-weight: 500; }
.affil { color: var(--muted); font-weight: 400; }
details summary { cursor: pointer; color: var(--link-hover); }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 15px;
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1200px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.footer-logo img { width: 32px; height: auto; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-logo, .footer-logo:hover { color: #fff; }
.footer-copyright { margin-top: 24px; }

@media (max-width: 640px) {
  .site-title-wrapper { padding: 12px 16px; }
  .site-title { font-size: 24px; }
  .main-menu { padding: 0 8px; }
  .main-menu a { padding: 12px 18px 10px 0; font-size: 15px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* Calendar links, callouts */
.add-to-cal {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.add-to-cal a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 3px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.add-to-cal a:hover { border-color: var(--uw-red); color: var(--uw-red); }
.add-to-cal a:first-child { margin-left: 6px; }
.subscribe { font-size: 15px; color: var(--muted); margin-top: 0; }
.callout {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-left: 4px solid var(--uw-red);
}
.talk-speaker a { color: var(--link-hover); }
