body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #E9A35D url('/assets/papyrus-background.jpg');
}

#page {
  max-width: 900px;
  margin: 0 auto;
}

#nav {
  display: flex;
  gap: 0;
  margin: 0;
  border: 6px solid #2C1810;
  border-bottom: none;
}

#nav a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1em;
  background: #D4A050;
  color: #2C1810;
  border-right: 1px solid #2C1810;
  font-weight: bold;
  text-decoration: none;
}

#nav a:last-child {
  border-right: none;
}

#nav a:hover {
  background: #E8C070;
}

#nav a.active {
  background: #F5E6D0;
}

#content {
  background: #F5E6D0;
  padding: 1.5em;
  border: 6px solid #2C1810;
  color: #2C1810;
  box-shadow: 0 0 24px rgba(44,24,16,0.5);
  border-top: none;
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
}

#content > section {
  flex: 1 1 100%;
}

#content > section.half {
  flex: 1 1 calc(50% - 0.75em);
}

@media (max-width: 700px) {
  #content > section.half {
    flex: 1 1 100%;
  }
}

#content img {
  max-width: 100%;
  height: auto;
}

#ntarce-current-event img {
  width:50% !important;
}

#content img.author {
  width: 40%;
  float: right;
  margin: 0 0 1em 1em;
}

#content > hr {
  flex: 1 1 100%;
  border: none;
  border-top: 1px solid #D4A050;
  margin: 0;
}

#content p,
#content li {
  max-width: 70ch;
  line-height: 1.6;
}

#content li {
  margin-bottom: 0.8em;
}

#content a {
  color: #2C1810;
}

#content a.action {
  display: inline-block;
  background: #2C1810;
  color: #F5E6D0;
  font-weight: bold;
  padding: 0.8em 1em;
  margin: 0.5em 0;
  text-decoration: none;
  position: relative;
  top: 0;
}

#content a.action::after {
  content: " \00BB";
}

#content a.action:hover {
  top: -3px;
  left: -2px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.3);
}

#content a.action:active {
  top: 5px;
  left: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

section {
  margin: 0;
}

section.emphasized {
  background: #fff;
  padding: 1em;
  box-sizing: border-box;
}

section.emphasized > h2:first-child {
  margin: -1em -1em 1em -1em;
  padding: 0.3em 1em;
  background: #2C1810;
  color: #fff;
}

.nav-bottom {
  display: flex;
  gap: 0;
  margin: 0;
  border: 6px solid #2C1810;
  border-top: none;
}

.nav-bottom a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1em;
  background: #D4A050;
  color: #2C1810;
  border-right: 1px solid #2C1810;
  font-weight: bold;
  text-decoration: none;
}

.nav-bottom a:last-child {
  border-right: none;
}

.nav-bottom a:hover {
  background: #E8C070;
}

.nav-bottom a.active {
  background: #F5E6D0;
}

.nav-short { display: none; }

@media (max-width: 550px) {
  .nav-full { display: none; }
  .nav-short { display: inline; }

  #nav a,
  .nav-bottom a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 1em 0.5em;
    justify-content: flex-end;
  }

  .nav-bottom a {
    justify-content: flex-start;
  }
}

#copyright {
  text-align: center;
  padding: 0.5em;
  color: #2C1810;
}

#copyright a {
  color: #2C1810;
}
