:root {
  color-scheme: dark;
  --bg: #110d10;
  --panel: #1d171b;
  --paper: #f5ece2;
  --ink: #fff7ef;
  --muted: #cdbdb2;
  --red: #9b1518;
  --line: rgba(255, 255, 255, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(17, 13, 16, .95), rgba(17, 13, 16, .62));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 800;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  font-size: .78rem;
  letter-spacing: .16em;
  font-weight: 800;
}

nav a {
  opacity: .82;
}

nav a:hover {
  opacity: 1;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #080608;
}

.slides {
  min-height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 108px clamp(22px, 6vw, 96px) 72px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 700ms ease, transform 900ms ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide-bg {
  position: absolute;
  inset: 0;
  opacity: .26;
  filter: blur(5px) saturate(.8);
  transform: scale(1.08);
}

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

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 50%, color-mix(in srgb, var(--accent), transparent 52%), transparent 30%),
    linear-gradient(90deg, rgba(17, 13, 16, .94), rgba(17, 13, 16, .62) 48%, rgba(17, 13, 16, .82));
}

.slide-copy,
.hero-book {
  position: relative;
  z-index: 1;
}

.slide-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.label {
  color: var(--accent, #ff6b84);
  font-size: .78rem;
  letter-spacing: .18em;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: .98;
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  
}

.slide-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent, var(--red));
  color: #15090a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sample-button {
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  color: var(--bg);
}

.text-link {
  color: var(--ink);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.hero-book {
  justify-self: center;
  width: min(42vw, 590px);
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, .48));
  transform: translateY(18px) rotate(2deg);
}

.carousel-controls {
  position: absolute;
  z-index: 5;
  left: clamp(22px, 6vw, 96px);
  bottom: 32px;
  display: flex;
  gap: 12px;
}

.carousel-controls button {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
}

.carousel-controls button.is-active {
  background: var(--ink);
}

.section {
  padding: clamp(76px, 10vw, 130px) clamp(22px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin-top: 16px;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: center;
}

.lead {
  max-width: 860px;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  line-height: 1.12;
  color: var(--paper);
}

.author-grid p:not(.lead),
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .32);
}

.works-section {
  background: #f3e6dc;
  color: #171011;
  padding-top: clamp(34px, 5vw, 68px);
}

.works-section .section-kicker,
.works-section .label {
  color: var(--red);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(280px, .74fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  min-height: 78vh;
  padding: 72px 0;
  border-top: 1px solid rgba(23, 16, 17, .16);
}

.works-section .work:first-child {
  border-top: 0;
}

.work-alt .work-copy {
  order: 2;
}

.work h3 {
  margin-top: 12px;
  font-size: clamp(2.4rem, 5.6vw, 6rem);
}

.work p:not(.label) {
  max-width: 710px;
  color: #4f4040;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.work-media {
  margin: 0;
  justify-self: center;
}

.work-media img {
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 30px 32px rgba(55, 22, 14, .22));
}

.sample-modal[hidden] {
  display: none;
}

.sample-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
}

.sample-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 6, .78);
  backdrop-filter: blur(14px);
}

.sample-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 880px);
  outline: 0;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 18px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(17, 13, 16, .82);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.ebook-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 18%, transparent 82%, rgba(0, 0, 0, .18)),
    #251c20;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}

.ebook-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(112px, 15vw, 150px) 18px clamp(20px, 4vw, 38px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ebook-page {
  max-height: calc(min(86vh, 880px) - 76px);
  overflow: auto;
  margin: 0;
  padding: clamp(34px, 6vw, 72px) clamp(24px, 7vw, 96px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 12%, transparent 88%, rgba(0, 0, 0, .08)),
    #f7efe4;
  color: #211617;
}

.ebook-author {
  margin: 0 0 12px;
  color: #000;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ebook-page h2 {
  max-width: 760px;
  color: #211617;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.sample-text {
  max-width: 720px;
  margin-top: 38px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
  line-height: 1.78;
}

.sample-text p {
  margin: 0 0 1.2em;
}

.sample-text h3 {
  margin: 2.1em 0 1em;
  color: #211617;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  text-align: center;
}

.sample-text h3:first-child {
  margin-top: 0;
}

.sample-text hr {
  width: min(220px, 45%);
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid rgba(33, 22, 23, .22);
}

.sample-text p:first-of-type::first-letter {
  float: left;
  padding: .08em .12em 0 0;
  color: var(--red);
  font-family: Fraunces, Georgia, serif;
  font-size: 4.5em;
  line-height: .8;
}

.sample-end {
  max-width: 720px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(33, 22, 23, .18);
}

.sample-end p {
  margin: 0;
  color: #6d5550;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0;
}

.contact-section {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items:baseline;
 
}

.reveal {
  opacity: 0;
  transform: translateY(70px) scale(.96);
  transition: opacity 850ms ease, transform 850ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    font-size: .68rem;
  }

  .slide,
  .author-grid,
  .work {
    grid-template-columns: 1fr;
  }

  .slide {
    padding-top: 126px;
  }

  .hero-book {
    width: min(78vw, 420px);
    max-height: 42vh;
    top:-120px;
    left:50px;
  }

  .work-alt .work-copy {
    order: 0;
  }

  .ebook-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 104px;
  }
}


@media (max-width: 520px) {

.contact-actions, .actions{
  flex-direction:column;
  align-items: center;
}
}
