/* Loyal Agents workshop at AAAI-27
   Near-black ink and light gray paper, with green for agents and
   amber as the workshop's own accent. */

:root {
  --ink: #1b1b1b;
  --ink-2: #242424;
  --ink-3: #3a3a3a;
  --paper: #f0f0f0;
  --white: #ffffff;
  --muted-on-dark: #b4b4b4;
  --muted-on-light: #5a5a5a;
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --line-on-light: rgba(27, 27, 27, 0.14);
  --green: #4ade80;
  --green-deep: #02ad4d;
  --amber: #f6b443;
  --amber-deep: #7a4406;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100% - 1180px) / 2 + 24px));
  background: rgba(27, 27, 27, 0.86);
  border-bottom: 1px solid var(--line-on-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand-tag {
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
  vertical-align: middle;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--green);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 27, 27, 0.92) 0%, rgba(27, 27, 27, 0.6) 48%, rgba(27, 27, 27, 0.05) 100%),
    linear-gradient(0deg, rgba(27, 27, 27, 0.9) 0%, rgba(27, 27, 27, 0) 28%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 140px;
  padding-bottom: 96px;
}

.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { color: var(--green); }
.eyebrow .sep { color: var(--ink-3); margin: 0 6px; }

h1 {
  max-width: 13ch;
  margin-top: 24px;
  font-size: clamp(48px, 8.4vw, 116px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.accent { color: var(--amber); }

.hero-sub {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(18px, 1.7vw, 22px);
  color: #d6d6d6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.status {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid var(--line-on-dark);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

a.status:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.status.on-light {
  padding: 7px 14px;
  border-color: var(--line-on-light);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.text-link:hover { color: var(--green); border-color: var(--green); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 880px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
}

.facts dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.facts dd { margin-top: 6px; font-weight: 600; }

.legend {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #8a8a8a;
}

.legend span { display: inline-block; margin-left: 10px; }
.lg-ring { width: 10px; height: 10px; border: 1.5px solid var(--white); border-radius: 50%; }
.lg-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.lg-line { width: 22px; height: 2px; background: var(--amber); }

/* ---------- Sections ---------- */

.section { padding: 112px 0; }
.section.light { background: var(--paper); color: var(--ink); }
.section.dark { background: var(--ink); color: var(--white); }

.kicker { margin-bottom: 20px; color: var(--green); }
.light .kicker { color: var(--green-deep); }

h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

.lede { max-width: 44em; margin-top: 20px; color: var(--muted-on-dark); }
.light .lede { color: var(--muted-on-light); }
.lede.after { margin-top: 48px; }

.small { font-size: 15px; color: var(--muted-on-light); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: start;
}

.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--green-deep); font-weight: 600; }

/* ---------- Topics ---------- */

.topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.topics li {
  position: relative;
  padding: 28px 24px 32px;
  background: var(--ink);
  transition: background 0.25s;
}

.topics li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.topics li:hover { background: var(--ink-2); }
.topics li:hover::before { transform: scaleX(1); }

.num {
  display: block;
  margin-bottom: 40px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
}

.topics p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted-on-dark); }

/* ---------- Agenda ---------- */

.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-on-light);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-on-light);
}

.tag-draft { border-color: var(--ink); color: var(--ink); }
.tag-talk { border-color: transparent; background: var(--ink); color: var(--white); }
.tag-papers { border-color: transparent; background: rgba(246, 180, 67, 0.26); color: var(--amber-deep); }
.tag-panel { border-color: transparent; background: rgba(2, 173, 77, 0.16); color: #046b32; }
.tag-breakout { border-color: transparent; background: var(--amber); color: var(--ink); }

.agenda { margin-top: 48px; border-top: 1px solid var(--ink); }

.agenda li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line-on-light);
  transition: background 0.2s;
}

.agenda li:hover { background: rgba(255, 255, 255, 0.6); }

.agenda time { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.agenda p { margin-top: 4px; font-size: 16px; color: var(--muted-on-light); }
.agenda .break { padding-top: 14px; padding-bottom: 14px; }
.agenda .break time, .agenda .break h3 { color: var(--muted-on-light); font-weight: 500; }
.agenda .break h3 { font-size: 17px; }

/* ---------- Speakers and organizers ---------- */

.speakers, .people { display: grid; gap: 20px; margin-top: 56px; }
.speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.people { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.speakers li, .people li {
  padding: 28px 24px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.speakers li { border-style: dashed; background: transparent; }

.speakers p, .people p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted-on-dark); }

.people .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.photo {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green);
  object-fit: cover;
  object-position: center top;
}

.avatar.ghost {
  background: transparent;
  border: 1.5px dashed var(--ink-3);
  color: var(--muted-on-dark);
  font-family: var(--mono);
  font-weight: 400;
}

/* ---------- CFP ---------- */

.cfp-card {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line-on-light), 0 24px 60px -30px rgba(27, 27, 27, 0.35);
}

.cfp-main { padding: 52px 48px; }
.cfp-main h2 { margin-top: 24px; font-size: clamp(28px, 3.2vw, 42px); }
.cfp-main p { margin-top: 20px; }

.cfp-dates { padding: 52px 48px; background: var(--ink); color: var(--white); }

.cfp-dates h3 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.cfp-dates .small { margin-top: 24px; color: var(--muted-on-dark); }

.dates { position: relative; margin-top: 28px; padding-left: 28px; }

.dates::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--ink-3);
}

.dates li { position: relative; padding-bottom: 22px; }
.dates li:last-child { padding-bottom: 0; }

.dates li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--green);
}

.dates time { display: block; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.dates span { display: block; font-size: 15px; color: var(--muted-on-dark); }

/* ---------- Footer ---------- */

.footer {
  padding: 64px 0 56px;
  background: #111111;
  border-top: 1px solid var(--line-on-dark);
  font-size: 15px;
  color: var(--muted-on-dark);
}

.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand { margin-bottom: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.footer p { max-width: 30em; }
.footer .footer-note { margin-top: 14px; }

.footer h3 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.footer a { text-decoration: none; border-bottom: 1px solid var(--ink-3); transition: color 0.2s; }
.footer a:hover { color: var(--green); }

/* ---------- Focus ---------- */

a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cfp-card { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav { padding: 10px 16px; gap: 12px; }
  .nav-brand { font-size: 16px; }
  .nav-brand-tag { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .section { padding: 80px 0; }
  .hero-inner { padding-top: 120px; padding-bottom: 80px; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(27, 27, 27, 0.92) 0%, rgba(27, 27, 27, 0.72) 100%);
  }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .legend { display: none; }
  .topics, .speakers { grid-template-columns: 1fr; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num { margin-bottom: 20px; }
  .agenda li { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .agenda .tag { display: none; }
  .cfp-main, .cfp-dates { padding: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topics li::before { transition: none; }
}
