/*
 * Shared design system for lukelabonte.github.io/public-documents
 *
 * Fonts (load in each HTML file):
 *   https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap
 */

/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-alt: #F5F0E8;

  /* Borders */
  --border: #E4DDD1;
  --border-strong: #C8BFAE;

  /* Text */
  --text: #2D2518;
  --text-muted: #6B6152;
  --text-light: #96897A;

  /* Accent (warm orange-brown) */
  --accent: #B5632E;
  --accent-light: #E8A86D;
  --accent-bg: #FDF3EB;

  /* Semantic colors */
  --green: #4A7C5C;
  --green-bg: #EDF5F0;
  --blue: #3E6B8A;
  --blue-bg: #EBF2F7;
  --red: #9E4444;
  --red-bg: #FBF0F0;
  --gold: #A07830;
  --gold-bg: #FBF4E6;
  --purple: #7C5CBF;
  --purple-bg: #F5F0FB;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(45,37,24,0.06);
  --shadow-md: 0 4px 12px rgba(45,37,24,0.08);

  /* Shape */
  --radius: 12px;
}

/* ─── Reset ─────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Base ───────────────────────────────────────────────────────────── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ─── Back Button ────────────────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--accent);
}

.back-btn::before {
  content: '←';
  font-size: 1rem;
}

/* ─── Page Header ────────────────────────────────────────────────────── */
.header {
  text-align: center;
  padding: 48px 20px 40px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.header-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.header .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

.updated {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--surface-alt);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ─── Section Headings ───────────────────────────────────────────────── */
.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

/* ─── TL;DR Banner ───────────────────────────────────────────────────── */
.tldr {
  background: var(--accent-bg);
  border: 1.5px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.tldr-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.tldr p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.tldr strong {
  color: var(--text);
}

/* ─── Note / Callout Boxes ───────────────────────────────────────────── */
.note {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.note h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.note ul {
  padding-left: 18px;
  margin-top: 8px;
}

.note li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.note li:last-child {
  margin-bottom: 0;
}

/* Note variants */
.note-green {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
}

.note-green h3 { color: var(--green); }

.note-orange {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
}

.note-orange h3 { color: var(--accent); }

.note-blue {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
}

.note-blue h3 { color: var(--blue); }

.note-red {
  background: var(--red-bg);
  border-left: 3px solid var(--red);
}

.note-red h3 { color: var(--red); }

.note-purple {
  background: var(--purple-bg);
  border-left: 3px solid var(--purple);
}

.note-purple h3 { color: var(--purple); }

/* ─── Badges / Tags ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-green  { background: var(--green-bg);  color: var(--green);  }
.badge-orange { background: var(--accent-bg); color: var(--accent); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   }
.badge-red    { background: var(--red-bg);    color: var(--red);    }
.badge-gold   { background: var(--gold-bg);   color: var(--gold);   }

/* ─── Tables ─────────────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

thead th {
  background: var(--surface-alt);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

tbody tr:hover {
  background: var(--surface-alt);
}

.highlight-row td {
  background: var(--accent-bg);
  font-weight: 600;
}

/* ─── Simple Footer Bar ──────────────────────────────────────────────── */
/*
 * Use .footer-bar for the site-wide plain text footer.
 * (dog-feeding-guide uses its own .footer card style, kept in-page.)
 */
.footer-bar {
  text-align: center;
  padding: 32px 20px;
  border-top: 1.5px solid var(--border);
  margin-top: 40px;
  color: var(--text-light);
  font-size: 0.825rem;
}

/* ─── Divider ────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header h1 { font-size: 1.6rem; }
  table { font-size: 0.82rem; }
  thead th, tbody td { padding: 8px 10px; }
}

@media print {
  body { background: white; }
  .container { max-width: 100%; }
}
