:root {
  --ink: #141414;
  --gray: #4d4d4d;
  --muted: gray;
  --accent: #3085ee;
  --paper: #f7f3ee;
  --paper-deep: #efe8df;
  --card: white;
  --line: #b3aaa2;
  --code: #eae3dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7ec 0%, var(--paper) 45%, var(--paper-deep) 100%);
  font-family: 'Charis SIL', Georgia, 'Times New Roman', Times, serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: 'liga' 1, 'clig' 1;
  line-height: 1.6;
  font-size: 1.2rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.img-article {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 7px;
  border: 1px solid black;
}

.img-caption {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
}

code,
pre {
  font-family: 'Source Code Pro', 'Courier New', monospace;
}

code {
  background: var(--code);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 1.05rem;
}

pre {
  background: #1b1b1b;
  color: #f3f0ea;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
  font-size: 0.95rem;
}

pre code {
  background: none;
  padding: 0;
}

code[class*="language-"],
pre[class*="language-"] {
  font-family: 'Source Code Pro', 'Courier New', monospace !important;
  font-size: 0.95rem !important;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

.brand {
  margin-right: 25px;
}

.brand img {
  width: 279px;
  height: 48px;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.site-nav a.active {
  color: var(--accent);
}

.nav-search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input[type="text"] {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  width: 150px;
}

.nav-search button {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

.content {
  max-width: 860px;
  margin: 48px auto 72px;
  padding: 0 6vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Sans', Arial, Helvetica, sans-serif;
}

.content h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.content h2 {
  margin-top: 36px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--card);
}

.content th,
.content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.breadcrumb {
  margin: 16px 0 24px;
  font-size: 1rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}


.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  background: var(--code);
  color: var(--gray);
  font-size: 1rem;
  border: 1px solid var(--line);
}

.preview-note {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
}

.articles {
  display: grid;
  gap: 24px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(24, 14, 6, 0.08);
}

.article-media img {
  border-radius: 12px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.article-body h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.article-body time {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-body time .folder {
  color: var(--gray);
  font-weight: bold;
}

.article-body p {
  font-size: .9rem;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.search-form input[type="text"] {
  flex: 1 1 280px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

.search-form button {
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.search-meta {
  color: var(--muted);
  margin-bottom: 12px;
}

.article-meta {
  font-size: 1rem;
  color: var(--muted);
  margin: 8px 0 16px;
}

.article-meta .folder {
  color: var(--gray);
  font-weight: bold;
}

.youtube-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  padding: 24px 6vw 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fffaf3;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-media img {
    height: 200px;
  }
}
