:root {
  --bg: #0d0d0d;
  --fg: #d8d8d8;
  --muted: #666;
  --accent: #d01121;
  --line: #2a2a2a;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  background: radial-gradient(circle at 50% -10%, #1a0a0a 0%, var(--bg) 55%);
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.65;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

header, main, footer {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

header {
  margin-bottom: 2.5rem;
}

nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  text-transform: lowercase;
}

nav .site-title {
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  text-shadow: 0 0 24px rgba(208, 17, 33, 0.22);
}

nav .site-title:hover {
  color: var(--fg);
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  flex: 1;
}

h1, h2 {
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
  text-shadow: 0 0 45px rgba(208, 17, 33, 0.18);
}

h2 {
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2rem 0 0.8rem 0;
}

p {
  margin: 0 0 0.9rem 0;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  border-bottom: none;
  transition: color 0.15s ease;
}

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

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

hr {
  border: none;
  height: 1px;
  background: var(--accent);
  width: 48px;
  margin: 0 0 2rem 0;
  box-shadow: 0 0 12px rgba(208, 17, 33, 0.35);
}

.posts {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.posts li {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.posts a {
  font-size: 1.05rem;
}

.posts .date {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.jaw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 1.8rem;
  margin-top: 2rem;
}

.tooth {
  border-top: 2px solid var(--accent);
  padding-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.55;
  box-shadow: 0 -6px 18px -12px rgba(208, 17, 33, 0.5);
}

.tooth:nth-child(even) {
  margin-top: 2.4rem;
}

.tooth h2 {
  margin: 0 0 0.6rem 0;
}

.tooth p {
  margin: 0;
}

.tooth-wide {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

footer p {
  margin-bottom: 0.4rem;
}

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

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

footer .sep {
  margin: 0 0.4rem;
}

footer .status {
  font-style: italic;
}

.footer-badge {
  margin: 1rem 0 0.4rem;
}

.footer-badge img,
.pixel-art {
  image-rendering: pixelated;
  display: block;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  h1 {
    font-size: 2rem;
  }
  nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .jaw {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .tooth:nth-child(even),
  .tooth-wide {
    margin-top: 0;
  }
}
