
/* --------------------------------------------------

   J.L. LIEBERT — starter author website

   No framework. No external fonts. Easy to host on STRATO.

-------------------------------------------------- */

:root {
  --paper: #f3f0e9;
  --paper-soft: #e8e2d8;
  --ink: #191817;
  --muted: #706c65;
  --line: rgba(25, 24, 23, 0.22);
  --accent: #6d2737;
  --dark: #171615;
  --light: #f7f4ed;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --page: clamp(24px, 5vw, 78px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  min-height: 80px;

  padding: 0 var(--page);

  border-bottom: 1px solid var(--line);

  background: rgba(243, 240, 233, 0.92);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wordmark,
.footer-wordmark {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.wordmark-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 30px;

  grid-column: 3;

  justify-content: end;
}

.site-nav a {
  position: relative;

  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;
  bottom: -5px;

  height: 1px;

  background: currentColor;

  transition: right 180ms ease;
}

.site-nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}


/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
  position: relative;

  min-height: calc(100vh - 80px);

  display: grid;
  grid-template-columns: 1.25fr 0.75fr;

  gap: clamp(36px, 7vw, 120px);

  align-items: center;

  padding: clamp(64px, 9vw, 130px) var(--page);

  overflow: hidden;
}

.hero-copy {
  max-width: 960px;
}

.eyebrow {
  margin: 0 0 24px;

  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.19em;

  text-transform: uppercase;
}

.hero h1,
.featured-book h2,
.contact h2 {
  margin: 0;

  font-family: var(--serif);

  font-weight: 400;

  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(3.3rem, 6.8vw, 8rem);

  line-height: 0.92;
}

