/* JCB — Journées de Combinatoire de Bordeaux
   A conference program is read once a year, closely: someone is hunting
   for their slot, a title, an abstract, a PDF. The design stays out of the
   way of that — quiet paper, a serif for names and headings (the register
   of a printed program), tabular monospace for the schedule (a timetable,
   not a web app), and a single blue accent, close in spirit to the old
   Hugo/ananke theme's link color rather than a dramatic departure from it. */

:root {
  --ink: #1c1a17;
  --muted: #6b645c;
  --paper: #fffdfb;
  --rule: #ded7cd;
  --accent: #00449e;
  --accent-soft: #e7edf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
  line-height: 1.55;
}

/* --- Header ------------------------------------------------------------ */

.site-header {
  padding: 2.25rem 1.5rem 0;
  text-align: center;
}

.site-header h1 {
  margin: 0 auto;
  max-width: 48rem;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* --- Body content -------------------------------------------------------- */

main {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h2 {
  margin-top: 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.75rem;
}

p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --- Links --------------------------------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 68, 158, 0.35);
}

a:hover,
a:focus {
  border-bottom-color: var(--accent);
}

/* Links whose entire text is bold (talk titles linking straight to a
   resource): show as plain bold text, the badge below already signals it's
   a link. */
a:has(> strong:only-child) {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

/* Any link to a pdf/zip/video resource gets a small trailing badge naming
   the format, so a run of several resource links (pdf, zip, video, ...)
   for the same talk reads as distinct tags instead of a blur of accent text. */
a[href$=".pdf"]::after,
a[href$=".zip"]::after,
a[href*="youtube.com"]::after,
a[href*="youtu.be"]::after {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.05em 0.4em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 68, 158, 0.3);
  border-radius: 2px;
}
a[href$=".pdf"]::after {
  content: "PDF";
}
a[href$=".zip"]::after {
  content: "ZIP";
}
a[href*="youtube.com"]::after,
a[href*="youtu.be"]::after {
  content: "Vidéo";
}

/* --- Lists ---------------------------------------------------------------- */

ul {
  padding-left: 1.1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

li {
  margin-bottom: 0.6rem;
}

li strong {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", Georgia, serif;
  font-weight: 600;
}

/* --- Schedule table: set like a timetable board -------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
}

table th,
table td {
  padding: 0.45rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

table th {
  font-variant: small-caps;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

table td:first-child,
table th:first-child {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

/* --- Abstracts ------------------------------------------------------------ */

details {
  margin-top: 0.5em;
  font-size: 0.92em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-variant: small-caps;
}

details p {
  margin: 0.6em 0 0 0;
}

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

.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  border-bottom-color: transparent;
}

.site-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
