:root {
  --background: #fbfbfa;
  --text: #262626;
  --muted: #969696;
  --line: #ddddda;
  --content-width: 680px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.layout {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 100px;
  display: grid;
  grid-template-columns: 165px minmax(0, var(--content-width));
  gap: 58px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 64px;
  min-height: 420px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  text-decoration: none;
}

.brand-subtitle {
  display: block;
  margin-bottom: 25px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

nav a {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
  text-decoration: none;
  transition: color 150ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a.active {
  color: var(--text);
}

.content {
  min-width: 0;
}

h1, h2, h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.3;
}

h1 {
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 700;
}

h2 {
  margin: 42px 0 18px;
  font-size: 18px;
  font-weight: 700;
}

h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

p {
  margin: 0 0 26px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.aims {
  margin: 28px 0 36px;
  padding: 0;
  list-style: none;
}

.aims li {
  margin-bottom: 20px;
  padding-left: 22px;
  position: relative;
}

.aims li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.note {
  color: var(--muted);
}

footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  body { font-size: 16px; }

  .layout {
    width: min(100% - 36px, 680px);
    padding-top: 28px;
    display: block;
  }

  .sidebar {
    position: static;
    min-height: 0;
    margin-bottom: 52px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-subtitle { max-width: 260px; }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  nav a { font-size: 17px; }

  footer { margin-top: 50px; }
}


/* X-HIST logos */
.sidebar-logo {
  display: block;
  margin-bottom: 34px;
  text-decoration: none;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  max-width: 145px;
  height: auto;
}

.main-logo {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 0 42px;
}

#sidebar-container {
  display: contents;
}

@media (max-width: 700px) {
  .sidebar-logo img {
    max-width: 135px;
  }

  .main-logo {
    max-width: 480px;
    margin-bottom: 34px;
  }
}
