/* Shared reading theme for Cat Parent Lab article and information pages. */
:root {
  color-scheme: light;
  --site-ink: #183239;
  --site-muted: #586b69;
  --site-paper: #faf7f0;
  --site-white: #fffefa;
  --site-pine: #244b4b;
  --site-gold: #d99d3c;
  --site-line: #e6e0d3;
}

body {
  max-width: none;
  min-height: 100vh;
  padding: 0 22px 54px;
  color: var(--site-ink);
  background: var(--site-paper);
  font-size: 18px;
  line-height: 1.72;
}

.site-header,
body > footer {
  max-width: 800px;
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px 2px 15px;
  border-bottom: 1px solid var(--site-line);
}

.site {
  margin: 0;
  color: var(--site-ink);
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.site a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: .82rem;
}

nav a,
footer .links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--site-muted);
  text-decoration: none;
}

nav a:hover,
footer .links a:hover {
  color: var(--site-ink);
  background: #efe9dc;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(24px, 5.5vw, 56px);
  border: 1px solid rgba(230, 224, 211, .8);
  border-radius: 22px;
  background: var(--site-white);
  box-shadow: 0 14px 40px rgba(24, 50, 57, .055);
}

h1,
h2,
h3 {
  color: var(--site-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

h1 {
  margin: 0 0 .62em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
}

h2 {
  margin-top: 1.8em;
  font-size: 1.55em;
  line-height: 1.25;
}

h3 {
  font-size: 1.2em;
  line-height: 1.3;
}

p,
li {
  color: #344b4c;
}

strong {
  color: var(--site-ink);
}

a {
  color: var(--site-pine);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.card,
figure {
  border: 1px solid #dce8df;
  border-radius: 16px;
  background: #f1f7f2;
}

figure {
  padding: clamp(14px, 3vw, 24px);
}

figcaption,
.small {
  color: var(--site-muted);
}

.note {
  border-left-color: var(--site-gold);
  border-radius: 0 12px 12px 0;
  background: #fff8e9;
}

.table-wrap {
  border: 1px solid var(--site-line);
  border-radius: 12px;
}

table {
  background: var(--site-white);
}

th {
  color: var(--site-ink);
  background: #f2eee4;
}

th,
td {
  border-bottom-color: var(--site-line);
}

footer {
  margin-top: 26px;
  color: var(--site-muted);
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

@media (max-width: 560px) {
  body {
    padding: 0 14px 38px;
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 15px;
    padding: 16px 0 12px;
  }

  nav {
    gap: 1px;
  }

  nav a {
    padding: 6px 8px;
  }

  main {
    padding: 23px 19px 28px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  h2 {
    font-size: 1.37em;
  }

  .table-wrap {
    margin-inline: -5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
