/* pute.us Veterinary Resource Library */

@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --magenta: #c70d83;
  --magenta-dark: #a10a6a;
  --magenta-light: #ff6ec7; /* accent text on charcoal (AA contrast) */
  --magenta-tint: #fbeaf5;
  --charcoal: #151515;
  --charcoal-2: #232323;
  --white: #ffffff;
  --gray-50: #f7f5f7;
  --gray-200: #e6e1e6;
  --gray-600: #59616b;
  --text: #151515;
  --muted: #59616b;
  --success: #17703f;
  --error: #b3261e;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(21, 21, 21, 0.06), 0 1px 3px rgba(21, 21, 21, 0.08);
  --shadow: 0 10px 30px -12px rgba(21, 21, 21, 0.25);
  --shadow-cover: 0 24px 50px -18px rgba(21, 21, 21, 0.55), 0 4px 12px rgba(21, 21, 21, 0.18);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keep focused fields and anchor targets clear of the sticky header. */
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}

a {
  color: var(--magenta);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--magenta-dark);
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 780px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}
.icon-sm {
  width: 1em;
  height: 1em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn .icon {
  transition: transform 0.15s ease;
}
.btn-primary {
  background: var(--magenta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--magenta-dark);
  color: var(--white);
}
.btn-outline {
  border-color: var(--magenta);
  color: var(--magenta);
  background: transparent;
}
.btn-outline:hover {
  background: var(--magenta);
  color: var(--white);
}
.btn-light {
  background: var(--white);
  color: var(--charcoal);
}
.btn-light:hover {
  background: var(--gray-50);
  color: var(--charcoal);
}
.btn-lg {
  font-size: 1.05rem;
  padding: 0.85em 1.7em;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  cursor: progress;
  opacity: 0.85;
}

.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--charcoal);
}
.brand img {
  width: 132px;
  height: auto;
}
.brand-tag {
  padding-left: 12px;
  border-left: 1px solid var(--gray-200);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav {
  position: relative;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu a[aria-current='page'] {
  color: var(--magenta);
  background: var(--magenta-tint);
}
.nav-menu .nav-cta {
  border: 2px solid var(--charcoal);
}
.nav-menu .nav-cta:hover {
  border-color: var(--magenta);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
}
.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  .brand-tag {
    display: none;
  }
  /* Without JavaScript the links simply stay visible. */
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .js .nav-menu.is-open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
  }
  html:not(.js) .nav-menu {
    gap: 0;
  }
  html:not(.js) .nav-menu a {
    padding: 0.4em 0.5em;
    font-size: 0.9rem;
  }
}

