* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

@font-face {
    font-family: 'routerbook';
    src: url('../fonts/router-book.woff2') format('woff2'),
         url('../fonts/router-book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cassia';
    src: url('../fonts/cassia-xl.woff2') format('woff2'),
         url('../fonts/cassia-xl.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cassia';
    src: url('../fonts/cassia-xl-i.woff2') format('woff2'),
         url('../fonts/cassia-xl-i.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
  background: var(--highlight);
}

html, body {
  font-family: 'cassia', serif;
  letter-spacing: 1px;

  font-weight: lighter;
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin:1rem;
}

#bib div p {
  max-width: auto !important;
}

#bib a {
  text-decoration:underline;
  text-decoration-style: dotted;
}

img {
  max-width:100%;
}

a {
  color:var(--text);
  text-decoration: none;
  
  /* temp error fix */
  font-family: 'cassia', serif;
}

p {
  /* temp error fix */
  font-family: 'cassia', serif;
}

button, input {
  font-family: inherit;
  color: inherit;
  font-weight: inherit;
  font-size: 1rem;
  margin:0;
  padding:0;

  /* temp error fix */
  font-family: 'cassia', serif;
}

header {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  text-align: center;
  z-index: 99;
  padding:1rem;
  line-height: 1.5rem;
  pointer-events: none;
}

.name {
  margin: 0 auto;
  display: inline-block;
  pointer-events: auto;
}

main {
  position: relative;
  width:100%;
  height:100%;
}

.photo {
  position: absolute;
  width:200px;
  z-index: 0;
}

.sub-toggle {
  border:0;
  background:transparent;
  cursor: pointer;
}

.sub-nav {
  display:none;
}

.sub-nav a::after {
  content: ',';
}

.sub-nav a:last-of-type::after {
  content: '';
}

.active {
  display: block;
}

.bib-text {
  font-size: 1.4rem;
  line-height: 1.62rem;
  hyphens: auto;
}

.home-bib {
  padding:.5rem;
  position: absolute;
  top:50%;
  left:50%;
  z-index: 0;
  padding-top:5rem;
  transform: translate(-50%, -50vh);
  width:100vw;
  opacity: 0;
  transition: opacity .5s;
}

.home-bib.active {
  opacity: 1;
}

.bib-text div {
  max-width: 70%;
  margin: 0 auto;
}

.bib-text p {
  margin: 0;
}

.blank-text p {
  margin: 1rem 0;
}

.stackable {
  z-index: 1;
}

.mobile {
  display: none;
}

.notice, .admin-advice {
  display: none;
}

@media screen and (max-width: 900px) {

  html {
    font-size: 1.2rem;
  }

  body {
    margin:0;
    margin-top:3rem;
  }

  .bib-text {
    font-size:1.1rem;
  }

  .bib-text div {
    /* background:green; */
    max-width: 100%;
    margin: 0;
    padding:1rem;
  }

  header.active {
    background: var(--bg);
  }

  .sub-nav.active {
    display: flex;
    flex-direction: column;
  }

  .sub-nav.active a {
    padding: .5rem 0 0 0;
  }

  .sub-nav a::after {
    content:'';
  }

  .desk {
    display: none;
  }

  .bib-link.mobile {
    display: block;
  }
}
