@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;1,400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Header / Prompt */
header {
  margin-bottom: 3rem;
}

.prompt {
  color: #E8732A;
  font-weight: 700;
}

.prompt::after {
  content: ' ';
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #E8732A;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Home: post listing */
.post-list {
  list-style: none;
  margin-top: 1rem;
}

.post-list li {
  padding: 0.3rem 0;
}

.post-list .permissions {
  color: #6a6a6a;
}

.post-list .date {
  color: #6a6a6a;
}

.post-list a {
  color: #E8732A;
  text-decoration: none;
}

.post-list a:hover {
  text-decoration: underline;
}

.listing-header {
  color: #6a6a6a;
  margin-bottom: 0.5rem;
}

/* Post */
.post-meta {
  color: #6a6a6a;
  margin-bottom: 2rem;
}

.post-title {
  color: #e0e0e0;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.post-body h1,
.post-body h2,
.post-body h3 {
  color: #e0e0e0;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body p {
  margin-bottom: 1.4rem;
}

.post-body em {
  color: #a0a0a0;
}

.post-body hr {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 2rem 0;
}

.post-body a {
  color: #E8732A;
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  color: #3a3a3a;
  font-size: 0.85rem;
}

footer a {
  color: #3a3a3a;
  text-decoration: none;
}

footer a:hover {
  color: #E8732A;
}

.links {
  margin-bottom: 0.5rem;
}

/* Terminal input */
.terminal-input {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-input input {
  background: transparent;
  border: none;
  color: #d4d4d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  outline: none;
  flex: 1;
  caret-color: #E8732A;
}

.terminal-input input::placeholder {
  color: #2a2a2a;
}

.cmd-output {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 0.5rem;
  width: 100%;
  color: #6a6a6a;
  font-size: 0.9rem;
}

/* Post images */
.post-body img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 2rem;
  filter: grayscale(0.6) contrast(1.1) brightness(0.9);
  mix-blend-mode: normal;
  transition: filter 0.5s ease;
  position: relative;
}

.post-body .img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.post-body .img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, #0a0a0a 100%);
  pointer-events: none;
}

.post-body .img-wrap img {
  display: block;
  width: 100%;
  margin-bottom: 0;
  filter: sepia(0.3) saturate(0.7) contrast(1.15) brightness(0.85);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.post-body .img-wrap:hover img {
  filter: none;
  transform: scale(1.02);
}

/* About photo */
.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 2px solid #E8732A;
}

.about-photo img {
  border-radius: 50%;
  filter: grayscale(0.4) contrast(1.1);
  transition: filter 0.4s ease;
}

.about-photo:hover img {
  filter: none;
}

.about-photo::after {
  border-radius: 50%;
  background: none;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .post-title {
    font-size: 1.2rem;
  }

  .listing-row {
    display: block;
  }
}
