/* Daily Cat Memes: styles for /cats/ only. */
:root {
  --bg: #fff8f0;
  --card: #ffffff;
  --text: #2a211b;
  --muted: #6b5d52;
  --accent: #b45309;
  --accent-ink: #ffffff;
  --line: #eadfd3;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .07);
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1714;
    --card: #26201b;
    --text: #f3ece6;
    --muted: #b9aa9c;
    --accent: #f59e0b;
    --accent-ink: #1b1714;
    --line: #3a3029;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -48px; padding: 8px 12px; background: var(--card); color: var(--text); border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.masthead { padding: 28px 0 8px; text-align: center; }
.brand { margin: 0; font-size: 1.9rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p.brand { font-size: 1.25rem; }
.brand a { color: var(--text); text-decoration: none; }
.brand a:hover { color: var(--accent); }
.tagline { margin: 6px 0 0; color: var(--muted); }

/* Feed */
main { padding-top: 16px; padding-bottom: 32px; }
.feed { display: grid; gap: 24px; }
.meme {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.meme-img { display: block; background: var(--line); }
.meme-body { padding: 14px 18px 16px; }
.meme-title { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.3; }
.meme-title a { color: var(--text); text-decoration: none; }
.meme-title a:hover { color: var(--accent); text-decoration: underline; }
.meme-caption { margin: 0 0 8px; }
.meme-date { margin: 0; color: var(--muted); font-size: .9rem; }

/* Single post */
.meme-single { padding-bottom: 4px; }
.meme-single .meme-title { padding: 18px 18px 0; font-size: 1.6rem; letter-spacing: -.01em; }
.meme-single .meme-date { padding: 0 18px 14px; }
.meme-single figure { margin: 0; }
.meme-single img { width: 100%; background: var(--line); }
.meme-single figcaption { padding: 14px 18px 16px; font-size: 1.1rem; }
.meme-note { padding: 0 18px 12px; color: var(--muted); }
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 20px 0 24px; font-weight: 600;
}
.pager a { display: inline-block; padding: 10px 2px; text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager-all { text-align: center; }
.pager-prev { justify-self: end; }
.pager-next { justify-self: start; }

/* Footer */
.site-foot { padding: 8px 0 40px; text-align: center; color: var(--muted); font-size: .95rem; }
.site-foot p { margin: 0; }
.site-foot .views { margin-top: 6px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.feed-empty { text-align: center; color: var(--muted); }

@media (min-width: 720px) {
  .masthead { padding-top: 48px; }
  .brand { font-size: 2.4rem; }
  p.brand { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .meme-img img { transition: opacity .2s; }
  .meme-img:hover img { opacity: .93; }
}

/* Email signup */
.cat-signup { margin: 0 0 24px; padding: 4px 2px 2px; text-align: center; }
.cat-signup-line { margin: 0 0 10px; color: var(--muted); }
.meme-single + .cat-signup { margin-top: 20px; margin-bottom: 8px; }

/* Follow on X */
.cat-follow-x { margin: 10px 0 0; font-size: .9rem; }
.cat-follow-x a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-follow-x a:hover { color: var(--accent); text-decoration: underline; }
.cat-follow-x svg { width: 14px; height: 14px; flex-shrink: 0; }
