:root {
  --ink: #18201c;
  --muted: #65706a;
  --paper: #f7f3eb;
  --white: #fffdf8;
  --lichen: #8aa39b;
  --moss: #496b5d;
  --gold: #c89243;
  --red: #a34f3c;
  --ice: #d9edf0;
  --line: rgba(24, 32, 28, 0.14);
  --shadow: 0 24px 70px rgba(23, 35, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(247, 243, 235, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--moss);
  border-radius: 50%;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
}

.nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a,
.text-link,
.site-footer a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.28em;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 74px));
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  overflow: hidden;
  background: #10231f;
}

.hero-art {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.night-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(246, 236, 184, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 56% 18%, rgba(255, 255, 255, 0.76) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 38%, rgba(255, 255, 255, 0.64) 0 1px, transparent 2px),
    linear-gradient(115deg, transparent 0 28%, rgba(119, 185, 171, 0.52) 32%, rgba(223, 230, 186, 0.7) 38%, rgba(71, 126, 130, 0.45) 45%, transparent 54%),
    linear-gradient(180deg, #07100f 0%, #16352f 52%, #496b5d 100%);
}

.horizon {
  position: absolute;
  z-index: 1;
  right: -8%;
  bottom: -2px;
  left: -8%;
  height: 32%;
  background:
    linear-gradient(160deg, transparent 0 32%, rgba(248, 246, 237, 0.86) 33% 54%, transparent 55%),
    linear-gradient(22deg, transparent 0 45%, rgba(224, 234, 226, 0.76) 46% 65%, transparent 66%),
    linear-gradient(180deg, transparent 0 22%, #e7e6dc 23% 100%);
  clip-path: polygon(0 38%, 14% 25%, 23% 40%, 38% 16%, 52% 36%, 67% 19%, 80% 41%, 100% 24%, 100% 100%, 0 100%);
}

.hero-book-stack {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: 8%;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.mini-cover {
  display: grid;
  width: clamp(82px, 10vw, 132px);
  aspect-ratio: 0.68;
  align-items: end;
  padding: 16px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.32);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.88rem, 1.4vw, 1.12rem);
  font-weight: 700;
}

.mini-cover-tiita {
  transform: rotate(-8deg) translateY(12px);
  background: linear-gradient(150deg, #7b3d34, #d69b55 58%, #f2dfbe);
}

.mini-cover-suluti {
  transform: translateY(-10px);
  background: linear-gradient(160deg, #0d2d3c, #4b9b98 54%, #dfd987);
}

.mini-cover-napu {
  transform: rotate(6deg) translateY(18px);
  background: linear-gradient(160deg, #243b35, #78917c 55%, #efe4c7);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px) clamp(28px, 5vw, 72px);
  color: var(--white);
  background: #10231f;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0;
}

.hero-lede {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #171410;
  background: var(--gold);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stat {
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--moss);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.books-section,
.about-section,
.newsletter-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

.section-heading {
  display: flex;
  max-width: 1180px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 34px;
}

.book-grid {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.book-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(23, 35, 31, 0.08);
}

.featured-book {
  transform: translateY(-14px);
  box-shadow: var(--shadow);
}

.book-cover {
  position: relative;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  color: var(--white);
  overflow: hidden;
}

.book-cover::before,
.book-cover::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.book-cover::before {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
}

.book-cover::after {
  right: -20%;
  bottom: -12%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.cover-tiita {
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.18) 0 22%, transparent 23%),
    linear-gradient(180deg, #793c35, #bf7450 58%, #e2bd7b);
}

.cover-suluti {
  background:
    radial-gradient(circle at 68% 24%, rgba(228, 220, 123, 0.7) 0 9%, transparent 10%),
    linear-gradient(138deg, rgba(118, 207, 189, 0.58) 0 24%, transparent 25% 100%),
    linear-gradient(180deg, #0b2638, #1f6f75 58%, #b6bc79);
}

.cover-napu {
  background:
    linear-gradient(150deg, rgba(240, 228, 199, 0.28) 0 28%, transparent 29%),
    linear-gradient(180deg, #253b35, #66816d 60%, #d7c79f);
}

.cover-upcoming {
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(24, 32, 28, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #e9e4d8, #c9d7d5);
}

.cover-title {
  position: relative;
  z-index: 1;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
}

.cover-subtitle,
.cover-kicker,
.cover-author {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-subtitle {
  max-width: 12rem;
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.76);
}

.book-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.book-date {
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-copy p:not(.book-date) {
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  color: var(--red);
  font-weight: 800;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-portrait {
  display: grid;
  min-height: 500px;
  place-items: end start;
  padding: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 22%, rgba(250, 235, 177, 0.92) 0 8%, transparent 9%),
    linear-gradient(145deg, transparent 0 36%, rgba(216, 230, 224, 0.78) 37% 48%, transparent 49%),
    linear-gradient(180deg, #12322f, #406a5f 58%, #a76c49);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-portrait span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 700;
}

.about-copy {
  max-width: 760px;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.newsletter-section p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
}

.signup-form {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 35, 31, 0.08);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.signup-row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfaf5;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: rgba(255, 253, 248, 0.74);
  background: #10231f;
}

@media (max-width: 980px) {
  .hero,
  .about-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
  }

  .hero-copy {
    padding-top: 48px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-book {
    transform: none;
  }
}

@media (max-width: 680px) {
  .site-header,
  .nav,
  .hero-actions,
  .signup-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    gap: 10px;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-book-stack {
    right: 5%;
    gap: 10px;
  }

  .intro-band,
  .book-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .book-cover {
    min-height: 250px;
  }

  .about-portrait {
    min-height: 360px;
  }
}
