:root {
  --bkgd: #ffe;
  --text: #221;
  --link: #a10;
}

@font-face {
  font-family: "Jost";
  src: url(ttf/Jost-VariableFont_wght.ttf) format("truetype-variations");
}

@font-face {
  font-family: "Newsreader";
  src: url(ttf/Newsreader-VariableFont_opsz,wght.ttf) format("truetype-variations");
}

html {
  background-color: var(--bkgd);
  color: var(--text);
  font-family: "Newsreader";
}

body {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1em;
}

nav.button {
  a {
    background-color: var(--link);
    color: var(--bkgd);
    padding: 1em;
    margin: 0.5em;
    width: 4.5em;
    text-align: center;
    border-radius: 0.25em;
  }
}

header {
  position: sticky;
  top: 0;
  background: var(--bkgd);
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em;
  align-items: center;
  justify-content: space-between;
  padding: 1em 2em;

  div {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    align-items: center;
    justify-content: center;
    img.seal {
      height: 80px;
    }

    h1 {
      margin: 0;
    }
  }
}

main {
  padding: 2em;
  flex-grow: 1;
}

h1 {
  font-family: "Jost";
  font-weight: 300;
  font-size: 2.5em;
  white-space: nowrap;
  text-transform: uppercase;
}

hgroup {
  p {
    display: flex;
    white-space: nowrap;
    align-items: center;
  }

  p::before,
  p::after {
    content: "";
    flex-grow: 1;
    max-height: 0px;
    width: 100%;
    border: 1px solid black;
    margin: 0 1em;
  }
  * {
    margin: 0;
  }
  margin: 2em;
}


p {
  max-width: 32em;
  font-size: 14pt;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:has(img) {
  border: 1px solid transparent;
}

a:hover {
  border-color: var(--link);
}

h1 a {
  color: var(--text);
  border-width: 0px;
}

#index {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;

  img.seal {
    height: 320px;
  }
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  a {
    display: inline-block;
    max-width: 360px;
    line-height: 0;
    padding: 0.25em;
  }
  img {
    height: auto;
    width: 100%;
  }
}

#piece {
  #leader {
    width: 100%;
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    img {
      max-height: 560px;
      max-width: 100%;
    }
    margin-bottom: 1em;
  }

  #alts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    img {
      max-height: 240px;
    }
  }
}

#about {
  * {
  margin: auto;
  }
}

footer {
  margin: 2em;
  text-align: center;
}

