:root {
  --bg-color: #f8f8fb;
  --text-color: #12121a;
  --accent-color: #1f1f3b;
  --dim-color: #7a7a8a;
  --code-bg: #f0f0f7;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'VT323', monospace;
  font-size: 18px;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  line-height: 1.2;
  overflow-y: scroll;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  padding: 20px;
  text-align: center;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 4px rgba(0,0,0,0.12);
  text-decoration: none;
}

header {
  margin-bottom: 1rem;
  width: 100%;
}

.banner h1 {
  margin: 0;
  font-weight: normal;
}

pre.ascii-art {
  font-family: monospace;
  user-select: none;
  white-space: pre;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
  line-height: 1.0;
  color: var(--text-color);
  margin: 0 auto 20px auto;
  text-align: center;
  display: inline-block;
}

pre::-webkit-scrollbar {
  display: none;
}

#menu {
  list-style-type: none;
  padding: 0;
  margin: 10px 0 10px 0;
  font-size: 1.2rem;
}

#menu li {
  display: inline-block;
}

#menu li a {
  margin: 0 5px;
}

/* About */
.about-section {
  max-width: 650px;
  margin: 20px auto 0 auto;
  text-align: left;
  line-height: 1.6;
  color: #333;
  border-top: 1px dashed var(--dim-color);
  padding-top: 20px;
}

.about-section p {
  margin-bottom: 15px;
}

/* Cat (no box) */
.cat-ascii {
  font-family: monospace;
  font-weight: bold;
  color: var(--text-color);
  margin: 40px auto 20px auto;
  display: block;
  width: fit-content;
  white-space: pre;
  opacity: 0.8;
  text-align: left;
}

/* Socials */
.socials-container {
  display: none;
  width: 100%;
  margin-top: 20px;
  border-top: 1px dashed var(--dim-color);
  padding-top: 40px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 20px;
  width: 180px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  background: transparent;
}

.social-card:hover {
  transform: translateY(-4px);
  text-shadow: 0 0 6px rgba(0,0,0,0.15);
}

.social-logo {
  font-family: monospace;
  white-space: pre;
  line-height: 1.0;
  font-size: 12px;
  margin-bottom: 15px;
  color: var(--accent-color);
  transition: all 0.2s;
}

.social-card:hover .social-logo {
  color: #000;
}

.social-name {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.social-handle {
  font-size: 0.9rem;
  color: var(--dim-color);
  font-family: monospace;
}

.social-card:hover .social-handle {
  color: var(--text-color);
}

/* Posts list */
.volume-list {
  width: 100%;
  text-align: left;
  margin-top: 10px;
  border-top: 1px dashed var(--dim-color);
  padding-top: 20px;
  display: none;
}

.volume-entry {
  margin-bottom: 25px;
  display: block;
}

.volume-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  padding: 0;
}

.volume-item .vol-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.volume-item:hover .vol-title {
  color: var(--accent-color);
}

.vol-date {
  color: var(--dim-color);
  font-size: 0.9rem;
}

.vol-desc {
  display: block;
  color: var(--dim-color);
  font-size: 1rem;
  margin-top: 2px;
}

/* Post view */
#post-view {
  width: 100%;
  text-align: left;
  border-top: 1px dashed var(--dim-color);
  padding-top: 20px;
  margin-top: 10px;
}

.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--dim-color);
}

.back-btn:hover {
  color: var(--accent-color);
  text-shadow: 0 0 3px rgba(0,0,0,0.15);
  text-decoration: none;
}

.post-header {
  margin-bottom: 30px;
  border-bottom: 1px dashed #d0d0dd;
  padding-bottom: 10px;
}

.post-title {
  font-size: 2rem;
  color: var(--accent-color);
  margin: 0 0 5px 0;
}

.post-meta {
  color: var(--dim-color);
  font-size: 0.9rem;
  font-family: monospace;
}

/* Markdown body */
.markdown-body {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #222;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--accent-color);
}

.markdown-body h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0ee;
  display: inline-block;
}

.markdown-body h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-body p {
  margin-bottom: 1.5rem;
}

.markdown-body code {
  background-color: #ececf5;
  color: #b00020;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.markdown-body pre {
  background-color: var(--code-bg);
  padding: 15px;
  overflow-x: auto;
  border: 1px solid #d4d4e3;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  border: none;
}

.markdown-body img {
  max-width: 100%;
  border: 1px solid #d4d4e3;
  margin: 1rem 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
  margin: 1.5rem 0;
  color: var(--dim-color);
}

.markdown-body ul {
  padding-left: 20px;
}

.markdown-body li {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 600px) {
  pre.ascii-art {
    font-size: 10px;
    line-height: 10px;
  }
  .volume-item {
    flex-direction: column;
  }
}

footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--dim-color);
}

.powered-text {
  margin-top: 120px;
  margin-bottom: 10px;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  text-align: center;
  color: var(--dim-color);
  letter-spacing: 2px;
  text-transform: lowercase;
}

.ascii-art,
.social-logo {
  font-family: "VT323", monospace;
  white-space: pre;
  line-height: 1;
  letter-spacing: 0;
  font-size: 0.9rem;
}

.ascii-art {
  overflow-x: auto;
}

.social-logo {
  display: block;
  text-align: center;
}

body {
  font-family: 'VT323', monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ascii-art,
.social-logo {
  font-family: 'VT323', monospace;
  font-size: 14px;
  line-height: 14px;
}

/* --- Added terminal + snore animation --- */
@keyframes sleep {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-3px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0.6; }
}

.zzz {
  display: inline-block;
  animation: sleep 2.5s infinite ease-in-out;
  transform-origin: center bottom;
  color: var(--dim-color);
}

.terminal-window {
  width: 100%;
  max-width: 650px;
  margin: 20px auto 0 auto;
  text-align: left;
  background: #f4f4f9;
  border: 2px solid var(--text-color);
  box-shadow: 6px 6px 0px var(--text-color);
  padding: 20px;
  position: relative;
}

.terminal-bar {
  border-bottom: 1px solid var(--dim-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--dim-color);
  display: flex;
  justify-content: space-between;
}

.prompt-line {
  display: block;
  margin-bottom: 10px;
  color: var(--dim-color);
}

.prompt-user {
  color: var(--accent-color);
  font-weight: bold;
}

.typing-content {
  white-space: pre-wrap;
  min-height: 80px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: var(--text-color);
  animation: blink 1s step-end infinite;
  vertical-align: bottom;
  margin-left: 2px;
}

.view-section { display: none; }
#home-view { display: block; }
