/* Steady Paw shared base: tokens, header, footer, buttons. Every page links this file first,
   then keeps only its page-specific styles inline. Markup contract: templates/partials.html */
:root {
  --cream: #F7F2EA; --cream-2: #FBF7F0; --sand: #E6D8C3; --sand-2: #EFE5D6;
  --sage: #5F7559; --sage-dark: #3F5236; --sage-soft: #E3E9DD;
  --terracotta: #C0704F;          /* borders, bullets, rules only */
  --terracotta-ink: #9A5232;      /* small text and badges (passes WCAG AA) */
  --charcoal: #2E2B28; --ink-soft: #5A544D; --line: #D9CDBA;
  --radius: 4px; --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
       font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sage-dark); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sage-dark); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font: 600 .95rem/1 "Inter", system-ui, sans-serif; padding: 15px 22px; border-radius: var(--radius);
       text-decoration: none; border: 1.5px solid var(--sage-dark); background: var(--sage-dark); color: #fff; cursor: pointer;
       transition: background .2s, border-color .2s, color .2s; text-align: center; }
.btn:hover { background: var(--sage); border-color: var(--sage); }
.btn-ghost { background: transparent; color: var(--sage-dark); }
.btn-ghost:hover { background: var(--sage-soft); color: var(--sage-dark); }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Fraunces", Georgia, serif; font-size: 1.3rem;
        color: var(--sage-dark); text-decoration: none; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 6px 24px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-size: .93rem; color: var(--sage-dark); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav a.nav-cta { border: 1.5px solid var(--sage-dark); border-radius: 999px; padding: 7px 14px; }
.site-nav a.nav-cta:hover { background: var(--sage-dark); color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  .site-header { padding: 14px 0; }
  .wrap { padding: 0 16px; }
  .logo { font-size: 1.15rem; } .logo svg { width: 26px; height: 26px; }
  .site-header .wrap { gap: 10px; }
  .site-nav { gap: 4px 14px; flex-wrap: nowrap; }
  .site-nav a { font-size: .88rem; }
  .site-nav a.nav-cta { padding: 6px 11px; }
}
@media (max-width: 420px) {
  .logo { font-size: 1.08rem; gap: 8px; } .logo svg { width: 24px; height: 24px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: .85rem; }
  .site-nav a.nav-cta { padding: 6px 10px; }
}
@media (max-width: 374px) { .site-nav a.hide-xs { display: none; } }

/* Footer */
.site-footer { background: var(--sage-dark); color: #E3E9DD; text-align: center; padding: 56px 0 40px; }
.site-footer .brand { font-family: "Fraunces", Georgia, serif; font-size: 1.3rem; color: #fff; }
.site-footer .tag { font-style: italic; margin: 6px 0 26px; color: #CFD9C8; }
.site-footer hr { border: 0; border-top: 1px solid rgba(255,255,255,.18); margin: 0 0 20px; }
.site-footer nav { line-height: 2.1; }
.site-footer nav a { color: #fff; margin: 0 8px; font-size: .9rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { font-size: .82rem; color: #CFD9C8; margin: 18px auto 0; max-width: 680px; }

/* Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-sm { padding: 11px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-quiet { font-size: .88rem; font-weight: 500; color: var(--sage-dark); text-underline-offset: 3px; }
.link-quiet:hover { color: var(--sage); }

/* Email signup form (MailerLite), used on / and /checklist */
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 500px; }
.signup-form input[type=email] { flex: 1 1 220px; min-width: 0; font: 400 1rem "Inter", system-ui, sans-serif; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--charcoal); }
.signup-form input[type=email]:focus-visible { border-color: var(--sage-dark); }
.form-msg { margin: 14px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--sage-soft); color: var(--sage-dark); max-width: 500px; }
.form-msg.error { background: #F6E3DA; color: #8A3F22; }
.form-msg strong { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
@media (max-width: 520px) { .signup-form .btn { width: 100%; } }
