@font-face{
  font-family: "Gauche";
  src: url("fonts/GaucheUNLICENSEDTRIAL-Regular.woff") format("woff");
}

body{
  margin: 0;
  background: #d9cf9c;
  font-family: "Gauche", Arial, sans-serif;
}

.layout{
  display: grid;
  grid-template-columns: 
    minmax(220px, 20%)
    minmax(400px, 45%)
    minmax(300px, 35%);
  gap: 40px;
  align-items: start;

  padding: 40px; 
}



.left{
  position: sticky;
  top: 20px;      
  align-self: start;  

  display: flex;
  flex-direction: column;
  gap: 30px;


}

.menu{
  border: 3px solid black;
  background: #e5e5e5;
  padding: 0;
}


.menu summary{
  list-style: none;         
  cursor: pointer;
  padding: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.menu summary::after{
  content: "▾";
  font-size: 12px;
}


.menu[open] summary::after{
  content: "▴";
}


.menu summary::-webkit-details-marker{
  display: none;
}


.menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid black;
}

.menu li{
  border-bottom: 2px solid black;
}

.menu li:last-child{
  border-bottom: none;
}

.menu a{
  display: block;
  padding: 12px;
  color: black;
  text-decoration: none;
  opacity: 0.85;
}

.menu a:hover{
  opacity: 1;
}


.footnotes{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note{
  border: 3px solid black;
  background: #e5e5e5;
  padding: 18px;
  font-size: 12px;
  line-height: 1.4;
}


.gif{
  width: 100%;
  display: block; 
}


.text-block{
  border: 3px solid black;
  background: #e5e5e5;
  padding: 40px;
  font-size: 16px;
  line-height: 1.7;
}


.figure{
  margin: 0;
}

.figure img{
  width: 100%;
  display: block;
  border: 3px solid black;
}

.figure figcaption{
  margin-top: 10px;
  padding-left: 30%;
  font-size: 14px;
}

.figure a{
  color: black;
}

.footer{
  width: 100%;
  margin-top: 80px;
  padding: 30px 20px;

  border-top: 3px solid black;
  background: #f22727;

  text-align: center;
  font-size: 14px;
}


.preface-page .layout{
  grid-template-columns: 20% 80%;
}

.preface-content{
  display: flex;
  align-items: flex-start;
}

.preface-box{
  width: 100%;
  border: 3px solid black;
  background: #e5e5e5;
  padding: 60px 40px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.ornament{
  font-size: 1.6rem;
  letter-spacing: 4px;
  opacity: 0.6;
  text-align: center;
  margin: 10px 0;
}


.preface-image-wrap{
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 0);
}

.preface-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  display: block;
}


.preface-overlay{
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 1400px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 50px;
  box-sizing: border-box;
}

.preface-big-text{
  margin: 0;
  max-width: 88%;
  white-space: pre-line;
  text-align: center;
  color: black;
  font-size: 0.72rem;
  line-height: 1.32;
  overflow-wrap: break-word;
}