/* Shared fonts and base styles. */
@font-face{font-family:"Averia Serif Libre";src:url('assets/averia-serif-libre.ttf')}

@font-face{font-family:Luckiest;src:url('assets/luckiest-guy.ttf')}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: "Averia Serif Libre",Georgia,serif;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid #167a81;
  outline-offset: 6px;
}

.skip {
  position: absolute;
  top: -100px;
}

.skip:focus {
  top: 10px;
  z-index: 100;
}

.header {
  height: 146px;
  top: 0;
  z-index: 20;
}

.nav {
  margin: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 48px;
}

.logo {
  display: block;
  transition: width .3s;
}

.logo img {
  width: 100%;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  font-family: Luckiest;
  letter-spacing: .5px;
}

.menu a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #eaa13c;
  border: 0;
  border-bottom: 4px solid #bc712b;
  border-radius: 9px;
  padding: 17px 22px;
  text-decoration: none;
  font-family: Luckiest;
  font-size: 16px;
  letter-spacing: .6px;
  transition: transform .2s,background .2s;
  color: #303d28;
}

.button:hover:where(html:not([data-touch-input]) *) {
  transform: translateY(-3px);
}

.scrolled .header {
  height: 86px;
}

@media(max-width:740px) {
  .intro,
  .story .description,
  .end-copy > p,
  .author-teaser > p,
  .author-page p,
  #dialog-text,
  #character-description {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Compact mobile footer: navigation first, copyright underneath. */
@media(max-width:740px) {
 .footer.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0 20px;
  text-align: center;
 }
 .footer.footer > nav {
  order: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
 }
 .footer.footer > span { order: 1; width: 100%; }
 .footer.footer nav a { margin: 0; }
 .footer.footer nav a[href="datenschutz.html"] { order: 0; }
 .footer.footer nav a[href="impressum.html"] { order: 1; }
 .footer.footer nav a[href^="mailto:"] { order: 2; }
 .footer.footer nav a[href="impressum.html"]::before,
 .footer.footer nav a[href^="mailto:"]::before {
  content: "·";
  display: inline-block;
  margin-right: 12px;
 }
}
