:root {
  --bg: #f2efe9;
  --ink: #1a1a1a;
  --purple: #6b2076;
  --orange: #e2551a;
  --green: #1b4020;
  --gold: #c4a05c;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--purple);
  color: var(--bg);
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 28px 120px;
  animation: page-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
}

/* ---------- Logo ---------- */

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 88px;
}

.logo {
  width: 180px;
  height: auto;
  display: block;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 28px;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--purple);
  margin: 0 0 40px;
}

.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 30px;
}

p {
  margin: 0 0 26px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Rules ---------- */

.rule {
  border: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
  margin: 96px 0;
}

/* ---------- Services list ---------- */

.services {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
}

.services li {
  padding: 7px 0;
}

.services li:first-child {
  padding-top: 0;
}

/* ---------- Testimonials ---------- */

.testimonial {
  margin: 0 0 64px;
  padding: 0;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.testimonial cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- The Book ---------- */

.book-link {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.book-link:hover {
  border-bottom-color: var(--orange);
}

.kindle-note {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.65;
  margin-top: 14px;
}

/* ---------- Contact ---------- */

.contact-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.portrait {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.contact-details {
  min-width: 0;
}

.email {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(21px, 4.6vw, 26px);
  line-height: 1.2;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
  overflow-wrap: anywhere;
}

.email:hover {
  border-bottom-color: var(--orange);
}

a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .page {
    padding: 64px 24px 88px;
  }

  .site-header {
    margin-bottom: 64px;
  }

  .rule {
    margin: 68px 0;
  }

  h1 {
    margin-bottom: 32px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .portrait {
    width: 140px;
  }

  .contact-details {
    width: 100%;
  }
}

/* ---------- Print-only elements ---------- */

.print-only {
  display: none;
}

@page {
  margin: 0.75in;
}

/* ---------- Print (must stay last in file) ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.45;
  }

  .page {
    max-width: none;
    padding: 0;
    animation: none;
    zoom: 0.6;
  }

  .site-header {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .logo {
    width: 90px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .eyebrow,
  .label {
    color: #000;
    margin-bottom: 10px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  p {
    margin-bottom: 10px;
  }

  .rule {
    margin: 16px 0;
    opacity: 1;
    background: #999;
  }

  .rule:has(+ .book-section),
  .book-section {
    display: none;
  }

  .services {
    margin-bottom: 12px;
  }

  .services li {
    padding: 2px 0;
  }

  .testimonial {
    margin-bottom: 14px;
  }

  .testimonial p {
    font-size: 11pt;
    margin-bottom: 6px;
  }

  .testimonial cite {
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  a[href]::after {
    content: none;
  }

  .email {
    color: var(--orange);
    font-size: 16pt;
    border-bottom: 0;
  }

  .contact-inner {
    gap: 28px;
    align-items: center;
  }

  .portrait {
    width: 90px;
  }

  .print-only {
    display: block;
    margin-top: 8px;
  }
}

/* ---------- Print fallback for browsers without zoom (older Firefox) ---------- */

@supports not (zoom: 1) {
  @media print {
    body {
      font-size: 7.5pt;
      line-height: 1.35;
    }

    h1 {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .eyebrow,
    .label {
      margin-bottom: 6px;
    }

    p {
      margin-bottom: 6px;
    }

    .rule {
      margin: 10px 0;
    }

    .site-header {
      margin-bottom: 12px;
    }

    .logo {
      width: 60px;
    }

    .services {
      margin-bottom: 8px;
    }

    .testimonial {
      margin-bottom: 8px;
    }

    .testimonial p {
      font-size: 7.5pt;
      margin-bottom: 4px;
    }

    .email {
      font-size: 11pt;
    }

    .portrait {
      width: 60px;
    }

    .contact-inner {
      gap: 18px;
    }
  }
}
