@font-face {
  font-family: 'Baskervville';
  src: url('/fonts/Baskervville-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Baskervville';
  src: url('/fonts/Baskervville-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Baskervville';
  src: url('/fonts/Baskervville-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'Baskervville';
  src: url('/fonts/Baskervville-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'Baskervville';
  src: url('/fonts/Baskervville-BoldItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/Cormorant-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Cormorant-M';
  src: url('/fonts/Cormorant-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Cormorant-B';
  src: url('/fonts/Cormorant-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Medieval';
  src: url('/fonts/MedievalSharp-Book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Insula';
  src: url('/fonts/INSULA__.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Rotunda';
  src: url('/fonts/Rotunda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Deutschische';
  src: url('/fonts/Deutschische.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

p {font-family: Baskervville, Cormorant-M, "Times New Roman", serif; font-size: 17px; font-variant-numeric: lining-nums; color: #241C14; line-height: 1.6; margin-bottom: 1.2em;}
strong, b { color: #8A3030; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #8A3030; outline-offset: 2px; }
h1 {font-family: "Medieval", "Times New Roman", serif; text-align: center; color: #3A4A3E; padding: 20px 0 12px;
border-bottom: 2px solid #D4AF37;
margin-bottom: 1.5em;
position: relative;
z-index: 1;
}
h2 {font-family: "Medieval", "Times New Roman", serif; font-size: 36px; color: #3A4A3E; border-bottom: 2px solid rgba(58, 74, 62, 0.3); padding-bottom: 8px; margin-top: 2em;}
h3 {font-family: "Medieval", "Times New Roman", serif; font-size: 26px; color: #3A4A3E; margin-top: 1.5em;}
h4 {font-family: "Medieval", "Times New Roman", serif; font-size: 22px; color: #3A4A3E;}
h5 {font-family: "Medieval", "Times New Roman", serif; font-size: 20px; color: #3A4A3E;}
h6 {
  font-family: "Medieval", "Times New Roman", serif;
  font-size: 30px;
  text-align: center;
  color: #3A4A3E;
  padding: 10px 0 8px;
  border-bottom: 2px solid #D4AF37;
  margin-bottom: 1em;
  position: relative;
  z-index: 1;
}
html {
  background-color: #050810;
}
html::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  background: linear-gradient(180deg, #050810 0%, #0a0e1a 50%, #0d1520 100%);
}
body {
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  cursor: url('/cursors/featherpenpointer.cur'), auto;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle 1px at 25px 35px, rgba(255,255,255,0.9), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 120px 90px, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    radial-gradient(circle 1.5px at 200px 150px, rgba(255,255,255,0.8), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 280px 60px, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 350px 180px, rgba(255,255,255,0.9), rgba(255,255,255,0)),
    radial-gradient(circle 1.5px at 80px 220px, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 180px 280px, rgba(255,255,255,0.8), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 320px 240px, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 50px 50px, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 150px 120px, rgba(255,255,255,0.4), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 250px 200px, rgba(255,255,255,0.6), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 320px 80px, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 100px 260px, rgba(255,255,255,0.7), rgba(255,255,255,0)),
    radial-gradient(circle 1px at 380px 160px, rgba(255,255,255,0.4), rgba(255,255,255,0));
  background-size: 400px 300px;
  background-repeat: repeat;
  animation: twinkle 2s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: -1;
  transform: rotate(20deg);
  background-image:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 100%),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.75) 100%);
  background-size: 140px 2px, 90px 2px, 180px 2px;
  background-position: 25% 20%, 55% 45%, 75% 70%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
  animation: shoot 14s linear infinite;
}

@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes shoot {
  0% { transform: rotate(20deg) translateX(-60%); opacity: 0; }
  4% { opacity: 1; }
  10% { transform: rotate(20deg) translateX(60%); opacity: 0; }
  100% { transform: rotate(20deg) translateX(60%); opacity: 0; }
}

a, button, summary {
  cursor: url('/cursors/featherpenlinkselect.cur'), pointer;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
    gap: 20px;
  padding: 20px;
}

.menu {
  background-image: url('pergamena_valmerwolf.jpg');
  background-position: center;
  background-repeat: repeat;
  width: 250px;
  height: auto;
  align-self: flex-start;
  padding: 20px;
  position: sticky;
  flex-shrink: 0;
  left: 20px;
  top: 20px;
  box-shadow:
  0 4px 8px rgba(0, 0, 0, 0.5),
  0 1px 3px rgba(0, 0, 0, 0.4),
  inset 0 1px 0 rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.3);
}
.menu-item {
    margin: 5px 0;
}
summary {
    display: block;
    padding: 2px 0;
    font-weight: bold;
    list-style: none;
    color: #3A4A3E;
    cursor: pointer;
}
summary::before {
    content: "\25B8";
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s;
    color: #8A3030;
}
details[open] > summary::before {
    transform: rotate(90deg);
}
summary::-webkit-details-marker {
    display: none;
}
.menu-submenu {
    margin-left: 15px;
}
.menu-item a {
    display: block;
    color: #241C14;
    text-decoration: none;
    padding: 2px 0;
}
.menu-item a:hover {
    text-decoration: underline;
}

.main {
  background-image: url('pergamena_valmerwolf.jpg');
  background-position: center;
  background-repeat: repeat;

  flex: 1;
  padding: 20px;
  min-width: 0;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3A4A3E rgba(58, 74, 62, 0.1);
  box-shadow:
  0 4px 8px rgba(0, 0, 0, 0.5),
  0 1px 3px rgba(0, 0, 0, 0.4),
  inset 0 1px 0 rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.3);
}

.main::-webkit-scrollbar { width: 10px; }
.main::-webkit-scrollbar-track { background: rgba(58, 74, 62, 0.08); }
.main::-webkit-scrollbar-thumb { background-color: #3A4A3E; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }

.home-button {
  display: block;
  margin-bottom: 12px;
  padding: 8px 10px;
  text-align: center;
  font-family: "Medieval", "Times New Roman", serif;
  text-decoration: none;
  color: #241C14;

  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.home-button:hover {
  text-decoration: underline;
}
.latest-menu {
  background-image: url('pergamena_valmerwolf.jpg');
  background-position: center;
  background-repeat: repeat;
  width: 250px;
    height: auto;
  align-self: flex-start;
  padding: 20px;
  position: sticky;
  flex-shrink: 0;
  left: 20px;
  top: 20px;
  box-shadow:
  0 4px 8px rgba(0, 0, 0, 0.5),
  0 1px 3px rgba(0, 0, 0, 0.4),
  inset 0 1px 0 rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.3);
}
.latest-menu-item {
    margin: 12px 0;
    padding: 12px;
    background-color: rgba(58, 74, 62, 0.06);
    border-left: 3px solid #3A4A3E;
}
.latest-menu-item p {
    font-size: 15px;
    line-height: 1.5;
    color: #4A5A6A;
    margin: 6px 0 0 0;
}
.main a { color: #8A3030; text-decoration: underline; text-decoration-color: rgba(138, 48, 48, 0.4); text-underline-offset: 3px; }
.main a:hover { color: #4A5A6A; text-decoration-color: #4A5A6A; }
.latest-menu-item a { color: #3A4A3E; text-decoration: none; font-weight: bold; }
.latest-menu-item a:hover { color: #8A3030; text-decoration: underline; }


/* For the heretical mobile users */

@media (max-width: 900px) {

  body {
    padding: 8px;
  }

  .container {
    flex-direction: column;
    width: auto;
    max-width: 100%;
    padding: 8px;
    gap: 12px;
  }

  .menu,
  .latest-menu {
    width: auto;
    max-width: none;
    box-sizing: border-box;

    position: static;
    left: auto;
    top: auto;

    align-self: stretch;
    padding: 12px;
  }

  .main {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    position: static;
    max-height: none;
    overflow: visible;
  }

  p {
    font-size: 16px;
    line-height: 1.5;
  }

  h1 {
    font-size: 32px;
    padding: 12px;
  }

  h2 {
    font-size: 28px;
  }

  h6 {
    font-size: 25px;
    padding: 8px;
  }

  .home-button {
    padding: 10px;
  }

  .menu-item a,
  summary {
    padding: 6px 0;
  }
}
