/* Disc4All Winter School 2022 — static retrospective.
   Fonts are self-hosted (latin subset), so the page makes no third-party requests. */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  font-weight: 200 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1d1d1f;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #00aaa5;
  --accent-dark: #00807c;
  --button: #ebebeb;
  --button-text: #555;
  --footer: #141517;
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

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

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.15;
}

.container {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}

.logo img {
  width: 96px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-bottom-color: var(--accent);
  color: #fff;
}

/* Legal pages: no hero, so the header sits on a solid bar. */
.site-header.solid {
  position: static;
  background: var(--footer);
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  display: grid;
  place-items: center;
  min-height: min(88vh, 760px);
  padding: 160px 16px 96px;
  background:
    linear-gradient(rgba(10, 14, 30, 0.35), rgba(10, 14, 30, 0.6)),
    url("../img/bern-winter.jpg") center 60% / cover no-repeat;
  color: #fff;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 200;
  letter-spacing: 0.01em;
}

.hero p {
  margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

.section {
  padding: 96px 0;
  text-align: center;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 48px;
  font-size: clamp(34px, 4.5vw, 48px);
}

.lead {
  max-width: 760px;
  margin: 0 auto 48px;
  color: #333;
  font-size: 18px;
}

.winter-school-logo {
  width: 300px;
  margin: 0 auto 40px;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.people h3,
.programme h3 {
  margin-bottom: 8px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.people p {
  margin: 0 0 4px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--button);
  color: var(--button-text);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.button:hover {
  background: #dcdcdc;
  color: #333;
}

/* ---- Program ----------------------------------------------------------- */

.programme {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
}

.programme li {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.programme h3 {
  margin-bottom: 0;
}

.programme .date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.programme .session {
  margin: 0 0 10px;
}

.programme .time {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ---- Speakers ---------------------------------------------------------- */

.speakers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 30px;
  text-align: left;
}

.speaker img {
  width: 100%;
  aspect-ratio: 36 / 25.5;
  border-radius: 6px;
  background: #f3f3f3;
  object-fit: cover;
  object-position: 50% 22%;
}

.speaker h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.speaker h3::before,
.speaker h3::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.speaker .affiliation {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.speaker details {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.speaker summary {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.speaker summary::-webkit-details-marker {
  display: none;
}

.speaker summary::after {
  content: " +";
}

.speaker details[open] summary::after {
  content: " \2212";
}

.speaker details p {
  margin: 10px 0 0;
}

.speaker .abstract {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/* ---- Social event, venue ----------------------------------------------- */

.wide-figure {
  max-width: 1024px;
  margin: 0 auto;
}

.wide-figure.venue {
  max-width: 800px;
}

.wide-figure img {
  width: 100%;
  border-radius: 6px;
}

.wide-figure figcaption {
  margin-top: 20px;
  color: #333;
}

/* ---- Partners ---------------------------------------------------------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px 56px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
}

.partners img {
  width: auto;
  max-width: 220px;
  max-height: 72px;
}

.partners .square img {
  max-height: 110px;
}

/* ---- Contact ----------------------------------------------------------- */

.contact p {
  margin: 0 0 6px;
}

/* ---- Legal pages ------------------------------------------------------- */

.legal {
  max-width: 760px;
  padding-block: 72px 96px;
}

.legal h1 {
  margin-bottom: 32px;
  font-size: clamp(34px, 4.5vw, 48px);
}

.legal h2 {
  margin: 32px 0 8px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.legal p {
  margin: 0 0 12px;
}

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

.site-footer {
  padding: 40px 16px;
  background: var(--footer);
  color: #9a9a9a;
  font-size: 14px;
  text-align: center;
}

.site-footer nav a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

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

.site-footer p {
  margin: 12px 0 0;
}

/* ---- Small screens ----------------------------------------------------- */

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

@media (max-width: 760px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .logo img {
    width: 72px;
  }

  .main-nav ul {
    justify-content: center;
    gap: 2px 16px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .hero {
    padding-top: 230px;
  }

  .section {
    padding: 72px 0;
  }
}

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