
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --left-pad: 96px;
  --top-pad: 34px;
  --title-size: 44px;

  --text-shadow: 0 3px 0 rgba(0,0,0,0.70);
  --line: rgba(255,255,255,0.35);
}

html, body{
  height: 100%;
  background: #000;
}

body{
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.logo-link{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
}
.logo-img{
  width: 120px;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.18s ease;
}
.logo-link:hover .logo-img{ transform: scale(1.10); }

.topbar{
  padding-top: var(--top-pad);
  padding-left: var(--left-pad);
  padding-right: 28px;
}

.page-title{
  font-family: "Press Start 2P", monospace;
  font-size: var(--title-size);
  letter-spacing: 1px;
  line-height: 1.35;
  text-shadow: var(--text-shadow);
  padding-left: 260px;
}

.tabs{
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  padding-left: 260px;
}

.tab-btn{
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #fff;
  cursor: pointer;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  transition: transform 0.14s ease, background 0.14s ease;
}

.tab-btn:hover{ transform: scale(1.03); }
.tab-btn.is-active{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

.content{
  padding-left: 360px;
  padding-right: 28px;
  padding-top: 48px;
  padding-bottom: 110px;
  max-width: 1050px;
}

.tab-panel{ display: none; }
.tab-panel.is-open{ display: block; }

.poem{
  font-family: "Times New Roman", serif;
  padding: 0 0 54px 0;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.poem-title{
  font-size: 30px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 34px;
  padding-left: 0px;
}

.poem.is-preface .poem-body p{
  text-indent: 2em;
}

.poem-body{
  font-size: 19px;
  line-height: 1.95;
  white-space: normal;
  text-align: left;
  max-width: 60ch;
}

.poem-body p{
  text-indent: 0;         
  margin: 0 0 28px 0;   
  white-space: pre-wrap;  
}

.poem-body p:last-child{
  margin-bottom: 0;
}
.poem:nth-child(4) .poem-image{
  max-width: 900px;
  width: 110%;
}

.poem-image{
  display: flex;
  justify-content: left;
  max-width: 100%;
  width: 400px;
  height: auto;
  margin: 22px 0 30px 0;
  border-radius: 5px ;
}

.pdf-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 18px;
  max-width: 980px;
}

.pdf-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdf-title{
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.pdf-meta{
  font-family: "Times New Roman", serif;
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.7;
  white-space: pre-wrap;
}

.pdf-actions{
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.pdf-btn{
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.14s ease;
  display: inline-block;
}
.pdf-btn:hover{ transform: scale(1.03); }

.pdf-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  z-index: 999;
  padding: 24px;
}

.pdf-modal.is-open{ display: block; }

.pdf-close{
  position: fixed;
  top: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.pdf-close:hover{ transform: scale(1.06); }

.pdf-frame-wrap{
  width: min(1100px, 92vw);
  height: min(86vh, 900px);
  margin: 80px auto 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.pdf-frame{
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.poem-image{
  display: block;
  max-width: 100%;
  width: 400px;
  height: auto;
  margin: 22px 0 30px 0;
  border-radius: 5px ;
}


@media (max-width: 1100px){
  :root{ --left-pad: 48px; --title-size: 38px; }
  .pdf-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  :root{ --left-pad: 28px; --title-size: 32px; }
}