body {
  --gap: calc(min(1rem, 3vw));
  --gap-half: calc(var(--gap)/2);
  --gap-quarter: calc(var(--gap)/4);
  font-family: 'Frutiger', sans-serif;
  color: rgb(15, 15, 15);
  line-height: calc(1em + 0.7rem);
}

@font-face {
  font-family: 'Frutiger';
  src: url('/static/fonts/Frutiger.ttf');
  font-weight: 400;
  /* Regular */
  font-style: normal;
}

@font-face {
  font-family: 'Frutiger';
  src: url('/static/fonts/Frutiger_bold.ttf');
  font-weight: 700;
  /* Bold */
  font-style: normal;
}

/* @font-face {
  font-family: 'Frutiger';
  src: url('/static/fonts/Frutiger_bold.ttf');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Frutiger';
  src: url('/static/fonts/Frutiger_bold.ttf');
  font-weight: 700;
  font-style: italic;
} */

h2 {
  font-weight: bold;
}


a {
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

.main {
  padding: 0 var(--gap) var(--gap) var(--gap);
}

.menu {
  display: flex;
  flex-direction: row;
  gap: var(--gap-half);
  font-size: 120%;
}

@media (min-width: 800px) {
  .menu {
    flex-direction: column;
  }
}

header {
  padding: var(--gap-quarter) var(--gap) var(--gap-half) var(--gap);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: white;
}

header a {
  color: inherit;
}

.site-title {
  line-height: .8em;
  font-size: 2rem;
}

.site-title a {
  text-decoration: none;
}

@media (min-width: 800px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: end;
  }

  .site-title {
    font-size: 4rem;
    margin-left: -6px;
    display: block;
  }
}

.vertical-spacing,
.text {
  display: flex;
  gap: var(--gap);
  flex-direction: column;
}

.text {
  max-width: 80ch;
}

.gap-2 {
  gap: calc(2 * var(--gap));
}

.gap-3 {
  gap: calc(3 * var(--gap));
}

.gap-4 {
  gap: calc(4 * var(--gap));
}

.page-content img {
  cursor: zoom-in;
}

.current {
  font-weight: bold;
}

.grid-row {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

@media (min-width: 800px) {
  .grid-row {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    flex-direction: row;
    /* Display mode may change via js. So this still needs to be here even if it is set to grid in the stylsheet. See script.js */
  }
}

.year {
  font-weight: 600;
}

.material {
  font-style: italic;
}

.grid-row:not(.adjust-widths)>* {
  width: 100%;
  height: 100%;
}

.text-box>*+* {
  margin-top: calc(var(--gap) / 2);
}

.frame-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.spacer {
  height: 50px;
}

video {
  background: black;
}