/* ---------- Generic sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 96px);
}
.section-tight {
  padding-block: clamp(32px, 5vw, 56px);
}
.section-tint {
  background: var(--gray-50);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-lead,
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta-light);
}
.eyebrow::after {
  content: '';
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--magenta);
}
.eyebrow-dark {
  color: var(--magenta);
}

.chip {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--magenta-tint);
  color: var(--magenta-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist {
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.checklist .icon {
  margin-top: 0.2em;
  padding: 3px;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
}
.checklist-compact li {
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.checklist-compact .icon {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
  padding-block: clamp(56px, 9vw, 112px);
}
/* The magenta ring echoes the ebook covers. */
.hero-ring {
  position: absolute;
  width: clamp(420px, 55vw, 760px);
  aspect-ratio: 1;
  right: -20%;
  top: -48%;
  border: clamp(48px, 7vw, 96px) solid var(--magenta);
  border-radius: 50%;
  opacity: 0.95;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  color: var(--white);
  max-width: 15em;
}
.hero .lead {
  color: #d9d6d9;
  max-width: 36em;
}
.hero-actions {
  margin: 28px 0;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e9e6e9;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-points li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-points .icon {
  color: var(--magenta-light);
}
.hero-covers {
  position: relative;
  height: clamp(320px, 34vw, 440px);
}
.hero-cover {
  position: absolute;
  width: 58%;
  height: auto;
  border-radius: 6px;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-cover);
}
.hero-cover-1 {
  left: 0;
  top: 12%;
  transform: rotate(-7deg);
  z-index: 1;
}
.hero-cover-2 {
  left: 21%;
  top: 0;
  z-index: 3;
}
.hero-cover-3 {
  right: 0;
  top: 12%;
  transform: rotate(7deg);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-covers {
    height: 300px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-ring {
    top: auto;
    bottom: -18%;
    right: -40%;
    opacity: 0.6;
  }
}

/* ---------- Book cards ---------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.book-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.book-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.book-card-cover {
  display: flex;
  justify-content: center;
  padding: 32px 24px 28px;
  background: linear-gradient(160deg, var(--gray-50) 0%, #efe9ef 100%);
}
.book-card-cover .cover img {
  width: 190px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow-cover);
}
.book-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.book-card-title {
  font-size: 1.2rem;
}
.book-card-title a {
  color: var(--charcoal);
  text-decoration: none;
}
.book-card-title a:hover {
  color: var(--magenta);
}
.book-card-desc {
  color: var(--muted);
  font-size: 0.97rem;
}
.book-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Features & CTA band ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 24px;
}
.feature {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.feature p {
  color: var(--muted);
  margin: 0;
}
.feature-icon {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--magenta-tint);
  color: var(--magenta);
}
.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 80px);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-inner h2 {
  color: var(--white);
}
.cta-inner p {
  color: #d9d6d9;
  margin: 0;
  max-width: 40em;
}

/* ---------- Book landing page ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--gray-200);
}
.breadcrumbs a {
  color: var(--muted);
}

.book-hero {
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 7vw, 80px);
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}
.book-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 390px);
  grid-template-areas: 'cover info form';
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
}
.book-hero-cover {
  grid-area: cover;
  position: sticky;
  top: 100px;
}
.book-hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow-cover);
}
.book-hero-info {
  grid-area: info;
}
.book-hero-info h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}
.book-hero-form {
  grid-area: form;
  scroll-margin-top: 96px;
}
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 1.25em;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--charcoal);
}
.book-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.book-meta .icon {
  color: var(--magenta);
}

@media (max-width: 1080px) {
  .book-hero-grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    grid-template-areas:
      'cover info'
      'form form';
  }
  .book-hero-cover {
    position: static;
  }
  .book-hero-form {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .book-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'info' 'cover' 'form';
  }
  .book-hero-cover {
    max-width: 220px;
    justify-self: center;
  }
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.audience {
  padding: 14px 18px;
  border-left: 4px solid var(--magenta);
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.chapters {
  counter-reset: chapter;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.chapters li {
  counter-increment: chapter;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 700;
}
.chapters li::before {
  content: counter(chapter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.9rem;
}

/* ---------- Form ---------- */

.signup-form {
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 5px solid var(--magenta);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 1.45rem;
  margin-bottom: 0.25em;
}
.form-intro {
  color: var(--muted);
  font-size: 0.97rem;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.req {
  color: var(--magenta);
}
.optional {
  font-weight: 500;
  color: var(--muted);
}
.field input[type='email'],
.field input[type='text'] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid #c9c3c9;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus-visible {
  outline: 3px solid rgba(199, 13, 131, 0.35);
  outline-offset: 0;
  border-color: var(--magenta);
}
.field input[aria-invalid='true'] {
  border-color: var(--error);
}
.field-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
}
.field-consent input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--magenta);
  cursor: pointer;
}
.field-consent label {
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--charcoal);
  cursor: pointer;
}
.field-consent .field-error {
  grid-column: 2;
}
.field-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.88rem;
  font-weight: 700;
}
.privacy-note {
  font-size: 0.85rem;
  color: var(--muted);
}
.cf-turnstile {
  min-height: 65px;
}
@media (max-width: 360px) {
  .signup-form {
    padding: 18px 14px;
  }
}
.form-status:empty {
  display: none;
}
.form-alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
}
.form-alert-error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c2bd;
}
.form-alert-success {
  background: #e7f5ec;
  color: var(--success);
  border: 1px solid #b7dfc5;
}
.form-fineprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-fineprint .icon {
  color: var(--magenta);
}

/* ---------- Simple pages ---------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 16px);
}
.page-hero-center {
  text-align: center;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-hero-center .lead {
  margin-inline: auto;
  max-width: 36em;
}
.success-mark {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 0 0 10px var(--magenta-tint);
}
.success-mark .icon {
  width: 36px;
  height: 36px;
}
.steps {
  counter-reset: step;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 60px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 800;
}
.steps h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25em;
  padding-top: 7px;
}
.steps p {
  color: var(--muted);
  margin: 0;
}
.callout {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--magenta-tint);
  border-left: 4px solid var(--magenta);
}
.callout p {
  margin: 0;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}
.prose ul {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.5em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #cfcbcf;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px 32px;
}
.footer-logo {
  display: inline-block;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: var(--white);
  border-radius: 10px;
}
.footer-logo img {
  width: 120px;
  height: auto;
}
.footer-brand p {
  max-width: 28em;
}
.footer-heading {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: #e9e6e9;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--magenta-light);
  text-decoration: underline;
}
.footer-base {
  padding-block: 20px 28px;
  border-top: 1px solid #2e2e2e;
  font-size: 0.85rem;
}
.footer-base p {
  margin: 0;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
