/* THE LOVE I NEVER HAD — dark cinematic book teaser */

:root {
  --black: #070706;
  --ink: #0c0b09;
  --cream: #f2efe7;
  --muted: #a9a39a;
  --gold: #d9ad5f;
  --gold-soft: #c79548;
  --line: rgba(242, 239, 231, .16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), transparent);
  font-family: Arial, Helvetica, sans-serif;
}

.author-mark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .38em;
}

.site-header nav {
  display: flex;
  gap: 52px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
}

.site-header nav a {
  position: relative;
  padding: 12px 0;
  opacity: .82;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}

.site-header nav a:hover::after,
.site-header nav a.active::after { width: 100%; }

.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.64) 0%,
      rgba(0,0,0,.31) 36%,
      rgba(0,0,0,.08) 63%,
      rgba(0,0,0,.24) 100%),
    linear-gradient(0deg,
      rgba(0,0,0,.34) 0%,
      rgba(0,0,0,.02) 55%,
      rgba(0,0,0,.18) 100%),
    url("hero-background.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.02) 55%, rgba(0,0,0,.10) 100%),
    linear-gradient(0deg, rgba(0,0,0,.12), transparent 60%);
  pointer-events: none;
}

.door {
  display: none;
  display: none;
  position: absolute;
  z-index: 1;
  right: 18vw;
  top: 0;
  width: 32vw;
  height: 86vh;
  min-width: 330px;
  transform: perspective(1100px) rotateY(-5deg);
  transform-origin: right center;
}

.door-frame {
  position: absolute;
  inset: 0;
  border-left: 11px solid #191612;
  border-right: 11px solid #1b1712;
  border-bottom: 12px solid #15120f;
  box-shadow: inset 0 0 35px #000, 0 0 70px rgba(0,0,0,.8);
}

.door-surface {
  position: absolute;
  inset: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 32px),
    linear-gradient(90deg, #17130f, #0a0908 58%, #17110b);
}

.door-opening {
  position: absolute;
  top: 0;
  right: -20%;
  width: 55%;
  height: 100%;
  background: #050504;
  box-shadow: -28px 0 50px rgba(0,0,0,.9);
  overflow: hidden;
}

.opening-light {
  position: absolute;
  width: 150%;
  height: 150%;
  left: -90%;
  top: 20%;
  background: radial-gradient(ellipse, rgba(237,190,106,.48), rgba(122,76,31,.12) 35%, transparent 66%);
  transform: rotate(-11deg);
  filter: blur(7px);
}

.door-handle {
  position: absolute;
  top: 44%;
  right: 8%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b68b4b;
  box-shadow: 0 0 13px rgba(218,169,92,.35);
}

.door-glow {
  display: none;
  display: none;
  position: absolute;
  z-index: 0;
  right: 29vw;
  top: 19%;
  width: 20vw;
  height: 68vh;
  background: rgba(205,146,65,.10);
  filter: blur(55px);
}

.bed {
  display: none;
  display: none;
  position: absolute;
  z-index: 3;
  right: -3vw;
  bottom: 7vh;
  width: 31vw;
  height: 34vh;
  transform: rotate(-1deg);
}

