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

:root {
  --black: #100e0d;
  --ink: #171311;
  --cream: #eee5d9;
  --muted: #b4a89b;
  --gold: #c49a79;
  --gold-soft: #a77e67;
  --line: rgba(238, 229, 217, .16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--black);
}

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

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

.book-popup[hidden] { display: none; }

.book-popup {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(141, 93, 66, .2), transparent 52%),
    rgba(4, 4, 4, .84);
  backdrop-filter: blur(14px) saturate(.75);
}

.book-popup-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: min(100%, 820px);
  max-height: min(680px, calc(100svh - 48px));
  overflow: auto;
  border: 1px solid rgba(208, 167, 136, .52);
  background:
    radial-gradient(ellipse at 88% 5%, rgba(153, 104, 77, .13), transparent 38%),
    #12100e;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .76), 0 0 70px rgba(179, 121, 85, .12);
  text-align: left;
  animation: book-popup-arrive .55s cubic-bezier(.2, .75, .25, 1) both;
}

.book-popup-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(238, 229, 217, .25);
  border-radius: 50%;
  background: rgba(13, 12, 11, .72);
  color: var(--cream);
  font: 300 26px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.book-popup-close:hover {
  transform: rotate(90deg);
  border-color: var(--gold);
  background: rgba(196, 154, 121, .2);
}

.book-popup-close:focus-visible,
.book-popup-actions a:focus-visible {
  outline: 2px solid #f0ccaa;
  outline-offset: 4px;
}

.book-popup-art {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  padding: 48px 28px;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(191, 132, 88, .19), transparent 47%),
    linear-gradient(145deg, #211a16, #100e0c 75%);
}

.book-popup-art::after {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(208, 167, 136, .16);
  content: "";
  pointer-events: none;
}

.book-popup-art-label,
.book-popup-art-release {
  position: absolute;
  z-index: 1;
  color: #d0a788;
  font: 700 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
  text-align: center;
}

.book-popup-art-label { top: 32px; }
.book-popup-art-release { bottom: 30px; }

.book-popup-cover {
  display: block;
  width: min(100%, 330px);
  max-height: min(410px, 58vh);
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .58));
  transition: transform .5s ease;
}

.book-popup-card:hover .book-popup-cover {
  transform: translateY(-4px) scale(1.025);
}

.book-popup-content {
  align-self: center;
  padding: clamp(32px, 5vw, 58px);
}

.book-popup-eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font: 700 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .25em;
}

