
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --left-pad: 96px;
  --top-pad: 34px;
  --title-size: 44px;

  --sidebar-w: 220px;
  --sidebar-bg: #262626;
  --sidebar-text: #ffffff;
}


html, body{
  height: 100%;
  background: #000;
}

body{
  font-family: "Times New Roman", serif;
  color: #fff;
  min-height: 100vh;
}


.logo-link{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 60;
}

.logo-img{
  width: 120px;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}
.logo-link:hover .logo-img{ transform: scale(1.1); }

.months-sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 2px solid rgba(0,0,0,0.25);
  z-index: 40;

  padding: 22px 14px;
  overflow-y: auto;
}

.months-nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.month-link{
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.4;
  color: var(--sidebar-text);
  text-decoration: none;

  padding: 10px 10px;
  border-radius: 10px;

  transition: transform 0.15s ease, background 0.15s ease;
}

.month-link:hover{
  background: rgba(0,0,0,0.08);
  transform: translateX(3px);
}

.month-link.active{
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(0,0,0,0.18);
}


.topbar{
  padding-top: var(--top-pad);

  padding-left: calc(var(--left-pad) + var(--sidebar-w));
}

.page-title{
  font-family: "Press Start 2P", monospace;
  font-size: var(--title-size);
  text-shadow: 0 3px 0 rgba(0,0,0,0.7);
}


.diary-container{

  padding-left: calc(var(--left-pad) + var(--sidebar-w));
  padding-right: 60px;
  padding-top: 60px;
  padding-bottom: 120px;
  max-width: 1100px;
}


.diary-entry{
  margin-bottom: 90px;
}


.entry-header{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}


.entry-title{
  font-size: 26px;
  text-align: left;
}

.entry-date{
  font-size: 18px;
  opacity: 0.8;
  text-align: right;
}


.entry-divider{
  margin: 18px 0 28px 0;
  height: 1px;
  background: #fff;
  opacity: 0.5;
}


.entry-content p{
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 18px;
  text-indent: 40px;  
}

.entry-media{
  margin: 30px 0;
  text-align: center;
}

.entry-media img,
.entry-media video{
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}

.entry-media video{
  width: 100%;
}

@media (max-width: 980px){
  :root{
    --sidebar-w: 190px;
    --left-pad: 48px;
    --title-size: 38px;
  }
  .month-link{ font-size: 10px; }
}

@media (max-width: 760px){
  :root{
    --sidebar-w: 160px;
    --left-pad: 28px;
    --title-size: 32px;
  }
  .entry-title{ font-size: 22px; }
  .entry-date{ font-size: 16px; }
}

.text-divider-line{
  display: flex;
  align-items: center;
  text-align: center;
  margin: 50px 0;
}

.text-divider-line::before,
.text-divider-line::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.text-divider-line span{
  margin: 0 20px;
  font-size: 18px;
  opacity: 0.8;
}

.entry-content{
  margin-top: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.5);
}

.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  margin: 30px 0;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}