* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #17120f;
  color: #f4ead8;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.topbar {
  height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff12;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.wordmark {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #c99a5b;
  border-radius: 50%;
  font: italic 19px Georgia;
  color: #d8ad75;
}

.topbar nav {
  display: flex;
  gap: 35px;
  color: #b8aa99;
  font-size: 11px;
}

.topbar nav a:hover,
.site-footer a:hover {
  color: #e4b879;
}

.top-cta {
  font-size: 11px;
  border: 1px solid #8b6b48;
  padding: 11px 16px;
  color: #e9c391;
}

.top-cta span {
  padding-left: 15px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #f4ead8;
  font-size: 22px;
}

/* HERO / LIBRARY ENTRANCE */

.entrance {
  min-height: 850px;
  height: 100vh;
  max-height: 1100px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  padding: 110px 8vw 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 48%, #63452d55, transparent 43%),
    linear-gradient(120deg, #17120f 0%, #21170f 100%);
}

.entrance-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.eyebrow,
.section-kicker {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #c69a66;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  background: #d9a768;
  border-radius: 50%;
  box-shadow: 0 0 15px #d9a768;
}

.entrance h1,
.library-heading h2,
.journey h2,
.community h2 {
  font: 500 clamp(52px, 6.3vw, 88px)/1.04 "Playfair Display", serif;
  letter-spacing: -2px;
  margin: 28px 0;
}

.entrance h1 em,
.library-heading h2 em,
.journey h2 em,
.community h2 em {
  color: #d8ad75;
  font-weight: 500;
}

.intro {
  max-width: 400px;
  color: #b7a99a;
  font-size: 14px;
  line-height: 1.9;
}

.gold-button {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  padding: 16px 20px;
  background: #c7955e;
  color: #1e1711;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-top: 26px;
  transition: .3s;
}

.gold-button:hover {
  background: #e3b77e;
  transform: translateY(-3px);
}

.entrance-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 68px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8f8173;
}

.note-line {
  width: 35px;
  height: 1px;
  background: #a77c4e;
}

/* DECORATIVE 3D SHELF */

