/* SPIN — CoRL 2026 Workshop
   Plain static stylesheet. No build step, no framework, no JavaScript. */

:root {
  --bg: #f4f1ea;
  --dark: #1b1b19;
  --text: #1b1b19;
  --muted: #66635d;
  --line: #d3cec4;
  --alt: #ebe6dc;
  --accent: #dc542e;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 6px 10px;
  background: var(--dark);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Navigation ------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--accent);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 26px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
}

.nav a {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover {
  color: #ffdbcf;
}

/* Masthead --------------------------------------------------------------- */

.masthead {
  padding: 32px 20px 30px;
  background: var(--dark);
  color: #e8e3d8;
  text-align: center;
}

.masthead h1 {
  max-width: 880px;
  margin: 0 auto;
  color: var(--accent);
  font-size: clamp(1.65rem, 4.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.masthead .tagline {
  margin: 12px 0 0;
  color: #ded8cc;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.masthead .meta {
  margin: 16px 0 0;
  color: #b9b3a7;
  font-size: 0.94rem;
  line-height: 1.7;
}

.masthead .banner {
  width: min(1080px, 100%);
  margin: 22px auto 0;
}

.masthead .meta strong {
  color: #fff;
  font-weight: 600;
}

.masthead .meta a {
  color: #fff;
}

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 800;
  text-align: center;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 13px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 13px;
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

li:last-child {
  margin-bottom: 0;
}

.note {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Demo ------------------------------------------------------------------- */

figure {
  margin: 0 0 16px;
}

figure img {
  width: 100%;
}

figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* People ----------------------------------------------------------------- */

.speakers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.speakers img,
.speakers .initials {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

.initials {
  display: grid;
  place-items: center;
  background: var(--alt);
  color: #a29c92;
  font-weight: 700;
}

.speakers .initials {
  font-size: 2rem;
}

.speakers h3 {
  margin: 10px 0 0;
  font-size: 1rem;
}

.speakers .aff {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.speakers .status {
  margin: 5px 0 0;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 700;
}

.speakers .talk {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

/* Names link to personal pages; keep them reading as names, not as links. */
.speakers h3 a,
.people strong a {
  color: inherit;
  text-decoration-color: var(--line);
}

.speakers h3 a:hover,
.people strong a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin-bottom: 13px;
}

.people article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.people img,
.people .initials {
  width: 54px;
  height: 54px;
  object-fit: cover;
  object-position: center top;
  font-size: 0.92rem;
}

.people strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.people span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.people .role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Tables ----------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

tbody tr:nth-child(odd) {
  background: var(--alt);
}

td.time {
  width: 96px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

td.when {
  width: 210px;
  font-weight: 700;
  white-space: nowrap;
}

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

footer {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

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

@media (max-width: 760px) {
  .speakers,
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav ul {
    gap: 2px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 460px) {
  .people {
    grid-template-columns: 1fr;
  }

  td.time {
    width: 74px;
  }

  td.when {
    width: auto;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
