/* Hoofpal's public pages: the app's Saddle Stitch look (app/lib/theme/hoof_theme.dart), white,
   leather and brass, kept plain for reading. System fonts only, so the pages fetch nothing from
   anyone else. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface2: #f4efe9;
  --line: #e8dfd5;
  --ink: #141210;
  --muted: #5c544d;
  --leather: #8b4a22;
  --leather-dark: #6e3818;
  --leather-soft: #f3e7dc;
  --stitch: rgba(255, 236, 220, 0.6);
  --brass: #b39456;
  --brass-light: #e3cc97;
  --brass-edge: #7b5f28;
  --gold-soft: #faf0c2;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

/* The strap: a leather band with a cream stitch, like the app's bars. */
header.top {
  background: var(--leather);
  border-bottom: 3px solid var(--brass);
}
header.top .in {
  max-width: 740px;
  margin: 0 auto;
  padding: 14px 16px;
}
header.top a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff8f0;
  text-decoration: none;
  font: 600 22px/1 var(--serif);
  letter-spacing: 0.01em;
  padding: 8px 14px 9px 10px;
  border: 1px dashed var(--stitch);
  border-radius: 10px;
}
header.top svg { width: 26px; height: 26px; flex: none; }

main, footer .in { max-width: 740px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 12px; }

h1 {
  font: 600 38px/1.1 var(--serif);
  margin: 34px 0 6px;
  letter-spacing: -0.01em;
}
h2 {
  font: 600 23px/1.25 var(--serif);
  margin: 38px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 17px; margin: 22px 0 4px; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { font-weight: 650; }
a { color: var(--leather); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--leather-dark); }
.meta { color: var(--muted); font-size: 15px; margin-top: 0; }
.lede { font-size: 19px; }

/* The short version, and other boxes worth stopping at. */
.box {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px 10px;
  margin: 22px 0;
}
.box h2 { border-top: 0; padding-top: 0; margin-top: 16px; }

/* The care line: a leather-tinted box for "this is not a vet". */
.care {
  background: var(--leather-soft);
  border: 1px solid #e6d2c0;
  border-left: 4px solid var(--leather);
  border-radius: 12px;
  padding: 4px 20px 10px;
  margin: 22px 0;
}
.care h2 { border-top: 0; padding-top: 0; margin-top: 16px; }

/* Draft notice (privacy and terms, until a lawyer has read them). */
.draft {
  background: var(--gold-soft);
  border: 1px solid var(--brass-light);
  border-left: 4px solid var(--brass);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 18px 0 8px;
  font-size: 15px;
  color: #3b2a12;
}
.draft strong { color: var(--brass-edge); }

.contact {
  display: inline-block;
  background: var(--leather);
  color: #fff8f0;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px dashed var(--stitch);
  outline: 2px solid var(--leather);
}
.contact:hover { color: #fff; background: var(--leather-dark); outline-color: var(--leather-dark); }

nav.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; margin: 18px 0; }
nav.toc a { white-space: nowrap; }

footer {
  margin-top: 44px;
  border-top: 3px solid var(--brass);
  background: var(--surface2);
  color: var(--muted);
  font-size: 15px;
}
footer .in { padding-top: 18px; padding-bottom: 34px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--leather); white-space: nowrap; }
footer p { margin: 12px 0 0; }

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  h1 { font-size: 31px; margin-top: 26px; }
  h2 { font-size: 21px; }
  .box, .care { padding: 2px 16px 8px; }
}
