:root {
  --maroon: #7a0019;
  --maroon-soft: #9b1b3a;
  --gold: #ffcc33;
  --ink: #1a1a1a;
  --muted: #555;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --font-body: ui-serif, "Source Serif 4", "Source Serif Pro", "Charter", Charter, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Header */
.site-header {
  background: var(--maroon);
  color: #fff;
  padding: 1rem 0;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.site-logo {
  width: 180px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.site-identity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.site-title {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
}

.site-title-accent {
  color: var(--gold);
}

/* Nav */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: 0.4rem;
}

.site-nav a {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.site-nav a:hover { text-decoration: underline; }

/* Main */
main.container {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--maroon);
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--maroon);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--maroon);
}

p { margin: 0.75rem 0; }

ul { padding-left: 1.25rem; }
ul li { margin-bottom: 0.35rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}


.callout {
  background: #faf6ed;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.organizer-list {
  list-style: none;
  padding: 0;
}

.organizer-list li {
  margin-bottom: 0.4rem;
}

.organizer-list strong { color: var(--ink); }

/* Past conference page */
.page-header .dates,
.page-header .location,
.page-header .organizers {
  color: var(--muted);
  margin: 0.15rem 0;
  font-style: italic;
}

.session {
  margin: 0.6rem 0;
}

.session .paper {
  font-weight: bold;
}

.session .authors {
  color: var(--muted);
}

.back-link {
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

/* Topics list (home page, inactive + cfp states) */
ul.topics-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.25rem;
}
ul.topics-list li { break-inside: avoid; }

@media (max-width: 600px) {
  ul.topics-list { columns: 1; }
}

/* Past conferences index — card grid */
.past-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.past-card {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.past-card:hover {
  border-color: var(--maroon);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-decoration: none;
}

.past-card h2 {
  margin: 0 0 0.35rem 0;
  padding: 0;
  border: 0;
  color: var(--maroon);
  font-size: 1.2rem;
}

.past-card .dates {
  font-style: italic;
  color: var(--muted);
  margin: 0.15rem 0;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.past-card .organizers {
  margin: 0.35rem 0 0 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Action cards on the home page (active state) — Program, Registration, Hotel */
.action-cards {
  margin: 1.5rem 0;
}

/* Founders section on the About page */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 1rem;
  max-width: 340px;
}

.founders figure {
  margin: 0;
  text-align: center;
}

.founders img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
}

.founders figcaption {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.image-credit {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
}

/* Admin settings table */
table.settings-table {
  border-collapse: collapse;
  margin: 1rem 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
table.settings-table th,
table.settings-table td {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.settings-table th {
  background: #faf6ed;
  font-weight: 600;
  white-space: nowrap;
}

/* Program / schedule */
.program-dates {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -0.25rem;
}

.day-section {
  margin: 2rem 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.day-header {
  background: var(--maroon);
  color: #fff;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 1.15rem;
  font-weight: 500;
  border: 0;
  font-family: var(--font-sans);
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

table.schedule th {
  background: #faf6ed;
  text-align: left;
  font-weight: 600;
  color: #495057;
  padding: 0.5rem 0.85rem;
  border-bottom: 2px solid var(--rule);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.schedule td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

table.schedule tbody tr:last-child td {
  border-bottom: 0;
}

table.schedule .time-col {
  width: 80px;
  white-space: nowrap;
  font-weight: 600;
  color: #495057;
}

table.schedule .event-col { width: 45%; }
table.schedule .presenters-col { width: 40%; color: #6c757d; }

table.schedule .event-title { font-weight: 600; }
table.schedule .event-title a { color: var(--ink); }
table.schedule .event-title a:hover { color: var(--maroon); }

table.schedule .conference-ends {
  text-align: center;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 700px) {
  table.schedule { font-size: 0.85rem; }
  table.schedule th, table.schedule td { padding: 0.45rem 0.55rem; }
  table.schedule .time-col { width: 70px; }
  table.schedule .presenters-col { color: #555; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; }
  .site-nav ul { column-gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }
  .site-title { font-size: 1.35rem; }
  h1 { font-size: 1.6rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .back-link { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; line-height: 1.4; }
  .container { max-width: 100%; padding: 0; }
  main.container { padding: 0; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  h2 { border-bottom: 1px solid #000; }
  .day-section { border: 0; border-radius: 0; margin: 1rem 0; page-break-inside: avoid; }
  .day-header { background: transparent !important; color: #000 !important; border-bottom: 1px solid #000; padding: 0.5rem 0; }
  table.schedule th { background: transparent; color: #000; }
  table.schedule .event-title a { color: #000; }
  .callout { background: transparent; border-left: 2px solid #000; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .past-card { box-shadow: none !important; border-color: #000 !important; transform: none !important; }
}
