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

:root {
  --bg-color: #fcfcfc;
  --text-color: #222222;
  --accent-color: #0284c7;
  --border-color: #e5e5e5;
  --card-bg: #ffffff;
  --header-bg: #f3f4f6;
  --header-link: #111827;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121214;
    --text-color: #e4e4e7;
    --accent-color: #00f2ff;
    --border-color: #27272a;
    --card-bg: #18181b;
    --header-bg: #1a1a1a;
    --header-link: #ffffff;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  background-color: var(--header-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: var(--header-link);
  font-weight: bold;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.post-item h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.875rem;
  opacity: 0.7;
}

.post-content {
  margin-top: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 6px;
}

/* meow */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: inherit;
}

.footer-links a:hover {
  color: var(--accent-color);
}