/* Wells Hamilton: styles used only by index.html.
   Load after style.css:
   <link rel="stylesheet" href="css/style.css" />
   <link rel="stylesheet" href="css/index.css" /> */

/* =========================================================
   HERO
   ========================================================= */

.glow {
  position: absolute;
  left: 0;
  top: 0;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2f4a55;
  filter: blur(110px);
  opacity: 0.3;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-home {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0e0c0a;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 110px 6% 120px;
}

.glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(90vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6d6d6d;
  filter: blur(110px);
  opacity: 0.35;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fl {
  position: absolute;
  width: clamp(72px, 11vw, 150px);
  pointer-events: auto;
}

.hc {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hc h1 {
  font-size: clamp(2.5rem, 7.4vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 18px 0 22px;
}

.hc h1 em {
  color: var(--gold);
}

.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.ln span {
  display: block;
}

.mq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.7);
}

.mq div {
  display: flex;
  width: max-content;
  animation: mq 34s linear infinite;
}

.mq span {
  padding: 0 28px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #b1b1b1;
  white-space: nowrap;
}

.mq span::after {
  content: "\2726";
  margin-left: 56px;
  color: var(--gold);
  font-style: normal;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .fl {
    opacity: 0.45;
  }

  .hero-home {
    padding-bottom: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mq div {
    animation: none;
  }
}

.typewriter {
  display: inline-flex;
  align-items: baseline;
}

#tw {
  display: inline;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 5px;
  background: currentColor;
  vertical-align: -0.05em;
  animation: caretBlink 0.8s steps(1) infinite;
}

.hc h1 .ln:first-child {
  min-height: 1.05em;
}

/* =========================================================
   SIDE RAIL
   ========================================================= */

.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  height: 230px;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

.rail::before,
.rf {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: #ffffff78;
}

.rf {
  background: #fff;
  transform-origin: top;
  transform: scaleY(0);
}

.rail a {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: #000;
  transition:
    background 0.3s,
    transform 0.3s;
}

.rail a.on {
  background: #fff;
  transform: scale(1.35);
}

.rail a::after {
  content: attr(data-l);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

.rail a:hover::after {
  opacity: 1;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .rail {
    right: 6px;
    height: 150px;
    display: none;
  }

  .rail a::after {
    display: none;
  }
}

/* =========================================================
   ABOUT / STATS
   ========================================================= */

.mf {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4.2vw, 3.5rem);
  line-height: 1.25;
  margin-top: 26px;
  max-width: 1050px;
  color: var(--dark);
}

.w {
  color: rgb(179 179 179 / 50%);
}

.hl {
  background: linear-gradient(rgb(107 107 107 / 40%), rgb(161 161 161 / 40%))
    left center / 0% 100% no-repeat;
  border-radius: 4px;
  padding: 0 0.12em;
  margin: 0 -0.12em;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px clamp(30px, 7vw, 100px);
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.stats b {
  display: block;
  font:
    400 clamp(2.4rem, 5vw, 4rem) "Playfair Display",
    serif;
  color: var(--dark);
}

.stats span {
  color: var(--dark);
  font-size: 0.9rem;
}

.about-home {
  padding: 150px 8% 110px;
  background: var(--color-background-gray);
}

@media (max-width: 768px) {
  .about-home {
    padding: 110px 6% 80px;
  }
}

@media (max-width: 860px) {
  .stats {
    display: none;
  }
}

/* =========================================================
   AUTHORS
   ========================================================= */

.authors {
  padding: 120px 8%;
  background: var(--ink);
}

.ag {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px clamp(20px, 3vw, 40px);
}

.ac {
  display: block;
  width: 100%;
}

.ac:hover .pt b {
  transform: scale(1.15);
}

.ac:hover .pt::after,
.ac:focus-visible .pt::after {
  transform: none;
}

.ac h3 {
  font-size: 1.6rem;
  margin-top: 16px;
}

.ac p {
  margin-top: 4px;
  color: #b9b1a3;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .ag {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .authors {
    padding: 90px 6%;
  }
}

@media (max-width: 600px) {
  .ag {
    gap: 34px 14px;
  }

  .ac h3 {
    font-size: 1.15rem;
  }

  .ac p {
    font-size: 0.78rem;
  }
}

.authors {
  padding: 120px 8% 100px;
  background: var(--dark);
}

.authors h2 {
  scroll-margin-top: 90px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .authors {
    padding: 100px 6% 80px;
  }
}

@media (max-width: 600px) {
  .authors {
    padding: 80px 5% 64px;
  }
}

.more-l {
  margin-top: 64px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.92rem;
  transition: 0.3s;
}

.chip small {
  opacity: 0.6;
}

.chip:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

/* =========================================================
   SECTION HEADING
   ========================================================= */

.sh {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 54px;
}

.sh h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hint {
  font-size: 0.85rem;
  color: var(--cream);
}

@media (max-width: 600px) {
  .hint {
    display: none;
  }
}

.hint {
  margin-top: 22px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: #d8d2c6;
}

.hint svg {
  animation: bob 1.6s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hint svg {
    animation: none;
  }
}

/* =========================================================
   FEATURED BOOKS
   ========================================================= */

.hs {
  background: var(--color-background-gray);
  padding: 110px 0;
  color: var(--dark);
}

.hs .sh {
  padding: 0 8%;
}

.track {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  padding: 0 8%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.bc {
  flex: 0 0 clamp(170px, 19vw, 240px);
  scroll-snap-align: start;
}

.bw {
  perspective: 700px;
}

.bc h3 {
  font-size: 1.3rem;
  margin-top: 20px;
  line-height: 1.15;
}

.bc p {
  margin-top: 4px;
  color: #333333;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .hs {
    height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .track {
    overflow: visible;
    width: max-content;
    padding-right: 18vw;
    margin-top: 10px;
  }

  .hs .sh {
    margin-bottom: 34px;
  }
}

.bw {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* =========================================================
   VIDEOS
   ========================================================= */

.videos-sec {
  background: #111111;
  padding: 120px 8%;
}

.vg {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.vc {
  display: block;
  text-align: left;
}

.vc.feat {
  grid-row: 1 / 3;
}

.vp {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 55%
    ),
    linear-gradient(160deg, var(--c1), var(--c2));
}

.pl {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  transition: transform 0.4s;
}

.vc:hover .pl {
  transform: scale(1.12);
}

.vc .eyebrow {
  display: block;
  margin-top: 16px;
}

.vc h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 6px;
}

.vc.feat h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.vc p {
  margin-top: 6px;
  color: #b9b1a3;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .vg {
    grid-template-columns: 1fr;
  }

  .vc.feat {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .videos-sec {
    padding: 80px 6%;
  }
}

/* =========================================================
   NOTES
   ========================================================= */

.notes {
  background: var(--color-background-gray);
  color: var(--dark);
  padding: 120px 8%;
}

.notes .eyebrow {
  color: #555;
}

.notes h2 {
  max-width: 14em;
  margin: 14px 0 56px;
}

.nc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.nc h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.nc p,
.nb {
  line-height: 1.85;
  color: #333;
}

.nb {
  margin: 56px 0 26px;
  max-width: 38rem;
  font-size: 1.1rem;
}

.notes .cta {
  color: #fff;
}

.notes .cta:hover {
  color: var(--dark);
}

@media (max-width: 860px) {
  .nc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .notes {
    padding: 80px 6%;
  }
}

/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}
