html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #050505;
  color: #d1d1d1;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
}

/* ── Landing ── */
#landing {
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  color: #444;
}

.landing-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-links {
  display: flex;
  gap: 16px;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo img {
  max-width: 512px;
  max-height: 512px;
}
.logo-text img {
  max-width: 256px;
  max-height: 128px;
}

.shake {
  animation: shake 9s infinite;
}
.shake-reverse {
  animation: shake 9s reverse infinite;
}

@keyframes shake {
  0% {
    transform: translate(2px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(2px, 1px) rotate(0deg);
  }
}

h1 {
  margin: 40px 0 0;
  color: #ebebeb;
  font-weight: 600;
  letter-spacing: -0.5px;
}

h2 {
  margin: 40px 0 0;
  padding: 0 0 6px;
  color: #e1e1e1;
  border-bottom: 1px solid #1d1d1d;
  font-weight: 500;
}

h3 {
  margin: 25px 0 0;
  color: #c4c4c4;
  font-weight: 500;
}

p {
  line-height: 1.75;
  color: #c8c8c8;
}

a {
  color: #a5a5a5;
  text-decoration: none;
}

a:hover {
  color: #dbe5ff;
}

.date {
  color: #707070;
  font-size: 13px;
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.post-card-date {
  color: #555;
  font-size: 13px;
  white-space: nowrap;
  font-weight: bold;
  position: relative;
  top: 9px;
}

hr {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 30px 0;
}

video {
  max-width: 100%;
  border: 1px solid #222;
}

.file-tree {
  list-style: none;
  padding: 0;
}

.file-tree-folder {
  margin: 1px 0px 0px 0px;
}

.file-tree-folder-name {
  font-weight: 600;
  color: #d9d9d9;
  background-color: #060606;
  border: 1px solid #222;
  border-radius: 4px;
  width: fit-content;
  padding: 0px 4px 2px 4px;
}

.file-tree-children {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 1px solid #111;
}

.file-tree-post {
  list-style: none;
  padding: 8px 0 10px;
}

.file-tree-post strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
}

.file-tree-post + .file-tree-post {
  border-top: 1px solid #101010;
}

.post-content {
  line-height: 1.75;
  font-size: 19px;
}

.post-content img,
.post-content video {
  display: block;
  max-width: 95%;
  box-shadow: 0 0 0 1px #414141;
  border-radius: 5px;
  margin: auto;
}

.post-content code {
  position: relative;
  top: -2px;
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 2px 6px;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 13px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin: 2px;
}

.post-content pre {
  background-color: #111;
  color: #e0e0e0;
  padding: 16px 20px;
  overflow-x: auto;
  border: 1px solid #222;
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 13px;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.post-content blockquote {
  border-left: 3px solid #333;
  margin: 15px 0;
  padding: 8px 16px;
  color: #888;
  font-style: italic;
}

.post-content .edit-note {
  border-left: 3px solid #2a3a2a;
  margin: 10px 0;
  padding: 4px 8px;
  color: #7a9a7a;
  font-style: italic;
  background-color: #060a06;
}

.edit-label {
  font-style: normal;
  font-weight: bold;
  color: #5a8a5a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
}

.post-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.post-content table {
  margin-top: 16px;
  width: 100%;
  border-collapse: collapse;
}

.post-content th,
.post-content td {
  padding: 3px 10px;
  border: 1px solid #111;
  text-align: left;
}

.post-content th {
  background-color: #111;
  color: #ebebeb;
  font-weight: 600;
}

.post-content tbody tr:nth-child(even) {
  background-color: #020202;
}

@media (max-width: 800px) {
  .logo img {
    max-width: 256px;
    max-height: 256px;
  }
  .logo-text img {
    max-width: 128px;
    max-height: 64px;
  }
}

/* ── Landing blog link ── */
.landing-blog-link {
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition:
    color 0.2s,
    border-color 0.2s;
  padding: 7px 16px;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
}
.landing-blog-link:hover {
  color: #b0b0b0;
  border-color: #404040;
}

/* ── Site Navigation Bar ── */
#site-nav {
  position: relative;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  height: 52px;
  background: #060606;
  border-bottom: 1px solid #171717;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
  height: 26px;
  width: auto;
}

/* ── Blog Hero ── */
#blog-hero {
  text-align: center;
  padding: 72px 20px 56px;
  border-bottom: 1px solid #141414;
}

#blog-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #f0f0f0;
  margin: 0 0 14px;
  letter-spacing: -1px;
}

#blog-hero p {
  color: #777;
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* ── Blog Post Grid ── */
#blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 48px auto 96px;
  padding: 0 32px;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #0e0e0e;
  background-size: cover;
  background-position: center;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s,
    background-color 0.15s;
  min-height: 200px;
}

.blog-post-card:hover {
  border-color: #303030;
}

.blog-post-card--cover .blog-card-body {
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex: 1;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.blog-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-card-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #eee;
  background: #020202;
  padding: 3px 8px;
  border-radius: 3px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #e8e8e8;
  margin: 0 0 10px;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: #777;
  flex: 1;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
  font-size: 14px;
  color: #666;
  font-weight: bold;
}

.blog-card-date {
  font-size: 12px;
  color: #505050;
  font-weight: 500;
}

@media (max-width: 900px) {
  #blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  #blog-grid {
    grid-template-columns: 1fr;
  }
  #blog-hero h1 {
    font-size: 36px;
  }
}

/* ── About ── */
#about-hero {
  text-align: center;
  padding: 72px 20px 56px;
  border-bottom: 1px solid #141414;
}

#about-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #f0f0f0;
  margin: 0;
  letter-spacing: -1px;
}

#about-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 32px 96px;
  font-size: 19px;
  line-height: 1.75;
}

/* ── Post Hero ── */
#post-hero {
  background: #080808;
  border-bottom: 1px solid #161616;
  padding: 64px 32px 52px;
}

#post-hero.post--has-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#post-hero.post--has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

#post-hero.post--has-cover #post-hero-inner {
  position: relative;
  z-index: 1;
}

#post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.post-hero-category {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}

#post-hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #f0f0f0;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

#post-hero-excerpt {
  font-size: 22px;
  color: #888;
  margin: 0 0 28px;
  line-height: 1.65;
}

#post-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #555;
  font-weight: bold;
  margin-bottom: 24px;
}

.post-meta-sep {
  color: #2a2a2a;
  font-size: 16px;
}

/* ── Post Body ── */
#post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 32px 96px;
}

#post-back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
}

#post-back a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

#post-back a:hover {
  color: #d0d0d0;
}

@media (max-width: 800px) {
  #post-hero {
    padding: 40px 20px 36px;
  }
  #post-hero-title {
    font-size: 28px;
  }
  #post-hero-excerpt {
    font-size: 18px;
  }
  #post-body {
    padding: 32px 20px 64px;
  }
  #site-nav {
    padding: 0 20px;
  }
  .post-content {
    font-size: 18px;
  }
}