.mattress {
  position: absolute;
  top: 0;
  left: 4%;
  width: 89%;
  height: 37%;
  border-radius: 9px 22px 10px 8px;
  background: linear-gradient(145deg, #29241d, #090807 65%);
  box-shadow: 0 22px 30px rgba(0,0,0,.65);
}

.blanket {
  position: absolute;
  top: 7%;
  left: 18%;
  width: 76%;
  height: 58%;
  border-radius: 20px 5px 8px 28px;
  background:
    repeating-linear-gradient(78deg, transparent 0 22px, rgba(255,255,255,.035) 23px 25px),
    linear-gradient(130deg, #171411, #342c22 45%, #090807 82%);
  box-shadow: -20px 18px 32px rgba(0,0,0,.72);
  transform: skewY(-6deg);
}

.bed-side {
  position: absolute;
  top: 30%;
  left: 7%;
  width: 83%;
  height: 32%;
  background: linear-gradient(#1a1510, #080706);
  border-bottom: 2px solid #32271b;
}

.bed-leg {
  position: absolute;
  top: 58%;
  right: 11%;
  width: 14px;
  height: 25%;
  background: #120e0b;
}

.shoe {
  display: none;
  display: none;
  position: absolute;
  z-index: 5;
  bottom: 4.5vh;
  width: 10vw;
  height: 4.2vw;
  min-width: 120px;
  min-height: 52px;
  background: linear-gradient(145deg, #24201b, #080807);
  border-radius: 48% 48% 24% 20% / 60% 55% 35% 35%;
  box-shadow: 0 15px 22px rgba(0,0,0,.85), inset 0 1px rgba(255,255,255,.08);
  transform: rotate(-8deg);
}

.shoe::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 18%;
  width: 55%;
  height: 30%;
  border-bottom: 2px solid rgba(240,215,177,.13);
  border-radius: 50%;
}

.shoe::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -3px;
  width: 86%;
  height: 8px;
  border-radius: 50%;
  background: #050504;
}

.shoe-left { right: 26vw; transform: rotate(11deg); }
.shoe-right { right: 18vw; bottom: 5.8vh; transform: rotate(-15deg) scale(.88); }

.lace {
  position: absolute;
  left: 33%;
  width: 42%;
  height: 1px;
  background: rgba(220,210,194,.25);
  transform: rotate(-10deg);
}
.l1 { top: 30%; }
.l2 { top: 40%; }
.l3 { top: 50%; }

.hero-content {
  position: relative;
  z-index: 10;
  width: min(840px, 49vw);
  min-width: 580px;
  padding-top: 22vh;
  margin-left: 5.3vw;
}

.eyebrow,
.release,
.form-note,
.scroll-cue,
.section-number,
.small-label,
.fragment-mark,
footer {
  font-family: Arial, Helvetica, sans-serif;
}

.eyebrow {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .38em;
  margin-bottom: 17px;
}

/* Bold, elegant literary title */
h1 {
  margin: 0;
  width: min(900px, 100%);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .82;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 5px 22px rgba(0,0,0,.35);
}

h1 span {
  display: block;
  font-size: clamp(66px, 7.5vw, 132px);
  white-space: nowrap;
}

h1 span:first-child {
  color: #f4f0e8;
  font-size: clamp(62px, 7vw, 122px);
}

h1 span:last-child {
  color: #e3b86c;
  margin-left: .025em;
}

.gold-rule {
  width: 96px;
  height: 3px;
  background: var(--gold);
  margin: 38px 0 24px;
}

.hook1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.48;
  letter-spacing: 0;
  color: #f2efe7;
}

.release {
  margin-top: 30px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .23em;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 15px rgba(217,173,95,.4);
}

.subscribe-form {
  display: flex;
  width: min(770px, 100%);
  margin-top: 38px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(4,4,3,.55);
  backdrop-filter: blur(7px);
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 19px 23px;
  font: 16px Arial, Helvetica, sans-serif;
}

.subscribe-form input::placeholder { color: #9c9a95; }

.subscribe-form button {
  border: 0;
  background: #e4bd77;
  color: #17120b;
  padding: 0 30px;
  font: 800 12px Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.subscribe-form button:hover {
  background: #f0cc88;
  transform: translateX(2px);
}

.website-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.form-note {
  margin: 12px 0 0;
  color: #8e8b85;
  font-size: 12px;
}

.form-note.success { color: #d9ad5f; }
.form-note.error { color: #d77f6b; }

.scroll-cue {
  position: absolute;
  z-index: 15;
  right: 5vw;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #aaa49a;
  font-size: 10px;
  letter-spacing: .27em;
}

.scroll-cue i {
  width: 1px;
  height: 52px;
  background: var(--gold);
}

.tease, .fragment, .author {
  min-height: 90vh;
  position: relative;
  padding: 13vh 10vw;
  background: #090807;
}

.section-number {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
}

.tease-copy {
  max-width: 720px;
  margin: 15vh 0 0 24%;
}

.small-label {
  color: #88837b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
}

.tease h2, .author h2 {
  margin: 18px 0 32px;
  font-size: clamp(45px, 6vw, 92px);
  font-weight: 400;
  line-height: .98;
}

.tease h2 em {
  color: var(--gold);
  font-weight: 400;
}

.tease-copy > p:not(.small-label):not(.faint-line) {
  max-width: 520px;
  color: #b7b0a6;
  font-size: 20px;
  line-height: 1.65;
}

.faint-line {
  margin-top: 70px;
  color: #504b44;
  font-style: italic;
  font-size: 19px;
}

.fragment {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050504;
}

.fragment-door {
  position: absolute;
  right: 9%;
  top: 7%;
  width: 33vw;
  height: 87%;
  border: 10px solid #17130e;
  background: linear-gradient(90deg, #0c0a08, #21170d);
  transform: perspective(800px) rotateY(-12deg);
  box-shadow: 0 0 100px rgba(210,150,60,.08);
}

.fragment-content {
  position: relative;
  z-index: 2;
  width: min(820px, 75vw);
  margin-right: 25%;
}

blockquote {
  margin: 60px 0 35px;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.12;
  font-weight: 400;
}

.fragment-mark {
  color: #817a70;
  font-size: 10px;
  letter-spacing: .3em;
}

.author {
  min-height: 65vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8vw;
  background: #0b0a08;
}

.author h2 { margin-top: 0; }
.author p {
  max-width: 650px;
  color: #aaa39a;
  font-size: 21px;
  line-height: 1.7;
}

footer {
  padding: 30px 5vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #706b63;
  font-size: 9px;
  letter-spacing: .22em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  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='.65'/%3E%3C/svg%3E");
  transform: rotate(2deg);
}

@media (max-width: 900px) {
  .site-header { height: 74px; padding: 0 6vw; }
  .author-mark { font-size: 11px; letter-spacing: .24em; }
  .site-header nav { gap: 18px; font-size: 9px; }

  .hero { min-height: 100svh; }
  .door {
  display: none; right: -18vw; width: 72vw; height: 72vh; opacity: .7; }
  .bed {
  display: none; right: -25vw; width: 68vw; opacity: .85; }
  .shoe-left { right: 34vw; }
  .shoe-right { right: 13vw; }

  .hero-content {
    width: auto;
    min-width: 0;
    margin: 0 7vw;
    padding-top: 19vh;
  }

  .eyebrow { font-size: 10px; letter-spacing: .28em; }
  h1 { letter-spacing: -.045em; line-height: .86; }
  h1 span { font-size: clamp(50px, 13vw, 88px); }
  h1 span:first-child { font-size: clamp(47px, 12.3vw, 84px); }
  .gold-rule { margin: 30px 0 22px; }
  .hook1 { font-size: 17px; max-width: 650px; }
  .release { font-size: 10px; letter-spacing: .16em; }

  .subscribe-form { display: block; border: 0; background: transparent; }
  .subscribe-form input[type="email"],
  .subscribe-form button {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(255,255,255,.22);
  }
  .subscribe-form button { margin-top: 8px; }

  .scroll-cue { display: none; }

  .tease, .fragment, .author { padding: 12vh 8vw; }
  .tease-copy { margin: 12vh 0 0; }
  .fragment-door { right: -20%; width: 70vw; opacity: .3; }
  .fragment-content { margin: 0; }
  .author { display: block; }
  .author h2 { margin-top: 50px; }
  footer { display: block; line-height: 2.5; }
}

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


/* SEO/social footer links */
footer a { color: inherit; }
footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero {
    background-position: 58% center;
  }
}

/* =========================================================
   FULL SCREEN RAIN DROPS
   Rain is intentionally ABOVE the entire website
   ========================================================= */

#rainCanvas {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    z-index: 99999;

    pointer-events: none;

    background: transparent;
}

@media (max-width: 768px) {
  .book-title img {
    width: 92%;
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .book-title img {
    width: 96%;
    max-width: 420px;
  }
}