/* SGSOACS: minimal stylesheet, no external fonts or resources. */

:root {
  --c-text: #1f2a37;
  --c-muted: #5b6675;
  --c-bg: #ffffff;
  --c-soft: #f0f7f7;
  --c-line: #d9e6e8;
  --c-accent: #0f766e;      /* teal, primary colour */
  --c-accent-2: #f2a93b;    /* warm amber, highlights and focus */
  --c-on-accent: #ffffff;   /* text on accent backgrounds */
  --c-link: #0e6a8a;
  --radius: 6px;
  --wrap: 62rem;
  font-size: 106.25%;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-text: #e4ecee;
    --c-muted: #9fb0b6;
    --c-bg: #11181c;
    --c-soft: #182328;
    --c-line: #2a3a40;
    --c-accent: #4fd1c5;
    --c-accent-2: #f6c066;
    --c-on-accent: #0b1f22;
    --c-link: #7cc7e3;
  }
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}

a { color: var(--c-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-accent-2); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--c-bg); padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0.5rem; }

/* Header */
.site-header {
  border-top: 5px solid var(--c-accent);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--c-text); }
.brand-short { font-weight: 800; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--c-accent); }
.brand-long { font-size: 0.85rem; color: var(--c-muted); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.main-nav a { text-decoration: none; color: var(--c-text); font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--c-accent); }

/* Main */
main.wrap { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 {
  font-size: 1.5rem; margin: 2.75rem 0 1rem; padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--c-line);
}
h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
section { scroll-margin-top: 1rem; }
address { font-style: normal; }

/* Hero */
.hero { margin-bottom: 1.5rem; }
.hero-figure { margin: 0 0 1.25rem; }
.hero-image {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--c-soft);
}
.hero-figure figcaption { margin-top: 0.3rem; font-size: 0.8rem; color: var(--c-muted); text-align: right; }
.hero-figure figcaption a { color: inherit; }
.eyebrow { margin: 0; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.hero h1 { font-size: 2.8rem; margin: 0.15rem 0 0.4rem; color: var(--c-accent); }
.hero-meta { margin: 0; font-size: 1.15rem; }

.notice {
  background: var(--c-soft); border-left: 4px solid var(--c-accent-2);
  padding: 0.75rem 1rem; border-radius: var(--radius);
}

/* Quick links */
.quicklinks ul {
  list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.quicklinks a {
  display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid var(--c-line);
  border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--c-text);
}
.quicklinks a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* Topics */
.topics { columns: 2 16rem; padding-left: 1.2rem; }

/* Important dates */
.dates { margin: 0; }
.date-row {
  display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: 0.25rem 1rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--c-line);
}
.date-row dt { font-weight: 600; }
.date-row dd { margin: 0; }
.date-row del { color: var(--c-muted); }
.date-row.cancelled dt { color: var(--c-muted); }
.date-note { display: block; font-size: 0.9rem; color: var(--c-muted); }
@media (max-width: 36rem) { .date-row { grid-template-columns: 1fr; } }

/* Lists of people */
.people { padding-left: 1.2rem; }
.people li { margin: 0.15rem 0; }
.person-name { font-weight: 600; }
.role { color: var(--c-accent); font-weight: 600; }

/* Button */
.button {
  display: inline-block; background: var(--c-accent); color: var(--c-on-accent); text-decoration: none;
  padding: 0.55rem 1.2rem; border-radius: var(--radius); font-weight: 600;
}

/* Programme */
.programme { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.programme td, .programme th { padding: 0.55rem 0.75rem; vertical-align: top; text-align: left; border-bottom: 1px solid var(--c-line); }
.programme .time { white-space: nowrap; width: 8.5rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.programme tr.session { background: var(--c-soft); }
.programme tr.session th { border-left: 3px solid var(--c-accent); }
.programme tr.session th { font-weight: 700; }
.programme tr.break td { color: var(--c-muted); font-style: italic; }
.programme tr.keynote td { font-weight: 600; }
.chair { display: block; font-weight: 400; font-size: 0.9rem; color: var(--c-muted); }
.talk-title { display: block; }
.authors { display: block; font-size: 0.9rem; color: var(--c-muted); font-weight: 400; }
.label {
  display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--c-accent); color: var(--c-on-accent); padding: 0.05rem 0.45rem; border-radius: 3px; margin-right: 0.3rem;
}
.programme-note { color: var(--c-muted); }
@media (max-width: 36rem) {
  .programme .time { width: auto; }
  .programme tr { display: block; }
  .programme td, .programme th { display: block; border: 0; padding: 0.2rem 0.5rem; }
  .programme tr { border-bottom: 1px solid var(--c-line); padding: 0.4rem 0; }
}

.updated { color: var(--c-muted); font-size: 0.9rem; margin-top: 2rem; }

/* Past editions */
.editions { list-style: none; padding: 0; }
.editions li { padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); }
.editions a { font-weight: 700; font-size: 1.1rem; }
.edition-meta { display: block; color: var(--c-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--c-line); background: var(--c-soft); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.site-footer a { color: var(--c-text); }

@media print {
  .site-header nav, .quicklinks, .skip-link, .site-footer ul { display: none; }
  a { color: inherit; text-decoration: none; }
  .hero-image { max-height: 8rem; }
}
