:root {
  --paper: #fffaf4;
  --cream: #f5eadf;
  --rose: #b75b72;
  --rose-dark: #8f334f;
  --plum: #38172d;
  --ink: #2f1c28;
  --muted: #6f5262;
  --gold: #c99d5c;
  --line: rgba(143, 51, 79, 0.2);
  --white: #fffefb;
}

* {
  box-sizing: border-box;
}

html {
  background: #eadfd8;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand,
.quote {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.download-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(56, 23, 45, 0.92);
  color: #fff;
}

.download-bar a,
.download-bar button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: #fff;
  color: var(--plum);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.page {
  width: min(100%, 900px);
  min-height: 1165px;
  margin: 28px auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(56, 23, 45, 0.18);
  page-break-after: always;
}

.cover {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  min-height: 1165px;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 250, 244, 0.86) 54%, rgba(255, 250, 244, 0.15) 100%),
    url("../img/donna-cammino-ulivi.png") center right / cover no-repeat;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
}

.cover-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 36px 44px 0;
}

.book-shot {
  max-width: 310px;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(56, 23, 45, 0.33);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--rose-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand {
  color: var(--plum);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

h1 {
  max-width: 560px;
  color: var(--plum);
  font-size: 4.5rem;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 540px;
  margin-top: 22px;
  color: var(--rose-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.72rem;
  font-style: italic;
}

.promise {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 8px 12px;
}

.content {
  padding: 56px 62px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 34px;
  align-items: start;
}

.section-title {
  color: var(--plum);
  font-size: 2.55rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.card,
.callout,
.tracker,
.day-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 251, 0.82);
  padding: 20px;
}

.card h3,
.day-card h3,
.tracker h3 {
  color: var(--rose-dark);
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.card p,
.day-card p,
.tracker p {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  border-left: 6px solid var(--rose);
  background: #fff7f1;
  color: var(--muted);
  margin: 26px 0;
}

.image-panel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(56, 23, 45, 0.13);
}

.image-panel img {
  width: 100%;
}

.image-caption {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  padding: 14px 16px;
}

.routine {
  display: grid;
  gap: 14px;
}

.routine-step {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.routine-step:last-child {
  border-bottom: 0;
}

.time {
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.routine-step h3 {
  color: var(--rose-dark);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.routine-step p {
  color: var(--muted);
  font-size: 0.96rem;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.day-card {
  min-height: 165px;
  padding: 14px;
}

.day-card strong {
  display: block;
  color: var(--plum);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.check-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.box-line {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.box {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--rose-dark);
  border-radius: 4px;
  margin-top: 2px;
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 0.55fr) 1.3fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.tracker-grid div {
  min-height: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  font-size: 0.82rem;
}

.tracker-grid div:nth-child(6n) {
  border-right: 0;
}

.tracker-grid .head {
  background: var(--plum);
  color: #fff;
  font-weight: 900;
}

.quote {
  color: var(--plum);
  font-size: 2.65rem;
  font-style: italic;
  text-align: center;
}

.footer-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 22px;
  text-align: center;
}

@media (max-width: 760px) {
  .download-bar {
    position: static;
    flex-wrap: wrap;
  }

  .page {
    min-height: auto;
    margin: 0;
    box-shadow: none;
    page-break-after: auto;
  }

  .cover,
  .two-col,
  .card-grid,
  .calendar {
    grid-template-columns: 1fr;
  }

  .cover-copy,
  .content {
    padding: 34px 22px;
  }

  .cover-art {
    padding: 0 22px 34px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .calendar {
    gap: 14px;
  }

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

  .tracker-grid div {
    border-right: 0;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    background: #fff;
  }

  .download-bar {
    display: none;
  }

  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
  }
}
