/* ================================
   BOOK PRE-ORDER WEBSITE
   Cover-inspired visual system
   ================================ */

:root {
  --ink: #183047;
  --paper: #eaf3f9;
  --panel: #d9e8f2;
  --cream: #c6d7e3;
  --accent: #6d9fca;
  --accent-dark: #3d6c95;
  --deep: #234b6a;
  --muted: #60798d;
  --white: #ffffff;
  --line: rgba(24, 48, 71, 0.16);
  --shadow: 0 24px 70px rgba(31, 72, 103, 0.2);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(133, 183, 218, 0.24), transparent 26rem),
    linear-gradient(180deg, #eaf3f9 0%, #f7fbfd 54%, #dcecf5 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(234, 243, 249, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 48, 71, 0.14);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand,
.hero-copy h2,
.section h3,
.centered-heading h3,
.author-grid h3,
.preorder-box h3,
.newsletter h3,
blockquote,
.trust-grid strong,
.feature-card h4,
.details-grid strong {
  font-family: "Playfair Display", serif;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #35556d;
}

nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: #f5f9fc;
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(35, 75, 106, 0.14);
  transition: 0.2s ease;
}

.nav-cta:hover {
  background: var(--cream);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.hero {
  min-height: 780px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 70px 0 95px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(179, 211, 231, 0.3));
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  background: rgba(92, 151, 193, 0.16);
  top: 80px;
  left: -120px;
}

.hero-glow-two {
  width: 520px;
  height: 520px;
  background: rgba(109, 159, 202, 0.16);
  bottom: -220px;
  right: -100px;
}

.book-wrap {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: min(360px, 82vw);
  aspect-ratio: 0.68;
  height: auto;
  background: #c8dce9;
  object-fit: fill;
  object-position: center;
  border-radius: 3px 10px 10px 3px;
  box-shadow: var(--shadow);
  transform: rotateY(-8deg) rotateZ(-1deg);
  border-left: 12px solid #294c67;
  position: relative;
}

.book-shadow {
  width: 65%;
  height: 32px;
  position: absolute;
  bottom: -18px;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 50%;
  filter: blur(15px);
  z-index: -1;
}

.eyebrow,
.section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #486c85;
  margin-bottom: 18px;
}

.hero-copy h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.hero-copy h2 span {
  color: var(--accent);
  font-style: italic;
}

.hero-description,
.body-copy {
  color: #496579;
}

.hero-description {
  max-width: 680px;
  font-size: 1.12rem;
  margin-bottom: 30px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 25px 0 30px;
}

.price-label,
.details-grid span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.price {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.format-pill {
  background: var(--cream);
  color: var(--deep);
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 0 23px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
  font-size: 0.95rem;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(109, 159, 202, 0.28);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid rgba(198, 203, 209, 0.55);
  background: transparent;
}

.button-light {
  background: #dfe3e6;
  color: var(--deep);
}

.microcopy {
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.82rem;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 118px;
}

.trust-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 35px;
  border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid strong {
  font-size: 1.2rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.section {
  padding: 110px 0;
}

.two-column,
.author-grid,
.preorder-box,
.newsletter-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.section h3,
.centered-heading h3,
.author-grid h3 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.body-copy {
  font-size: 1.12rem;
}

.body-copy p + p {
  margin-top: 20px;
}

.muted-section {
  background: var(--panel);
}

.centered-heading {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(49, 97, 132, 0.18);
  border-radius: var(--radius);
  padding: 36px;
}

.feature-number {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3d6c95;
  margin-bottom: 42px;
}

.feature-card h4 {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.feature-card p,
.newsletter p {
  color: var(--muted);
}

.quote-section {
  background: linear-gradient(135deg, #376b91, #74a9c9);
  color: var(--white);
  padding: 110px 0;
}

.quote-inner {
  max-width: 880px;
  text-align: center;
}

.quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 6rem;
  height: 76px;
  color: var(--cream);
}

blockquote {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 28px;
}

.quote-inner p {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.68;
}

.author-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.author-photo {
  display: flex;
  justify-content: center;
}

.portrait-placeholder {
  width: min(380px, 85vw);
  aspect-ratio: 0.82;
  border-radius: 200px 200px 26px 26px;
  background: linear-gradient(145deg, rgba(198, 203, 209, 0.24), transparent), #203b51;
  display: grid;
  place-items: center;
  color: rgba(236, 237, 240, 0.58);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  box-shadow: var(--shadow);
}

.portrait-photo {
  width: min(380px, 85vw);
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 200px 200px 26px 26px;
  box-shadow: var(--shadow);
}

.author-lead {
  font-size: 1.35rem;
  margin: 25px 0 18px;
  color: #294c67;
}

.author-copy .section-label {
  color: #a85f3e;
}

.about-book-label {
  color: #a85f3e;
}

.why-read-label {
  color: #a85f3e;
}

.author-copy h3 {
  color: #172a3d;
  font-size: clamp(3.4rem, 6vw, 5.3rem);
  line-height: 0.98;
}

.author-copy .author-lead {
  max-width: 720px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.35;
  margin-top: 28px;
}

.author-bio {
  max-width: 680px;
  color: #183047;
  font-size: 1.08rem;
  line-height: 1.75;
}

.author-bio a {
  color: #3d6c95;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.author-grid p {
  max-width: 650px;
}

.edit-note {
  margin-top: 22px;
  padding: 13px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(109, 159, 202, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

.book-details {
  background: #e0eef6;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.details-grid > div {
  padding: 30px;
  min-height: 125px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details-grid span {
  margin-bottom: 8px;
}

.details-grid strong {
  font-size: 1.25rem;
}

.preorder-section {
  background: linear-gradient(135deg, #5d91b3, #91bfd8 58%, #3e6f91);
  color: #ffffff;
  padding: 95px 0;
}

.preorder-box {
  grid-template-columns: 1fr 0.85fr;
}

.section-label.light {
  color: rgba(255, 255, 255, 0.72);
}

.preorder-box h3 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
}

.preorder-box > div:first-child p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
}

.preorder-card {
  background: #234b6a;
  padding: 28px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(24, 4, 8, 0.3);
}

.preorder-card .button {
  grid-column: 1 / -1;
}

.mini-book {
  width: 76px;
  height: 106px;
  object-fit: fill;
  display: block;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.small-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.68;
  font-weight: 700;
}

.preorder-price {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 3px;
}

.preorder-card p {
  font-size: 0.86rem;
  opacity: 0.7;
}

.newsletter-inner {
  grid-template-columns: 1fr 0.8fr;
}

.newsletter h3 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  margin-bottom: 14px;
}

.email-form {
  display: grid;
  gap: 12px;
}

.email-form input {
  width: 100%;
  min-height: 56px;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.email-form input::placeholder {
  color: #6d8799;
}

.form-message {
  min-height: 22px;
  font-size: 0.85rem;
}

footer {
  background: #234b6a;
  color: rgba(255, 255, 255, 0.84);
  padding: 60px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: end;
}

.footer-brand {
  font-size: 1.5rem;
  color: var(--white);
}

.footer-inner p,
.footer-links {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 55px;
  }

  .hero-grid,
  .two-column,
  .author-grid,
  .preorder-box,
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .price-row {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .trust-grid > div:first-child {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 78px 0;
  }

  .site-header .nav {
    min-height: 68px;
  }

  .hero-copy h2 {
    font-size: 3rem;
  }

  .price-row {
    flex-direction: column;
    gap: 12px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .preorder-card {
    grid-template-columns: 78px 1fr;
  }

  .mini-book {
    width: 66px;
    height: 94px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
