/* How Much to Feed a Dog — veterinary feeding card, forest palette */

:root {
  --bg: #f3f6f1;
  --card: #ffffff;
  --ink: #1d2a1f;
  --soft: #5d6e60;
  --green: #2f7d4f;
  --green-deep: #24603c;
  --amber: #d9a441;
  --line: #dfe6da;
  --tint: #eaf1e7;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(29, 42, 31, 0.06);
  --shadow-2: 0 8px 24px rgba(29, 42, 31, 0.08);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'DM Serif Display', Georgia, 'Times New Roman', serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }
a { color: var(--green-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-text {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
}

.site-nav a:hover { color: var(--green-deep); }

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

.hero {
  padding: 56px 0 32px;
}

.hero-compact { padding: 40px 0 24px; }

.hero-inner { max-width: 760px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 16px;
}

.hero-lede {
  font-size: 18px;
  color: var(--soft);
  margin: 0;
  max-width: 62ch;
}

/* ---------- bands ---------- */

.tool-band { padding: 8px 0 48px; }
.prose-band { padding: 16px 0 48px; }
.faq-band { padding: 16px 0 48px; }
.next-band { padding: 16px 0 64px; }

.band-title {
  font-size: 28px;
  margin-bottom: 24px;
}

/* ---------- prose ---------- */

.prose {
  max-width: 70ch;
}

.prose h2 {
  font-size: 28px;
  margin: 48px 0 12px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--tint);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose blockquote a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose blockquote a:hover { color: var(--green); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.prose th {
  background: var(--tint);
  font-weight: 600;
  font-size: 13px;
}

.prose tr:last-child td { border-bottom: none; }

/* ---------- faq ---------- */

.faq-list { max-width: 70ch; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-1);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 20px;
  color: var(--green);
  line-height: 1;
}

.faq-item[open] summary::after { content: '\2013'; }

.faq-item p {
  color: var(--soft);
  margin: 0 0 16px;
  font-size: 15px;
}

/* ---------- next links ---------- */

.next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-list a {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.next-list a:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-2);
}

.next-list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
}

.next-list span {
  display: block;
  font-size: 14px;
  color: var(--soft);
  line-height: 1.5;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
  font-size: 14px;
  color: var(--soft);
}

.footer-lede {
  max-width: 62ch;
  margin: 0 0 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-nav a { color: var(--soft); text-decoration: none; }
.footer-nav a:hover { color: var(--green-deep); text-decoration: underline; }

.footer-copy { font-size: 13px; margin: 0; }


/* ---------- tool card ---------- */

.tool-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.tool-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.tool-card-title {
  font-size: 22px;
  margin: 0;
}

.tool-card-note {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
}

/* ---------- calculator ---------- */

.fc {
  padding: 24px;
}

.fc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.fc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.fc-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.fc-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fcfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
}

select.fc-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235d6e60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.fc-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.15);
}

.fc-combo {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.fc-combo .fc-input { flex: 1 1 auto; min-width: 0; }

.fc-combo-select { flex: 0 0 auto; width: auto; font-size: 14px; }

.fc-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 auto;
  background: #fcfdfb;
}

.fc-seg-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
}

.fc-seg-btn.is-on {
  background: var(--green);
  color: #fff;
}

.fc-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}

.fc-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--soft);
  margin: 0;
}

.fc-hint-center { text-align: center; margin-top: 8px; }

.fc-empty {
  margin: 24px 0 0;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--soft);
  background: var(--tint);
  border-radius: var(--radius);
}

.fc-out {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.fc-out-main { text-align: center; margin-bottom: 20px; }

.fc-out-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 4px;
}

.fc-out-big {
  font-family: var(--font-head);
  font-size: 48px;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fc-out-unit {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--soft);
}

.fc-out-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--soft);
}

/* the one memory point: a measuring-cup gauge of the daily portion */

.fc-bowl {
  display: flex;
  gap: 3px;
  padding: 6px;
  background: var(--tint);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.fc-bowl-seg {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #3f9663, var(--green));
  position: relative;
}

.fc-bowl-seg:nth-child(even) {
  background: linear-gradient(180deg, #3f9663, #2a7048);
}

.fc-bowl-lab {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

.fc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
}

.fc-stats > div {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.fc-stats dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  margin-bottom: 2px;
}

.fc-stats dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.fc-why {
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

.fc-pdf {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.fc-pdf:hover { background: var(--green-deep); }
.fc-pdf:disabled { opacity: 0.7; cursor: default; }

.fc-pdf:focus-visible,
.fc-seg-btn:focus-visible,
.fc-input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(26px, 7vw, 32px); line-height: 1.15; }
  .hero-lede { font-size: 16px; }
  .wrap { padding: 0 16px; }

  .header-inner { gap: 8px; }
  .site-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 13px; white-space: nowrap; }
  .fc-combo { flex-wrap: wrap; }
  .fc-combo-select { flex: 1 1 100%; }

  .tool-card-head { padding: 16px; gap: 6px; }
  .tool-card-title { font-size: 20px; }
  .tool-card-note { font-size: 13px; }
  .fc { padding: 16px; }
  .fc-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fc-stats { grid-template-columns: minmax(0, 1fr); }
  .fc-out-big { font-size: 36px; }
  .fc-pdf { width: 100%; }

  .prose h2 { font-size: 22px; margin-top: 32px; }
  .prose h3 { font-size: 18px; }
  .band-title { font-size: 22px; }
  .next-list { grid-template-columns: minmax(0, 1fr); }
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 10px; }
}


/* alias line under the homepage calculator (added 2026-11-30) */
.alias-line {
  margin: 24px auto 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--soft);
  font-weight: 500;
  text-align: center;
}
@media (max-width: 600px) {
  .alias-line { font-size: 13px; text-align: left; }
}