.hero-intro {
  max-width: 610px;

  margin: 36px 0 0;

  color: var(--muted);

  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.hero-actions {
  display: flex;

  align-items: center;

  gap: 28px;

  margin-top: 44px;
}


/* --------------------------------------------------
   BUTTONS / LINKS
-------------------------------------------------- */

.button {
  display: inline-flex;

  min-height: 48px;

  align-items: center;
  justify-content: center;

  padding: 0 22px;

  border: 1px solid currentColor;

  font-size: 0.72rem;
  font-weight: 700;

  letter-spacing: 0.11em;

  text-transform: uppercase;

  transition: background 160ms ease, color 160ms ease;
}

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

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

.button-light {
  color: var(--light);
}

.button-light:hover {
  background: var(--light);
  color: var(--dark);
}

.text-link {
  display: inline-flex;

  gap: 10px;

  align-items: center;

  font-size: 0.75rem;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}


/* --------------------------------------------------
   OLD OPTIONAL COVER STYLING
-------------------------------------------------- */

.hero-art {
  display: flex;

  justify-content: center;
  align-items: center;
}

.cover-placeholder {
  position: relative;

  aspect-ratio: 5.5 / 8.5;

  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    var(--accent);

  background-size: 18px 18px;

  color: #f3ecdf;

  box-shadow: 0 32px 70px rgba(25, 24, 23, 0.16);

  width: min(360px, 72%);

  transform: rotate(1.4deg);
}

.cover-series,
.cover-author {
  position: absolute;

  left: 9%;
  right: 9%;

  font-size: clamp(0.48rem, 0.7vw, 0.65rem);

  letter-spacing: 0.18em;
}

.cover-series {
  top: 7%;
}

.cover-author {
  bottom: 7%;
}

.cover-title {
  position: absolute;

  left: 9%;
  right: 9%;
  top: 45%;

  transform: translateY(-50%);

  display: flex;

  flex-direction: column;

  font-family: var(--serif);

  font-size: clamp(1rem, 2vw, 1.8rem);

  line-height: 0.98;
}

.cover-title strong {
  font-weight: 400;

  font-size: 1.7em;
}

.hero-index {
  position: absolute;

  right: var(--page);
  bottom: 20px;

  color: var(--muted);

  font-size: 0.66rem;

  letter-spacing: 0.16em;
}


/* --------------------------------------------------
   GENERAL SECTIONS
-------------------------------------------------- */

.section-rule {
  border-top: 1px solid var(--line);
}

.statement {
  padding: clamp(70px, 9vw, 140px) var(--page);
}

.statement p {
  max-width: 1150px;

  margin: 0;

  font-family: var(--serif);

  font-size: clamp(2.3rem, 5.6vw, 6.4rem);

  line-height: 1;

  letter-spacing: -0.04em;
}

.featured-book,
.books,
.about,
.journal {
  padding: clamp(70px, 9vw, 130px) var(--page);
}

.section-label {
  display: grid;

  grid-template-columns: 90px 1fr;

  margin-bottom: clamp(50px, 7vw, 100px);

  color: var(--muted);

  font-size: 0.68rem;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.section-label p {
  margin: 0;
}


/* --------------------------------------------------
   FEATURED BOOK
-------------------------------------------------- */

.featured-grid {
  display: grid;

  grid-template-columns: 0.95fr 1.05fr;

  gap: clamp(50px, 9vw, 150px);

  align-items: center;
}

.featured-book h2 {
  font-size: clamp(3.3rem, 6.2vw, 7.2rem);

  line-height: 0.9;
}

.book-description {
  max-width: 590px;

  margin: 34px 0;

  color: var(--muted);

  font-size: 1.05rem;
}

.book-details {
  margin: 42px 0;

  border-top: 1px solid var(--line);
}

.book-details > div {
  display: grid;

  grid-template-columns: 120px 1fr;

  gap: 20px;

  padding: 15px 0;

  border-bottom: 1px solid var(--line);
}

.book-details dt,
.book-details dd {
  margin: 0;
}

.book-details dt {
  color: var(--muted);

  font-size: 0.68rem;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.book-details dd {
  font-family: var(--serif);
}


/* --------------------------------------------------
   BOOK COVER
   Source image: 1800 × 2700 = 2:3
-------------------------------------------------- */

.book-visual {
  position: relative;

  width: 100%;
  min-height: 650px;

  display: flex;

  align-items: center;
  justify-content: center;

  perspective: 1200px;
}

.book-cover {
  position: relative;

  z-index: 2;

  display: block;

  width: min(100%, 400px);
  height: auto;

  aspect-ratio: 2 / 3;

  object-fit: contain;

  box-shadow:
    0 32px 70px rgba(25, 24, 23, 0.16);

  transform:
    perspective(1000px)
    rotateY(-9deg)
    rotateZ(1deg);

  transform-origin: center;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}

.book-cover:hover {
  transform:
    perspective(1000px)
    rotateY(-5deg)
    rotateZ(0.5deg)
    translateY(-4px);

  box-shadow:
    0 38px 80px rgba(25, 24, 23, 0.2);
}

.book-shadow {
  position: absolute;

  z-index: 1;

  width: min(330px, 65%);

  aspect-ratio: 2 / 3;

  background: rgba(25, 24, 23, 0.13);

  filter: blur(24px);

  transform:
    translate(35px, 34px)
    rotate(3deg);

  pointer-events: none;
}


/* --------------------------------------------------
   SERIES
-------------------------------------------------- */

.series-list {
  border-top: 1px solid var(--line);
}

.series-item {
  display: grid;

  grid-template-columns: 90px 1fr auto;

  gap: 24px;

  align-items: center;

  padding: clamp(28px, 4vw, 48px) 0;

  border-bottom: 1px solid var(--line);

  transition: padding 180ms ease;
}

.series-item.active:hover {
  padding-left: 12px;
}

.series-number {
  color: var(--muted);

  font-family: var(--serif);

  font-size: 1.5rem;
}

.series-status {
  margin: 0 0 8px;

  color: var(--muted);

  font-size: 0.66rem;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.series-item h3 {
  margin: 0;

  font-family: var(--serif);

  font-size: clamp(2rem, 4vw, 4.5rem);

  font-weight: 400;

  letter-spacing: -0.035em;
}

.series-arrow {
  color: var(--muted);

  font-size: 1.2rem;
}


/* --------------------------------------------------
   ABOUT
-------------------------------------------------- */

.about-grid {
  display: grid;

  grid-template-columns: 1.2fr 0.8fr;

  gap: clamp(50px, 9vw, 150px);
}

.large-copy {
  margin: 0;

  font-family: var(--serif);

  font-size: clamp(2.4rem, 5vw, 5.6rem);

  line-height: 1;

  letter-spacing: -0.04em;
}

.about-body {
  max-width: 520px;

  padding-top: 12px;

  color: var(--muted);

  font-size: 1.05rem;
}

.about-body p {
  margin: 0 0 26px;
}


/* --------------------------------------------------
   JOURNAL
-------------------------------------------------- */

.journal-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  background: var(--line);

  border: 1px solid var(--line);
}

.journal-card {
  min-height: 370px;

  padding: clamp(28px, 4vw, 52px);

  background: var(--paper);

  display: flex;

  flex-direction: column;

  align-items: flex-start;
}

.journal-date {
  margin: 0 0 auto;

  color: var(--muted);

  font-size: 0.67rem;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.journal-card h3 {
  max-width: 560px;

  margin: 70px 0 18px;

  font-family: var(--serif);

  font-size: clamp(2rem, 3.5vw, 4rem);

  font-weight: 400;

  line-height: 1;

  letter-spacing: -0.035em;
}

.journal-card > p:not(.journal-date) {
  max-width: 520px;

  margin: 0 0 30px;

  color: var(--muted);
}

.muted {
  color: var(--muted);
}


/* --------------------------------------------------
   CONTACT
-------------------------------------------------- */

.contact {
  background: var(--dark);

  color: var(--light);
}

.contact-inner {
  padding: clamp(80px, 11vw, 170px) var(--page);
}

.contact .eyebrow {
  color: rgba(247, 244, 237, 0.5);
}

.contact h2 {
  max-width: 1100px;

  font-size: clamp(3.5rem, 8vw, 9rem);

  line-height: 0.9;
}

.contact p:not(.eyebrow) {
  margin: 38px 0 28px;

  color: rgba(247, 244, 237, 0.65);
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.site-footer {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 30px;

  padding: 34px var(--page);

  background: var(--dark);

  color: var(--light);

  border-top: 1px solid rgba(247, 244, 237, 0.15);
}

.footer-meta {
  display: flex;

  gap: 28px;

  color: rgba(247, 244, 237, 0.55);

  font-size: 0.68rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.footer-meta p {
  margin: 0;
}


/* --------------------------------------------------
   LARGE DESKTOP
-------------------------------------------------- */

@media (min-width: 1500px) {

  .book-cover {
    width: min(430px, 70%);
  }

  .book-shadow {
    width: min(355px, 62%);
  }

  .book-visual {
    min-height: 720px;
  }
}


/* --------------------------------------------------
   TABLET
-------------------------------------------------- */

@media (max-width: 900px) {

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;

    inset: 80px 0 auto 0;

    display: none;

    flex-direction: column;

    gap: 0;

    background: var(--paper);

    border-bottom: 1px solid var(--line);

    padding: 16px var(--page) 24px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;

    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: inline-flex;

    width: 36px;
    height: 36px;

    flex-direction: column;

    justify-content: center;

    gap: 7px;

    align-items: flex-end;
  }

  .menu-toggle span {
    width: 25px;

    height: 1px;

    background: currentColor;
  }

  .menu-toggle span:last-child {
    width: 17px;
  }

  .hero,
  .featured-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-art {
    margin-top: 40px;
  }

  .cover-placeholder {
    width: min(320px, 74vw);
  }

  .book-visual {
    min-height: 520px;

    margin-top: 20px;
  }

  .book-cover {
    width: min(360px, 62vw);
  }

  .book-shadow {
    width: min(300px, 53vw);
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 600px) {

  :root {
    --page: 20px;
  }

  .wordmark {
    gap: 9px;
  }

  .wordmark-logo {
    width: 25px;
    height: 25px;
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: auto;

    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-actions {
    align-items: flex-start;

    flex-direction: column;
  }

  .section-label {
    grid-template-columns: 55px 1fr;
  }

  .featured-book h2,
  .contact h2 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .book-visual {
    min-height: 430px;

    margin-top: 0;
  }

  .book-cover {
    width: min(300px, 72vw);

    transform:
      perspective(1000px)
      rotateY(-6deg)
      rotateZ(0.7deg);
  }

  .book-cover:hover {
    transform:
      perspective(1000px)
      rotateY(-4deg)
      rotateZ(0.3deg)
      translateY(-3px);
  }

  .book-shadow {
    width: min(260px, 64vw);

    filter: blur(20px);

    transform:
      translate(22px, 27px)
      rotate(2deg);
  }

  .series-item {
    grid-template-columns: 44px 1fr auto;

    gap: 14px;
  }

  .series-item h3 {
    font-size: 2rem;
  }

  .journal-card {
    min-height: 330px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;

    gap: 6px;
  }
}


/* --------------------------------------------------
   SMALL PHONES
-------------------------------------------------- */

@media (max-width: 420px) {

  :root {
    --page: 17px;
  }

  .book-visual {
    min-height: 370px;
  }

  .book-cover {
    width: min(270px, 76vw);
  }

  .book-shadow {
    width: min(235px, 67vw);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .featured-book h2,
  .contact h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .series-item {
    grid-template-columns: 36px 1fr;
  }

  .series-arrow {
    display: none;
  }
}


/* --------------------------------------------------
   VERY SMALL PHONES
-------------------------------------------------- */

@media (max-width: 340px) {

  :root {
    --page: 14px;
  }

  .book-visual {
    min-height: 340px;
  }

  .book-cover {
    width: 80vw;
  }

  .book-shadow {
    width: 70vw;
  }
}


/* --------------------------------------------------
   REDUCED MOTION
-------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .book-cover,
  .button,
  .text-link span,
  .site-nav a::after,
  .series-item {
    transition: none;
  }
}
