/* --------------------------------------------------
   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);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

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

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

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

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-placeholder,
.book-object {
  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);
}

.cover-placeholder {
  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;
}

.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-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-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-object {
  width: min(370px, 70%);
  z-index: 2;
  transform: perspective(1000px) rotateY(-9deg) rotateZ(1deg);
}

.book-shadow {
  position: absolute;
  width: 45%;
  height: 75%;
  background: rgba(25, 24, 23, 0.13);
  filter: blur(24px);
  transform: translate(35px, 34px) rotate(3deg);
}

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

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

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

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

@media (max-width: 600px) {
  :root {
    --page: 20px;
  }

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

  .book-object {
    width: 68vw;
  }

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