:root {
  --ink: #102029;
  --muted: #5c6d75;
  --line: #d7e0e4;
  --paper: #f7faf9;
  --white: #ffffff;
  --steel: #294857;
  --teal: #0d6d75;
  --gold: #c99a3b;
  --rust: #a75230;
  --shadow: 0 18px 50px rgba(16, 32, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cart-link svg,
.button-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 30, 0.92), rgba(10, 24, 30, 0.55), rgba(10, 24, 30, 0.2)),
    linear-gradient(0deg, rgba(10, 24, 30, 0.86), rgba(10, 24, 30, 0.02) 45%),
    url("https://images.unsplash.com/photo-1605281317010-fe5ffe798166?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.hero-content {
  position: relative;
  width: min(850px, 100%);
  padding: 140px clamp(18px, 5vw, 64px) 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-content p:not(.eyebrow),
.publication-copy p,
.author-grid p {
  max-width: 710px;
  color: inherit;
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

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

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.publication-copy .button.secondary {
  color: var(--steel);
  background: var(--white);
  border-color: var(--line);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 64px);
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.publication-section,
.why-section {
  background: var(--paper);
}

.preview-section,
.author-section {
  background: var(--white);
}

.publication-grid,
.author-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
}

.book-cover {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.book-cover h2 {
  font-size: clamp(30px, 4.5vw, 50px);
}

.cover-kicker,
.cover-author {
  font-weight: 800;
  color: var(--ink);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sample-page {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 32, 41, 0.07);
}

.sample-page ol {
  margin: 0;
  padding-left: 20px;
}

.sample-page li + li {
  margin-top: 8px;
}

.sample-page p {
  margin: 0 0 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-list div {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 32, 41, 0.06);
  font-weight: 800;
}

.author-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #bfccd1;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.social-links {
  display: flex;
  gap: 12px;
  margin: 0;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px clamp(18px, 5vw, 64px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 640px;
  }

  .publication-grid,
  .author-grid,
  .preview-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .main-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-content {
    padding-top: 100px;
  }

  .button,
  .button-row {
    width: 100%;
  }

  .sample-page {
    min-height: 220px;
  }
}
