/* Minimal reset matching the original site's Tailwind preflight. */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 { font-size: inherit; font-weight: inherit; }
button {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  opacity: 1;
  appearance: button;
}
img { display: block; vertical-align: middle; max-width: 100%; height: auto; }

@font-face {
  font-family: 'Source Serif 4';
  src: url('./fonts/source-serif-4-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('./fonts/source-serif-4-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text: #111;
  --muted: #505050;
  --link: #245886;
  --rule: #dedbd4;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.58;
}

main {
  width: min(100% - clamp(32px, 5.3vw, 64px), 800px);
  margin: clamp(32px, 5.6vw, 68px) auto 72px;
}

header,
section {
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

header {
  text-align: left;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, calc(1.68rem + 1.6vw), 2.875rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.title-subject {
  display: block;
}

.ai-title {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-size: clamp(1.75rem, calc(1.24rem + 2.3vw), 2.875rem);
  white-space: nowrap;
}

.ai-title__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ai-title__answer {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 1em;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
  cursor: pointer;
}

.ai-title__answer::before {
  content: '?';
  width: 0;
  flex: none;
  visibility: hidden;
}

.ai-title__answer:disabled { cursor: default; }

.ai-title__answer:focus-visible {
  outline: 1px solid var(--link);
  outline-offset: 4px;
}

.ai-title__word {
  display: inline-block;
  font-size: 0.72em;
  font-style: italic;
}

.ai-title__answer[data-question='true'] .ai-title__word {
  font-size: 1em;
  font-style: normal;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  line-height: 1.38;
}

#archive-title {
  font-size: 1.25rem;
}

.about p {
  max-width: 44rem;
  text-wrap: pretty;
}

header p {
  max-width: 44rem;
  margin-inline: 0;
  margin-bottom: 8px;
  text-wrap: pretty;
}

header .contact {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  text-wrap: pretty;
}

header .contact a {
  display: inline-block;
}

header .links {
  margin-top: 16px;
  font-size: 1.125rem;
}

header .links a {
  font-weight: 700;
}

header .former-name {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--link) 50%, transparent);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #0a3470;
  text-decoration-color: currentColor;
}

.links,
.meta,
summary {
  font-size: 15px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 20px 28px;
  margin-bottom: clamp(24px, 3.5vw, 36px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  color: #222;
  text-decoration: none;
}

.partners img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.partner-dauphine img {
  max-width: min(100%, 158px);
  max-height: 32px;
}

.partner-kbs img {
  max-width: min(100%, 132px);
  max-height: 46px;
}

.partner-acss img {
  max-width: min(100%, 154px);
  max-height: 36px;
}

.ai-wordmark {
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.ai-wordmark span {
  max-width: 142px;
}

.ai-wordmark::before {
  width: 3px;
  height: 34px;
  background: #e2231a;
  content: '';
  flex: none;
}

.sessions article {
  margin: 0;
  padding: 21px 0 23px;
  border-top: 1px solid var(--rule);
}

.programme {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.programme article {
  display: grid;
  grid-template-columns: 9.75rem minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
}

.programme h3 a {
  color: var(--text);
}

.programme h3 a:hover,
.programme h3 a:focus-visible {
  color: var(--link);
}

.programme time,
.programme p,
.schedule-note {
  color: var(--muted);
  font-size: 15px;
}

.programme h3,
.programme p {
  margin-bottom: 0;
}

.programme .affiliation {
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 400;
}

.schedule-note {
  margin: 0 0 14px;
}

.sessions article:last-child {
  border-bottom: 1px solid var(--rule);
}

.meta {
  margin: 0;
  color: var(--muted);
}

details {
  margin-top: 11px;
}

summary {
  width: fit-content;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

details p {
  margin: 14px 0 0;
  max-width: 72ch;
}

.older {
  margin-top: 18px;
}

.archive-link {
  display: inline-block;
  padding: 4px 0;
}

@media (max-width: 600px) {
  .programme article {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .programme .affiliation {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.4;
  }

  .programme p {
    margin-top: 4px;
  }

  .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    padding-bottom: 16px;
  }

  .partners a {
    min-height: 44px;
  }

  .partner-kbs img {
    max-width: min(100%, 120px);
    max-height: 42px;
  }
}
