/* RESET */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: black;
  color: white;
  font-family: 'VT323', monospace;
  letter-spacing: 0.03em;
}

/* PAGE */

.page {
  position: relative;
  min-height: 100vh;
  background-image: url("images/fiction-background.jpg");
  background-repeat: repeat;
  background-size: auto;
  overflow-x: hidden;
}

/* TOP BANNER */

.top-banner-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 2;
  overflow: hidden;
}

.top-banner-border img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

/* PAGE TITLE */

.page-title {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  margin: 0;
  font-family: 'Kapakana', cursive;
  font-size: clamp(3.3rem, 6vw, 5.4rem);
  font-weight: normal;
  line-height: 1;
  color: white;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 2px 3px rgba(0,0,0,0.18);
}

/* NAV */

.top-nav {
  position: absolute;
  top: 76px;
  z-index: 6;
}

.single-nav {
  left: 24px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 14px 12px 14px;
  text-decoration: none;
  border-radius: 8px;
  background: black;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.12) inset,
    0 -2px 0 rgba(0,0,0,0.25) inset,
    0 4px 10px rgba(0,0,0,0.38),
    0 0 8px rgba(255,255,255,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.14) inset,
    0 -2px 0 rgba(0,0,0,0.25) inset,
    0 8px 16px rgba(0,0,0,0.42),
    0 0 10px rgba(255,255,255,0.08);
}

.nav-button:active {
  transform: translateY(1px);
}

.nav-text {
  font-family: 'Diplomata SC', serif;
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  color: white;
  text-shadow:
    0 0 3px rgba(255,255,255,0.2),
    0 0 6px rgba(255,255,255,0.08);
}

/* OVERLAY */

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* MAIN CONTENT */

.fiction-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 190px 30px 120px 30px;
}

/* FICTION LIST */

.fiction-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* FICTION ITEM */

.fiction-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 26px;
  background: rgba(0,0,0,0.92);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.10) inset,
    0 -2px 0 rgba(0,0,0,0.25) inset,
    0 8px 18px rgba(0,0,0,0.36),
    0 0 10px rgba(255,255,255,0.04);
  text-decoration: none;
  color: white;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
}

.fiction-item:hover {
  transform: translateY(-3px);
  opacity: 0.94;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.12) inset,
    0 -2px 0 rgba(0,0,0,0.25) inset,
    0 12px 24px rgba(0,0,0,0.42),
    0 0 14px rgba(255,255,255,0.06);
}

/* TEXT SIDE */

.fiction-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.fiction-title {
  display: block;
  font-family: 'VT323', monospace;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 14px;
  color: white;
}

.fiction-subtitle {
  display: block;
  font-family: 'VT323', monospace;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.96);
}

.fiction-abstract {
  display: block;
  font-family: 'VT323', monospace;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 95%;
}

/* IMAGE SIDE */

.fiction-image {
  width: 360px;
  height: 230px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

/* FOOTER */

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 20px 32px 20px;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* TABLET */

@media (max-width: 950px) {
  .fiction-content {
    padding: 185px 24px 110px 24px;
  }

  .fiction-item {
    gap: 22px;
    padding: 22px;
  }

  .fiction-image {
    width: 300px;
    height: 205px;
  }

  .fiction-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .page-title {
    font-size: clamp(2.6rem, 8vw, 4rem);
    top: 20px;
  }

  .top-nav {
    top: 84px;
  }

  .single-nav {
    left: 16px;
  }

  .fiction-content {
    padding: 180px 20px 100px 20px;
  }

  .fiction-item {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .fiction-text {
    text-align: center;
    align-items: center;
  }

  .fiction-abstract {
    max-width: 100%;
  }

  .fiction-image {
    width: min(100%, 420px);
    height: 240px;
  }
}

@media (max-width: 600px) {
  .top-banner-border {
    height: 132px;
  }

  .page-title {
    top: 18px;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .top-nav {
    top: 80px;
  }

  .nav-button {
    padding: 10px 8px 8px;
    border-radius: 6px;
  }

  .nav-text {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }

  .fiction-content {
    padding: 172px 18px 90px 18px;
  }

  .fiction-item {
    gap: 18px;
    padding: 18px;
  }

  .fiction-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .fiction-subtitle {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .fiction-abstract {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
  }

  .fiction-image {
    width: min(100%, 320px);
    height: 200px;
  }

  .site-footer {
    font-size: 0.8rem;
    line-height: 1.7;
    padding-bottom: 26px;
  }
}