/* Simple, responsive layout with a distinct mobile format */
:root{
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #4a4a4a;
  --line: #e9e9e9;

  --card: #ffffff;
  --shadow: 0 8px 28px rgba(0,0,0,.08);
  --radius: 18px;

  --btn: #111111;
  --btnText: #ffffff;
  --btnGhostBg: #ffffff;
  --btnGhostText: #111111;
  --btnGhostBorder: #cfcfcf;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

.page{ padding: 22px 14px 28px; }
.hero{ max-width: 1180px; margin: 0 auto; }

.grid{
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.author{ text-align: center; }
.author__photo{
  width: 170px;
  aspect-ratio: 206 / 263;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
}
.author__name{ font-weight: 700; font-size: 1.06rem; }
.author__email{ display:inline-block; margin-top: 4px; color: var(--muted); text-decoration: none; }
.author__email:hover{ text-decoration: underline; }

.book__title{
  margin: 2px 0 6px;
  font-size: 2.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.book__tagline{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 6px;
}

.btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .08s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--btn);
  color: var(--btnText);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.btn--primary:hover{ box-shadow: 0 14px 26px rgba(0,0,0,.18); }

.btn--ghost{
  background: var(--btnGhostBg);
  color: var(--btnGhostText);
  border-color: var(--btnGhostBorder);
}
.btn--ghost:hover{ box-shadow: 0 10px 20px rgba(0,0,0,.10); }

.divider{
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.sections{ display: grid; gap: 14px; }
.textblock h2{
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.textblock p{ margin: 0 0 10px; color: #151515; }
.textblock p:last-child{ margin-bottom:0; }

.cover{ text-align: center; }
.cover__img{
  border-radius: 14px;
  border: 1px solid var(--line);
}
.cover__preview{ margin-top: 12px; width: 100%; }

.footer{
  max-width: 1180px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}
.footer__inner{
  padding: 12px 10px;
}

/* Tablet */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .cta{ grid-template-columns: 1fr 1fr; }
  .author{ order: 2; }
  .cover{ order: 1; }
  .book{ order: 3; }
}

/* Mobile — distinct format: stacked cover + big buttons above content */
@media (max-width: 640px){
  .cover{ order: 1; }
  .book{ order: 2; }
  .author{ order: 99; }
  .page{ padding: 14px 12px 22px; }
  .card{ padding: 16px; border-radius: 16px; }

  .book__title{ font-size: 1.7rem; }
  .book__tagline{ font-size: 1rem; margin-bottom: 12px; }

  .cta{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 6px;
  }

  /* Make cover feel like the hero on mobile */
  .cover__img{ max-width: 260px; margin: 0 auto; }
  .cover__preview{ min-height: 50px; }

  /* Reduce “card” feeling on author section to save space */
  .author__photo{ width: 140px; }
}