.entrance-scene {
  height: 610px;
  position: relative;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.window-glow {
  position: absolute;
  width: 370px;
  height: 420px;
  right: 9%;
  top: 4%;
  background: linear-gradient(130deg, #d7a66b22, #f5c98c05);
  filter: blur(15px);
  border: 1px solid #d5a46b22;
  box-shadow: 0 0 100px #c58b4b20;
}

.lamp {
  position: absolute;
  right: 3%;
  top: 0;
  width: 90px;
  height: 150px;
  z-index: 3;
}

.lamp i {
  display: block;
  width: 85px;
  height: 55px;
  background: linear-gradient(120deg, #9d7046, #e6bd7d, #795331);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 20px #e5b36a66);
}

.lamp b {
  display: block;
  width: 4px;
  height: 90px;
  background: #9a744d;
  margin: auto;
}

.scene-shelf {
  position: absolute;
  right: 0;
  top: 16%;
  width: 94%;
  height: 330px;
  transform: rotateY(-9deg) rotateX(2deg);
  transform-style: preserve-3d;
  background: linear-gradient(90deg, #3b2417, #28180f 12%, #382217 90%, #21140e);
  box-shadow: 18px 24px 45px #0009, inset 0 0 40px #0008;
  padding: 25px 25px 0;
}

.shelf-row {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0 12px;
}

.spine {
  display: block;
  width: 8.5%;
  height: 95px;
  border-radius: 2px 3px 0 0;
  box-shadow: inset 4px 0 5px #ffffff19, inset -3px 0 4px #0005;
  position: relative;
}

.spine:after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 15px;
  height: 1px;
  background: #e9c58b88;
  box-shadow: 0 5px #e9c58b44, 0 63px #e9c58b66;
}

.s1 { height: 90px; background: #8b4935; }
.s2 { height: 108px; background: #354b3b; }
.s3 { height: 100px; background: #b18b52; }
.s4 { height: 115px; background: #473b5b; }
.s5 { height: 93px; background: #9c6745; }
.s6 { height: 106px; background: #344b54; }
.s7 { height: 98px; background: #a34d38; }
.s8 { height: 111px; background: #67543c; }

.wood-plank {
  height: 13px;
  background: linear-gradient(#a06e43, #53331d 40%, #26170e);
  box-shadow: 0 9px 14px #0008;
  transform: translateZ(10px);
}

.lower {
  height: 130px;
  align-items: flex-end;
}

.s9 { height: 110px; background: #49533e; }
.s10 { height: 98px; background: #98643f; }
.s11 { height: 120px; background: #47384e; }
.s12 { height: 105px; background: #b48b53; }
.s13 { height: 115px; background: #4d5b59; }
.s14 { height: 98px; background: #a34e3c; }
.s15 { height: 108px; background: #76523a; }

/* OPEN BOOK IN HERO */

.open-book-art {
  position: absolute;
  z-index: 4;
  right: 14%;
  bottom: 6%;
  width: 440px;
  height: 240px;
  display: flex;
  filter: drop-shadow(0 25px 22px #000b);
  transform: rotate(-5deg) rotateY(-9deg);
  transform-style: preserve-3d;
}

.book-left,
.book-right {
  width: 50%;
  height: 100%;
  padding: 30px 25px;
  background: linear-gradient(100deg, #e8d7b5, #f3e8ce 75%, #cbb58e);
  color: #493323;
  position: relative;
  box-shadow: inset 0 0 14px #6c4a2a22;
}

.book-left {
  border-radius: 4px 0 0 5px;
  transform: skewY(2deg);
  border-right: 1px solid #9e805b;
}

.book-right {
  border-radius: 0 4px 5px 0;
  transform: skewY(-2deg);
}

.book-left small {
  font-size: 7px;
  letter-spacing: 2px;
}

.book-left strong {
  display: block;
  font: 600 29px/1.1 "Playfair Display";
  margin-top: 38px;
}

.book-left i {
  position: absolute;
  bottom: 20px;
  font-size: 6px;
  letter-spacing: 1px;
  font-style: normal;
}

.page-lines {
  height: 50px;
  margin-top: 24px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 8px,
    #9c866c55 9px 10px
  );
}

.page-lines.short {
  width: 75%;
  height: 28px;
  margin-top: 8px;
}

.book-right b {
  display: block;
  font: 600 19px/1.3 "Playfair Display";
  margin-top: 18px;
}

.scene-caption {
  position: absolute;
  right: 5%;
  bottom: 1%;
  font-size: 8px;
  letter-spacing: 2px;
  color: #b99a77;
}

.scene-caption span {
  color: #74604b;
  margin-left: 18px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 8vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #927e68;
}

.scroll-cue span {
  height: 35px;
  width: 1px;
  background: #b88b5a;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  50% {
    transform: scaleY(.45);
    opacity: .45;
  }
}

/* MAIN LIBRARY SECTION */

.library-intro {
  padding: 130px 8vw 110px;
  background: #e8dfcf;
  color: #281e16;
  position: relative;
}

.library-intro .section-kicker,
.journey .section-kicker {
  color: #8e6742;
}

.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.library-heading h2,
.journey h2 {
  font-size: clamp(48px, 5vw, 70px);
  margin: 20px 0 45px;
}

.library-heading p {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.9;
  color: #776b5c;
  margin-bottom: 48px;
}

.shelf-room {
  background: radial-gradient(ellipse at 50% 15%, #866044, #3b281c 70%);
  padding: 32px 5% 22px;
  perspective: 1400px;
  box-shadow: 0 28px 65px #34221630;
  position: relative;
  overflow: hidden;
}

.room-label {
  display: flex;
  justify-content: space-between;
  color: #d2b18a;
  font-size: 8px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.grand-shelf {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(1deg);
  padding: 15px 20px 0;
  background: linear-gradient(90deg, #4b2e1c, #5b3924 50%, #3c2518);
  box-shadow: inset 0 0 50px #160d08, 0 30px 35px #1b100a99;
}

.shelf-top {
  height: 8px;
  background: #a77b4e;
  box-shadow: 0 8px 12px #160d0a;
}

.book-row {
  height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(5px, 1vw, 13px);
  padding: 0 2%;
  transform-style: preserve-3d;
}

.shelf-board {
  height: 17px;
  background: linear-gradient(#c0925e, #684326 45%, #392216);
  box-shadow: 0 12px 18px #130b07;
  position: relative;
  z-index: 2;
}

.shelf-shadow {
  height: 15px;
  background: #1a100b;
}

.second-row {
  height: 200px;
}

.second-board {
  margin-bottom: 0;
}

.shelf-floor {
  height: 24px;
  background: linear-gradient(#5d3922, #27180f);
  box-shadow: 0 22px 28px #0004;
}

.shelf-hint {
  text-align: center;
  color: #d0b08a;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 28px;
}

.library-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  color: #897a68;
  font-size: 8px;
  letter-spacing: 1.5px;
}

/* INTERACTIVE BOOK SPINES */

.reader-book {
  --book: #9a573b;
  position: relative;
  flex: 1 1 0;
  max-width: 94px;
  min-width: 32px;
  height: var(--height, 185px);
  border: 0;
  border-radius: 3px 5px 1px 1px;
  cursor: pointer;
  transform: translateZ(0);
  transform-origin: center bottom;
  transition:
    transform .32s cubic-bezier(.2, .8, .2, 1),
    filter .3s;
  box-shadow:
    inset 5px 0 7px #ffffff25,
    inset -5px 0 8px #0005,
    5px 0 5px #130b08,
    0 5px 8px #160d08;
  color: #f5dfb9;
  padding: 12px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.reader-book:before {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border: 1px solid #f0d5a455;
  pointer-events: none;
}

.reader-book:after {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  top: 28px;
  height: 1px;
  background: #f0d5a477;
  box-shadow: 0 4px #f0d5a433;
}

.reader-book .spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 clamp(8px, 1vw, 12px) "Playfair Display";
  letter-spacing: 1px;
  max-height: 70%;
  overflow: hidden;
}

.reader-book .spine-author {
  font-size: 7px;
  letter-spacing: 1px;
  opacity: .75;
}

.reader-book .spine-symbol {
  font-size: 18px;
  opacity: .8;
}

.reader-book:hover,
.reader-book:focus-visible {
  transform: translateY(-28px) translateZ(45px) rotateY(-5deg) scale(1.08);
  filter: brightness(1.2);
  z-index: 5;
  outline: 1px solid #e4bd83;
}

.reader-book.selected {
  transform: translateY(-34px) translateZ(60px) rotateY(-9deg) scale(1.12);
  z-index: 8;
  filter: brightness(1.25);
}

/* HOW IT WORKS */

.journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
  padding: 130px 12vw;
  background: #21170f;
  overflow: hidden;
}

.journey-visual {
  height: 500px;
  position: relative;
  perspective: 1000px;
}

.journey-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid #b88b5a55;
  border-radius: 50%;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 35px #b88b5a0a, 0 0 0 75px #b88b5a08;
}

.floating-page {
  position: absolute;
  box-shadow: 0 25px 50px #0008;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transform-style: preserve-3d;
}

.page-one {
  width: 250px;
  height: 340px;
  left: 12%;
  top: 70px;
  background: #e7d9bb;
  color: #473322;
  font: 500 28px/1.3 "Playfair Display";
  transform: rotateY(17deg) rotateZ(-7deg);
  z-index: 2;
}

.page-two,
.page-three {
  width: 155px;
  height: 220px;
  background: #7c4b37;
  color: #f0d6aa;
  left: 52%;
  top: 0;
  transform: rotateY(-22deg) rotateZ(9deg);
}

.page-two b,
.page-three b {
  font: 500 54px "Playfair Display";
}

.page-two small,
.page-three small {
  letter-spacing: 2px;
  font-size: 8px;
}

.page-three {
  top: 270px;
  left: 55%;
  background: #405044;
  transform: rotateY(-18deg) rotateZ(8deg);
}

.journey-copy {
  max-width: 520px;
}

.journey h2 {
  color: #f4ead8;
}

.journey-copy > p {
  color: #b8a998;
  font-size: 13px;
  line-height: 1.9;
  max-width: 440px;
}

.steps {
  margin-top: 38px;
  border-top: 1px solid #ffffff20;
}

.steps > div {
  display: flex;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid #ffffff20;
}

.steps > div > b {
  color: #d4a56e;
  font: italic 20px "Playfair Display";
}

.steps strong,
.steps small {
  display: block;
}

.steps strong {
  font-size: 12px;
  font-weight: 600;
}

.steps small {
  font-size: 10px;
  color: #a99988;
  margin-top: 6px;
}

/* COMMUNITY SECTION */

.community {
  padding: 115px 8vw 25px;
  text-align: center;
  background: #d9c9ae;
  color: #281e16;
  position: relative;
  overflow: hidden;
}

.community:before,
.community:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid #8d674433;
  border-radius: 50%;
  top: -180px;
  left: -140px;
  box-shadow: 0 0 0 35px #8d674411, 0 0 0 75px #8d67440a;
}

.community:after {
  left: auto;
  right: -160px;
  top: auto;
  bottom: -230px;
}

.community h2 {
  font-size: clamp(48px, 5.5vw, 74px);
  margin: 25px 0;
}

.community > p {
  color: #766653;
  font-size: 13px;
}

.community .gold-button {
  margin-bottom: 90px;
}

.community-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #8f755455;
  padding: 22px 0 0;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #78664f;
}

.site-footer {
  padding: 22px 8vw;
  display: flex;
  justify-content: space-between;
  color: #8e7d6b;
  font-size: 8px;
  letter-spacing: 1.5px;
}

.site-footer > span:first-child {
  color: #d2a36b;
}

/* READER PROFILE BOOK OPENING */

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: radial-gradient(ellipse at 50% 45%, #67472e, #17100c 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 55px 20px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s, visibility .45s;
  perspective: 1600px;
}

.profile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.close-profile {
  position: absolute;
  right: 5vw;
  top: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid #d5ad7b66;
  border-radius: 50%;
  background: #20160f;
  color: #e8c493;
  font-size: 27px;
  cursor: pointer;
}

.profile-book-scene {
  width: min(100%, 960px);
  height: min(72vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.profile-book {
  width: min(100%, 900px);
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
  transform: rotateY(0deg);
  filter: drop-shadow(0 35px 30px #0009);
}

.profile-overlay.open .profile-book {
  transform: rotateY(-8deg);
}

.profile-cover {
  position: absolute;
  inset: 0 50% 0 0;
  background: linear-gradient(110deg, #72412f, #a16b45);
  transform-origin: right center;
  transform: rotateY(0deg);
  backface-visibility: hidden;
  z-index: 3;
  padding: 35px;
  color: #f4dfbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d7b17a88;
  box-shadow: inset 10px 0 25px #0003, inset -3px 0 10px #0004;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}

.profile-overlay.open .profile-cover {
  transform: rotateY(-155deg);
}

.cover-top,
.cover-bottom {
  font-size: 8px;
  letter-spacing: 2px;
}

.cover-art {
  font-size: 95px;
  color: #e5bf88;
  text-shadow: 0 8px 20px #27160f;
}

.cover-title {
  font: 600 clamp(22px, 4vw, 42px) "Playfair Display";
  text-align: center;
  letter-spacing: 2px;
}

.cover-author {
  font-size: 9px;
  letter-spacing: 2px;
}

.profile-pages {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eadfc9;
  color: #35271b;
  box-shadow: inset 0 0 30px #6b4a2a22;
}

.profile-page-left,
.profile-page-right {
  padding: clamp(20px, 4vw, 48px);
  position: relative;
  overflow: auto;
}

.profile-page-left {
  border-right: 1px solid #b7a080;
  background: linear-gradient(90deg, #e8dcc5, #f4ead7);
}

.profile-page-right {
  background: linear-gradient(90deg, #f0e5d0, #e8dcc5);
}

.page-overline {
  font-size: 8px;
  letter-spacing: 2px;
  color: #9b7048;
}

.reader-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #8c5b40;
  color: #f8e4c3;
  font: 32px "Playfair Display";
  margin: 25px 0 14px;
}

.profile-page-left h3 {
  font: 600 30px "Playfair Display";
  margin: 0;
}

.profile-page-left > p {
  font-size: 10px;
  color: #89745d;
}

.profile-page-left .reader-bio {
  font-size: 12px;
  line-height: 1.8;
  color: #574738;
  margin-top: 25px;
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.reader-tags span {
  font-size: 8px;
  padding: 7px 9px;
  border: 1px solid #c4ad8d;
  color: #755c43;
}

.profile-page-right h3 {
  font: 600 29px/1.15 "Playfair Display";
  margin: 22px 0;
}

.read-books {
  display: grid;
  gap: 9px;
}

.read-book {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #cdbb9e;
  padding-bottom: 8px;
}

.mini-cover {
  width: 29px;
  height: 39px;
  flex: none;
  background: #7c4b37;
  box-shadow: 2px 2px 3px #7c4b3744;
  display: grid;
  place-items: center;
  color: #f2d8ac;
  font: 12px Georgia;
}

.read-book strong {
  display: block;
  font: 600 11px "Playfair Display";
}

.read-book small {
  font-size: 8px;
  color: #8b765e;
}

.swap-wish {
  margin-top: 20px;
  padding: 12px;
  background: #ddceb3;
}

.swap-wish small,
.swap-wish strong {
  display: block;
}

.swap-wish small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #94724e;
}

.swap-wish strong {
  font: 600 13px "Playfair Display";
  margin-top: 6px;
}

.message-button {
  margin-top: 14px;
  width: 100%;
  padding: 13px;
  border: 0;
  background: #7d4b34;
  color: #fff0d4;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.profile-instruction {
  margin-top: 20px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #b99b77;
}

/* NOTIFICATION */

.toast {
  position: fixed;
  z-index: 70;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #e5d5b7;
  color: #2d2117;
  padding: 13px 20px;
  font-size: 11px;
  transition: .3s;
  box-shadow: 0 8px 30px #0005;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TABLET */

@media (max-width: 900px) {
  .entrance {
    grid-template-columns: 1fr;
    min-height: 1050px;
    height: auto;
    padding-top: 150px;
  }

  .entrance-copy {
    max-width: 700px;
  }

  .entrance h1 {
    font-size: 68px;
  }

  .entrance-scene {
    height: 470px;
    margin-top: 35px;
  }

  .scene-shelf {
    width: 100%;
  }

  .open-book-art {
    right: 18%;
    width: 380px;
    height: 210px;
  }

  .scroll-cue {
    display: none;
  }

  .journey {
    padding: 100px 8vw;
    gap: 4%;
  }

  .journey-visual {
    transform: scale(.85);
    transform-origin: center;
  }

  .profile-book-scene {
    height: 75vh;
  }
}

/* MOBILE */

@media (max-width: 620px) {
  .topbar {
    height: 65px;
    padding: 0 5vw;
  }

  .topbar nav,
  .top-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .topbar.nav-open nav {
    display: flex;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: #21170f;
    flex-direction: column;
    gap: 18px;
  }

  .entrance {
    padding: 125px 7vw 50px;
    min-height: 900px;
  }

  .entrance h1 {
    font-size: 55px;
  }

  .intro {
    font-size: 12px;
  }

  .entrance-note {
    font-size: 7px;
    margin-top: 40px;
  }

  .entrance-scene {
    height: 370px;
    margin: 25px -5vw 0;
  }

  .scene-shelf {
    top: 13%;
    height: 245px;
    padding: 15px;
  }

  .shelf-row {
    height: 90px;
  }

  .spine {
    height: 75px;
  }

  .lower {
    height: 90px;
  }

  .wood-plank {
    height: 10px;
  }

  .open-book-art {
    width: 270px;
    height: 150px;
    right: 13%;
    bottom: 4%;
  }

  .book-left,
  .book-right {
    padding: 17px 13px;
  }

  .book-left strong {
    font-size: 19px;
    margin-top: 25px;
  }

  .book-right b {
    font-size: 13px;
  }

  .page-lines {
    margin-top: 15px;
  }

  .scene-caption {
    font-size: 6px;
  }

  .library-intro {
    padding: 85px 6vw;
  }

  .library-heading {
    display: block;
  }

  .library-heading h2 {
    font-size: 51px;
    margin-bottom: 15px;
  }

  .library-heading p {
    margin: 0 0 30px;
  }

  .shelf-room {
    padding: 20px 10px;
  }

  .room-label {
    font-size: 6px;
  }

  .book-row {
    height: 170px;
    gap: 4px;
    padding: 0 4px;
  }

  .second-row {
    height: 150px;
  }

  .reader-book {
    min-width: 0;
    padding: 8px 2px;
  }

  .reader-book .spine-title {
    font-size: 7px;
  }

  .reader-book .spine-author {
    font-size: 5px;
  }

  .reader-book .spine-symbol {
    font-size: 12px;
  }

  .shelf-hint {
    font-size: 6px;
    line-height: 1.6;
  }

  .library-footer {
    font-size: 6px;
    gap: 10px;
  }

  .journey {
    display: flex;
    flex-direction: column-reverse;
    padding: 80px 7vw;
  }

  .journey-visual {
    width: 100%;
    height: 380px;
    transform: scale(.78);
    margin-top: 15px;
  }

  .journey h2 {
    font-size: 50px;
  }

  .community {
    padding: 85px 6vw 20px;
  }

  .community h2 {
    font-size: 48px;
  }

  .community-bottom {
    font-size: 6px;
    gap: 9px;
  }

  .site-footer {
    padding: 20px 6vw;
    font-size: 6px;
    gap: 12px;
  }

  .profile-overlay {
    padding: 65px 12px 20px;
  }

  .profile-book-scene {
    height: auto;
    min-height: 650px;
    align-items: flex-start;
  }

  .profile-book {
    height: auto;
    min-height: 630px;
  }

  .profile-cover {
    inset: 0 0 0 0;
    height: 100%;
    padding: 30px;
  }

  .profile-overlay.open .profile-cover {
    transform: rotateY(-160deg) translateZ(2px);
  }

  .profile-pages {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 630px;
  }

  .profile-page-left,
  .profile-page-right {
    padding: 22px;
  }

  .profile-page-left {
    min-height: 280px;
  }

  .reader-avatar {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin: 15px 0 10px;
  }

  .profile-page-left h3 {
    font-size: 24px;
  }

  .profile-page-left .reader-bio {
    margin-top: 12px;
  }

  .profile-page-right h3 {
    font-size: 24px;
    margin: 12px 0;
  }

  .read-books {
    grid-template-columns: 1fr 1fr;
  }

  .read-book {
    gap: 7px;
  }

  .profile-instruction {
    font-size: 6px;
    text-align: center;
  }

  .close-profile {
    top: 13px;
    right: 15px;
    width: 36px;
    height: 36px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