.book-popup-content h2 {
  margin: 0;
  color: var(--cream);
  font: 400 clamp(39px, 5vw, 58px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.book-popup-content h2 em {
  color: #d0a788;
  font-weight: 400;
}

.book-popup-copy {
  max-width: 390px;
  margin: 22px 0 28px;
  color: #c2b5a9;
  font: 15px/1.8 Arial, Helvetica, sans-serif;
}

.book-popup-actions {
  display: grid;
  gap: 10px;
}

.book-popup-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 19px;
  font: 700 10px Arial, Helvetica, sans-serif;
  letter-spacing: .17em;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.book-popup-prebook {
  border: 1px solid #d0a788;
  background: linear-gradient(110deg, #d4ad8f, #bd8c6b);
  color: #1b1410;
  box-shadow: 0 8px 24px rgba(174, 119, 82, .16);
}

.book-popup-prebook:hover {
  transform: translateY(-2px);
  border-color: #f0d2b4;
  background: linear-gradient(110deg, #e8c5a5, #d2a27f);
}

.book-popup-home {
  justify-content: center !important;
  border: 1px solid rgba(242, 239, 231, .2);
  color: #ddd2c8;
}

.book-popup-home:hover {
  border-color: rgba(242, 239, 231, .55);
  background: rgba(242, 239, 231, .08);
}

.book-popup-signoff {
  margin: 22px 0 0;
  color: #8f8176;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
}

.book-popup-signoff strong {
  color: #d6c6b7;
  font-weight: 400;
}

@keyframes book-popup-arrive {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.book-popup-open { overflow: hidden; }

.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 {
  display: grid;
  gap: 4px;
  justify-items: start;
  color: #f1e7dc;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.author-mark-name {
  color: #f1e7dc;
  font: 500 23px/.95 Georgia, "Times New Roman", serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .68);
}

.author-mark-name em {
  color: #d6aa87;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(196, 154, 121, .2);
}

.author-mark-tagline {
  color: #b99a84;
  font: 700 8px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .25em;
  transition: color .25s ease;
}

.author-mark:hover .author-mark-tagline {
  color: #ead4c2;
}

.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(14,11,12,.74) 0%,
      rgba(14,11,12,.48) 36%,
      rgba(14,11,12,.14) 63%,
      rgba(14,11,12,.36) 100%),
    linear-gradient(0deg,
      rgba(14,11,12,.44) 0%,
      rgba(14,11,12,.04) 55%,
      rgba(14,11,12,.32) 100%),
    url("hero-background.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(16,13,14,.18) 0%, rgba(16,13,14,.02) 55%, rgba(16,13,14,.16) 100%),
    linear-gradient(0deg, rgba(16,13,14,.2), 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(760px, 52vw);
  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: #d2ad91;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .38em;
  margin-bottom: 0;
}

/* 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(54px, 6.6vw, 96px);
  white-space: normal;
}

h1 span:first-child {
  color: #f4f0e8;
  font-size: clamp(50px, 6.2vw, 90px);
}

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

.hero-title {
  position: relative;
  width: min(420px, 60%);
  margin-top: 40px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.hero-title-logo {
  position: absolute;
  top: 0;
  left: -25.5%;
  display: block;
  width: 153%;
  max-width: none;
  height: auto;
  mix-blend-mode: screen;
}

.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: #eee5d9;
}

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

.hero-prebook-button {
  display: inline-flex;
  min-width: 326px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  margin-top: 46px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #17120b;
  font: 800 14px Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-align: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.hero-prebook-button:hover {
  transform: translateY(-2px);
  background: #f0cc88;
  border-color: #f0cc88;
}

.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; }

.preorder {
  position: relative;
  padding: 14vh 10vw;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(166, 112, 48, .12), transparent 45%),
    #0b0a08;
}

.preorder-page .preorder {
  min-height: 100svh;
  padding-top: 150px;
}

.preorder-content {
  width: min(760px, 100%);
  margin: 9vh auto 0;
}

.preorder-content h2 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -.05em;
}

.preorder-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -.05em;
}

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

.preorder-content h1 em {
  color: var(--gold);
  font-weight: 400;
}

.preorder-intro {
  max-width: 580px;
  color: var(--muted);
  font: 16px/1.7 Arial, Helvetica, sans-serif;
}

.preorder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.preorder-field {
  display: grid;
  gap: 9px;
}

.preorder-field:nth-of-type(4),
.preorder-field:nth-of-type(5) {
  grid-column: 1 / -1;
}

.preorder-language {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.preorder-language legend {
  margin-bottom: 10px;
  color: var(--cream);
  font: 700 11px Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preorder-language-option {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(242, 239, 231, .24);
  padding: 12px 15px;
  color: var(--cream);
  background: rgba(4, 4, 3, .48);
  cursor: pointer;
}

.preorder-language-option-selected {
  border-color: var(--gold);
  background: rgba(196, 154, 121, .1);
}

.preorder-language-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--gold);
}

.preorder-language-option span {
  display: grid;
  gap: 4px;
  font: 700 13px Arial, Helvetica, sans-serif;
}

.preorder-language-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.preorder-language-disabled {
  cursor: not-allowed;
  opacity: .52;
}

.preorder-field label {
  color: var(--cream);
  font: 700 11px Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preorder-field label span {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.preorder-field input,
.preorder-field textarea {
  width: 100%;
  border: 1px solid rgba(242, 239, 231, .24);
  border-radius: 0;
  outline: 0;
  padding: 15px 16px;
  background: rgba(4, 4, 3, .48);
  color: var(--cream);
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}

.preorder-field input:focus,
.preorder-field textarea:focus {
  border-color: var(--gold);
}

.preorder-field textarea { resize: vertical; }

.preorder-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preorder-submit {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #17120b;
  font: 800 12px Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  cursor: pointer;
}

.preorder-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.preorder-submit span { margin-left: 8px; }

.preorder-note,
.preorder-email-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
}

.preorder-note.error,
.preorder-email-status.error { color: #e4a08f; }

.preorder-payment {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid rgba(217, 173, 95, .42);
  background: rgba(4, 4, 3, .45);
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.preorder-payment h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font: 400 27px Georgia, "Times New Roman", serif;
}

.preorder-payment p {
  color: var(--muted);
  line-height: 1.6;
}

.preorder-payment strong { color: var(--cream); }

.preorder-email-status { font-size: 13px; }

.admin-page {
  min-height: 100vh;
  background: #0b0a08;
  font-family: Arial, Helvetica, sans-serif;
}

.admin-main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 56px 0 80px;
}

.admin-header,
.admin-order-heading,
.admin-order-actions,
.admin-order-actions form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header {
  flex-wrap: wrap;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.admin-header .small-label { color: var(--gold); }

.admin-header h1 {
  margin: 8px 0 0;
  font: 400 clamp(34px, 5vw, 54px) Georgia, "Times New Roman", serif;
}

.admin-author-mark {
  margin-bottom: 12px;
}

.admin-login {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

body.admin-login-page {
  min-height: 100svh;
}

.admin-main-login {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  width: min(440px, 92vw);
  padding: 36px 0;
}

.admin-login-page .admin-header {
  display: block;
  margin-bottom: 20px;
  border: 0;
  padding: 0;
  text-align: center;
}

.admin-login-page .admin-author-mark {
  justify-items: center;
  margin-bottom: 18px;
}

.admin-login-page .admin-header h1 {
  font-size: clamp(30px, 8vw, 42px);
}

.admin-main-login > .admin-notice,
.admin-main-login > .admin-error {
  width: 100%;
}

.admin-main-login .admin-login {
  width: 100%;
}

.admin-login h2,
.admin-order h2 {
  margin: 0;
  color: var(--cream);
  font: 400 23px Georgia, "Times New Roman", serif;
}

.admin-login p,
.admin-help,
.admin-empty {
  color: var(--muted);
  line-height: 1.6;
}

.admin-login form {
  display: grid;
  gap: 12px;
}

.admin-login label,
.admin-order-actions label {
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.admin-login input,
.admin-order-actions select,
.pricing-form input {
  min-height: 43px;
  border: 1px solid rgba(242, 239, 231, .24);
  border-radius: 0;
  padding: 10px 12px;
  background: #100e0b;
  color: var(--cream);
  font: 14px Arial, Helvetica, sans-serif;
}

.admin-submit,
.admin-logout,
.admin-whatsapp {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  padding: 10px 16px;
  background: var(--gold);
  color: #17120b;
  font: 700 12px Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.admin-logout {
  border-color: rgba(242, 239, 231, .35);
  background: transparent;
  color: var(--cream);
}

.admin-whatsapp { background: #c5dcaa; border-color: #c5dcaa; }

.admin-notice,
.admin-error {
  margin: 0 0 20px;
  padding: 13px 16px;
  border: 1px solid rgba(217, 173, 95, .42);
  color: var(--gold);
}

.admin-error {
  border-color: rgba(215, 127, 107, .5);
  color: #e4a08f;
}

.admin-help { margin: 0 0 24px; }
.admin-help strong { color: var(--cream); }

.pricing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-nav a {
  color: var(--gold);
  font-size: 12px;
}

.pricing-panel {
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.pricing-panel h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font: 400 24px Georgia, "Times New Roman", serif;
}

.pricing-form {
  display: grid;
  gap: 12px;
}

.pricing-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.pricing-form-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.pricing-form-row > span {
  padding-bottom: 12px;
  color: var(--cream);
}

.pricing-form input { width: 100%; }
.pricing-form-row > input { max-width: 240px; }
.pricing-form-row > div { flex: 1; min-width: 0; }
.pricing-promo-row button { flex: 0 0 auto; }

.pricing-promo-list {
  display: grid;
  gap: 10px;
}

.pricing-promo,
.pricing-promo > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pricing-promo {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pricing-promo > div { flex-wrap: wrap; justify-content: flex-start; }
.pricing-promo strong { color: var(--cream); letter-spacing: .08em; }
.pricing-promo span:not(.admin-status) { color: var(--muted); font-size: 12px; }
.pricing-promo form { flex: 0 0 auto; }
.pricing-edit-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-edit-form input {
  width: 86px;
  min-height: 42px;
  border: 1px solid rgba(242, 239, 231, .24);
  padding: 8px;
  background: #100e0b;
  color: var(--cream);
  font: 14px Arial, Helvetica, sans-serif;
}

.admin-order-discount {
  color: var(--muted);
  font-size: 12px;
}

.promo-status {
  min-height: 1em;
  margin: 5px 0 0;
  color: var(--gold);
  font-size: 12px;
}

.promo-status.error { color: #e4a08f; }

.admin-orders {
  display: grid;
  gap: 18px;
}

.admin-order {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.admin-order-heading { align-items: flex-start; }

.admin-status {
  flex: 0 0 auto;
  border: 1px solid rgba(217, 173, 95, .45);
  padding: 6px 10px;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-status-yes { border-color: rgba(140, 190, 125, .55); color: #b7d9a3; }
.admin-status-no { border-color: rgba(215, 127, 107, .55); color: #e4a08f; }

.admin-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 24px;
  margin: 22px 0;
}

.admin-details div { min-width: 0; }
.admin-details dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.admin-details dd { margin: 5px 0 0; color: var(--cream); overflow-wrap: anywhere; line-height: 1.5; }
.admin-details a { color: var(--gold); }
.admin-detail-wide { grid-column: 1 / -1; }

.admin-order-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-order-actions form { flex-wrap: wrap; justify-content: flex-start; }
.admin-no-whatsapp { color: var(--muted); font-size: 12px; }

[hidden] { display: none !important; }

.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, .memory, .fragment, .author {
  min-height: 100svh;
  position: relative;
  padding: 14vh 10vw;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(140, 94, 83, .12), transparent 42%),
    #151211;
}

.section-number {
  color: #c49a79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
}

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

.small-label {
  color: #b29a8d;
  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,
.memory h2 em {
  color: #d0a788;
  font-weight: 400;
}

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

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

.memory {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(120deg, rgba(35, 27, 26, .82), rgba(17, 15, 15, .94)),
    url("hero-background.png") center 57% / cover no-repeat;
}

.memory-content {
  width: min(1120px, 100%);
  margin: 8vh auto 0;
}

.memory-content > .small-label { margin-bottom: 20px; }

.memory h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1.06;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(40px, 8vh, 84px);
}

.memory-card {
  min-height: 220px;
  padding: 26px 24px;
  border-top: 1px solid rgba(208, 167, 136, .55);
  background: rgba(15, 13, 13, .46);
  backdrop-filter: blur(5px);
}

.memory-card > span {
  color: #c49a79;
  font: 700 10px Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
}

.memory-card h3 {
  margin: 24px 0 12px;
  color: var(--cream);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
}

.memory-card p {
  max-width: 330px;
  margin: 0;
  color: #c1b6ac;
  font: 15px/1.75 Arial, Helvetica, sans-serif;
}

.fragment {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 50%, rgba(119, 78, 68, .14), transparent 48%),
    #100e0e;
}

.fragment-door {
  position: absolute;
  right: 9%;
  top: 7%;
  width: 33vw;
  height: 87%;
  overflow: hidden;
  border: 1px solid rgba(208, 167, 136, .48);
  background: #211a18;
  transform: perspective(800px) rotateY(-12deg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42), 0 0 100px rgba(190, 139, 115, .1);
}

.fragment-door::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 13, 13, .05) 22%, rgba(16, 13, 13, .28) 48%, rgba(16, 13, 13, .92) 100%);
}

.fragment-door img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(.66) sepia(.12) brightness(.78);
}

.fragment-scene-caption {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 34px;
  left: 26px;
  text-align: center;
}

.fragment-scene-caption > span {
  color: #d0a788;
  font: 700 9px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
}

.fragment-scene-caption p {
  margin: 14px 0 0;
  color: #f1e7dc;
  font: italic clamp(21px, 2.2vw, 30px)/1.3 Georgia, "Times New Roman", serif;
}

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

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

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

.author {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  background:
    radial-gradient(ellipse at 18% 20%, rgba(135, 88, 79, .1), transparent 42%),
    #141211;
}

.author-aside {
  position: sticky;
  top: 12vh;
  align-self: start;
}

.author-art {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 121, .36);
  padding: 28px;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(160, 106, 79, .2), transparent 62%),
    linear-gradient(155deg, #211918, #121010 75%);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .32);
  text-align: center;
}

.author-art::before,
.author-art::after {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(196, 154, 121, .52), transparent);
}

.author-art::before { top: 20px; }
.author-art::after { bottom: 20px; }

.author-art img {
  display: block;
  width: min(100%, 380px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .5));
}

.author-art blockquote {
  max-width: 340px;
  margin: 20px 0 12px;
  color: #ead7c7;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.25;
  font-style: italic;
}

.author-art > span {
  color: #b79a86;
  font: 700 9px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
}

.author-aside-note {
  max-width: 340px;
  margin: 22px auto 0;
  color: #a99b90;
  font: italic 15px/1.7 Georgia, "Times New Roman", serif;
  text-align: center;
}

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

footer {
  padding: 30px 5vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #a3978d;
  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);
}

.records-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}

.records-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 16px;
}

.records-toolbar h2 {
  margin: 0;
  color: var(--cream);
  font: 400 24px Georgia, "Times New Roman", serif;
}

.records-count {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.records-search {
  display: grid;
  width: 100%;
  gap: 7px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}

.records-search input {
  min-height: 42px;
  border: 1px solid rgba(242, 239, 231, .24);
  padding: 10px 12px;
  background: #100e0b;
  color: var(--cream);
  font: 14px Arial, Helvetica, sans-serif;
}

.records-table-scroll {
  max-height: min(68svh, 680px);
  overflow-x: scroll;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--gold) #211c15;
  scrollbar-width: auto;
  border-top: 1px solid var(--line);
}

.records-table-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.records-table-scroll::-webkit-scrollbar-track { background: #211c15; }
.records-table-scroll::-webkit-scrollbar-thumb { border: 2px solid #211c15; background: var(--gold); }

.records-table {
  width: max-content;
  min-width: 1500px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--cream);
  font-size: 12px;
  text-align: left;
}

.records-table th,
.records-table td {
  max-width: 280px;
  border-bottom: 1px solid rgba(242, 239, 231, .1);
  padding: 11px 13px;
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.records-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  background: #17130e;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.records-table [data-column="full_name"],
.records-table [data-column="name"],
.records-table [data-column="email"] {
  max-width: none;
  white-space: nowrap;
}

.records-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.records-table tbody tr:hover { background: rgba(217, 173, 95, .08); }
.records-table tr[hidden] { display: none; }

.records-scroll-control {
  display: grid;
  gap: 8px;
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 11px;
}

.records-scroll-control input {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}

.records-scroll-control input::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: #393126;
}

.records-scroll-control input::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #393126;
}

.records-scroll-control input::-webkit-slider-thumb {
  width: 30px;
  height: 20px;
  margin-top: -6px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #17130e;
  border-radius: 999px;
  background: var(--gold);
}

.records-scroll-control input::-moz-range-thumb {
  width: 26px;
  height: 16px;
  border: 2px solid #17130e;
  border-radius: 999px;
  background: var(--gold);
}

.records-scroll-control input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.records-status {
  display: inline-block;
  border: 1px solid rgba(215, 127, 107, .55);
  padding: 3px 7px;
  color: #e4a08f;
  font-size: 10px;
  font-weight: 700;
}

.records-status-yes {
  border-color: rgba(140, 190, 125, .55);
  color: #b7d9a3;
}

.records-null,
.records-no-results { color: var(--muted); }
.records-no-results { margin: 0; padding: 18px; }

@media (min-width: 700px) {
  .records-toolbar {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
  }

  .records-search {
    flex: 0 1 320px;
    width: auto;
  }
}

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

  .preorder-page .preorder { padding-top: 120px; }

  .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(48px, 11.5vw, 82px); }
  h1 span:first-child { font-size: clamp(45px, 10.8vw, 78px); }
  .gold-rule { margin: 30px 0 22px; }
  .hook1 { font-size: 17px; max-width: 650px; }
  .release { font-size: 10px; letter-spacing: .16em; }
  .hero-prebook-button {
    width: min(100%, 326px);
    min-width: 0;
    min-height: 60px;
    margin-top: 32px;
    font-size: 12px;
  }

  .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, .memory, .fragment, .author { padding: 12vh 8vw; }
  .preorder { padding: 12vh 8vw; }
  .preorder-content { margin-top: 8vh; }
  .preorder-form { grid-template-columns: 1fr; gap: 17px; }
  .preorder-language { grid-template-columns: 1fr 1fr; }
  .preorder-field:nth-of-type(4),
  .preorder-field:nth-of-type(5),
  .preorder-submit { grid-column: 1; }
  .admin-main { padding-top: 34px; }
  .pricing-form-row { align-items: stretch; flex-wrap: wrap; }
  .pricing-promo-row button { width: 100%; }
  .pricing-promo { align-items: flex-start; }
  .admin-details { grid-template-columns: 1fr; }
  .admin-detail-wide { grid-column: 1; }
  .admin-order { padding: 18px; }
  .admin-order-heading { flex-direction: column; }
  .tease-copy { margin: 12vh 0 0; }
  .memory-content { margin-top: 8vh; }
  .memory-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 38px; }
  .memory-card { min-height: 0; padding: 20px; }
  .memory-card h3 { margin-top: 16px; }
  .fragment-door { right: -20%; width: 70vw; opacity: .42; }
  .fragment-scene-caption { right: 18px; bottom: 24px; left: 18px; }
  .fragment-scene-caption > span { font-size: 7px; }
  .fragment-scene-caption p { font-size: 20px; }
  .fragment-content { margin: 0; }
  .author { display: block; }
  .author-aside { position: static; }
  .author-art {
    min-height: 0;
    width: min(100%, 480px);
    margin: 26px auto 0;
  }
  .author-art img { max-height: 220px; }
  .author-aside-note { margin-bottom: 56px; }
  .author h2 { margin-top: 0; }
  footer { display: block; line-height: 2.5; }
}

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

  .book-popup-card,
  .book-popup-cover,
  .book-popup-close,
  .book-popup-actions a {
    animation: none;
    transition: none;
  }
}


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

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

@media (max-width: 600px) {
  .site-header {
    height: auto;
    min-height: 94px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 9px 5vw 8px;
    background: linear-gradient(180deg, rgba(9, 8, 7, .97), rgba(9, 8, 7, .84));
    backdrop-filter: blur(12px);
  }

  .author-mark-name { font-size: 17px; }
  .author-mark-tagline { font-size: 6px; letter-spacing: .2em; }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    letter-spacing: .16em;
  }

  .site-header nav a {
    padding: 5px 0;
    white-space: nowrap;
  }

  .preorder-page .site-header {
    height: 68px;
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 5vw;
  }

  .preorder-page .site-header nav {
    width: auto;
    flex: 0 0 auto;
    font-size: 8px;
    letter-spacing: .12em;
  }
}

@media (max-width: 768px) {
  .book-popup-card {
    width: min(100%, 540px);
    max-height: calc(100svh - 32px);
    grid-template-columns: 1fr;
  }

  .book-popup-art {
    min-height: 0;
    height: clamp(245px, 35svh, 290px);
    padding: 34px 24px;
  }

  .book-popup-art-label { top: 22px; }
  .book-popup-art-release { bottom: 18px; }

  .book-popup-art::after { inset: 10px; }
  .book-popup-cover {
    max-height: 30svh;
    width: min(100%, 360px);
    transform: scale(1.3);
  }
  .book-popup-card:hover .book-popup-cover { transform: translateY(-2px) scale(1.32); }
  .book-popup-content { padding: 28px clamp(24px, 7vw, 42px) 30px; }
  .book-popup-content h2 { font-size: clamp(38px, 10vw, 50px); }
  .book-popup-copy { margin: 14px 0 20px; font-size: 14px; }
  .book-popup-signoff { margin-top: 15px; }

  .book-title img {
    width: 92%;
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .book-popup { padding: 12px; }
  .book-popup-card { max-height: calc(100svh - 24px); }
  .book-popup-close { top: 11px; right: 11px; width: 34px; height: 34px; }
  .book-popup-art { height: clamp(245px, 35svh, 290px); }
  .book-popup-eyebrow { margin-bottom: 12px; }
  .book-popup-actions a { min-height: 50px; }

  .book-title img {
    width: 96%;
    max-width: 420px;
  }
}