* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e8e5dc;
  color: #111;
  font-family: "Courier New", monospace;
}

/* INTRO */

.hero {
  min-height: 100vh;
  background: #0b0b0b;
  display: grid;
  place-items: center;
  padding: 22px;
}

.poster {
  width: min(92vw, 900px);
  height: min(92vh, 1100px);
  background: linear-gradient(180deg, #c9dde3 0%, #ece8e0 100%);
  border: 24px solid #111;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(255,255,255,.9), transparent 18%),
    radial-gradient(circle at 65% 25%, rgba(255,255,255,.7), transparent 22%),
    radial-gradient(circle at 55% 48%, rgba(60,120,140,.45), transparent 24%),
    linear-gradient(160deg, #bfdde6, #f4eee7);
}

.boat {
  position: absolute;
  top: 18%;
  left: 42%;
  font-size: 92px;
  color: #111;
  opacity: .9;
  transform: rotate(-7deg);
  z-index: 4;
}

.poster-title {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 9%;
  margin: 0;
  font-size: clamp(64px, 15vw, 180px);
  line-height: .8;
  letter-spacing: -0.12em;
  color: #111;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  z-index: 5;
}

.poster-footer {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 24px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.poster-footer a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 4px;
}

.poster-footer a:hover {
  opacity: .5;
}

/* ALL SECTIONS */

section {
  min-height: 100vh;
  padding: 80px 8%;
}

h1 {
  font-size: 48px;
  margin-bottom: 5px;
}

.subtitle {
  margin-bottom: 60px;
  opacity: 0.65;
}

/* BIBLIOTHEK */
.library-section {
  min-height: 100vh;
  background: #05070d;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.library-topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
  z-index: 20;
}

.library-topbar a {
  color: #fff;
  text-decoration: none;
}

.library-shell {
  min-height: 100vh;
  padding: 74px 22px 26px;
  display: grid;
  grid-template-columns: min(34vw, 420px) 1fr min(34vw, 420px);
  gap: 24px;
  align-items: center;
}

.library-left h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.library-left p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
}

.library-center {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.library-ring {
  position: absolute;
  width: min(62vh, 62vw, 720px);
  height: min(62vh, 62vw, 720px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}

.library-orbit {
  position: absolute;
  width: min(62vh, 62vw, 720px);
  height: min(62vh, 62vw, 720px);
  border-radius: 50%;
}

.bookstage {
  width: min(24vh, 24vw, 220px);
  aspect-ratio: 3/4;
  position: relative;
  z-index: 10;
}

.bookcard {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: rgba(255,255,255,.08);
}

.bookcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  transform:
    translate(-50%,-50%)
    translate(var(--x), var(--y))
    scale(var(--s));
  transition: .3s ease;
  cursor: pointer;
  background: rgba(255,255,255,.12);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.dim {
  opacity: .3;
}

.book-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 70vh;
  overflow: auto;
}

.book-item {
  border-top: 1px solid rgba(255,255,255,.15);
}

.book-btn {
  width: 100%;
  padding: 12px 4px;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  font-family: inherit;
}

.book-item.active .book-btn {
  opacity: 1;
  color: #4da3ff;
}

@media (max-width: 900px) {
  .library-shell {
    grid-template-columns: 1fr;
  }

  .library-left,
  .library-right {
    max-width: 620px;
    margin: 0 auto;
  }

  .library-center {
    min-height: 420px;
  }
}


/* BLOG */

.blog-section {
  background: #dedbd1;
}

.blog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-list button {
  background: transparent;
  border: none;
  border-bottom: 1px solid #111;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 0;
  cursor: pointer;
}

.blog-list button:hover {
  opacity: 0.5;
}

.blog-post {
  max-width: 700px;
  background: #efede6;
  padding: 50px;
  min-height: 520px;
  line-height: 1.7;
  font-size: 15px;
}

.blog-post h2 {
  margin-top: 0;
  font-size: 32px;
}

.blog-post .date {
  margin-top: 40px;
  font-weight: bold;
}

/* HANDY */

@media (max-width: 800px) {
  .bottom-nav {
    flex-direction: column;
    gap: 14px;
    bottom: 30px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: 300px;
    height: 300px;
  }

  .book-info {
    width: 100%;
  }
}