.yazilar-page {
  --blog-accent-safe: var(--blog-accent, var(--accent));
  --blog-tag-bg-safe: var(--blog-tag-bg, var(--accent-dim));
  --blog-tag-text-safe: var(--blog-tag-text, var(--accent));
  --blog-fig-bg-safe: var(--blog-fig-bg, var(--surface));
  --blog-fig-border-safe: var(--blog-fig-border, var(--border));
  --blog-table-head-bg-safe: var(--blog-table-head-bg, var(--ink));
  --blog-table-head-text-safe: var(--blog-table-head-text, var(--bg));
  --blog-table-alt-safe: var(--blog-table-alt, var(--bg-elevated));
  --blog-muted-safe: var(--blog-muted, var(--ink-muted));
  --blog-border-safe: var(--blog-border, var(--border));
  --blog-callout-bg-safe: var(--blog-callout-bg, var(--accent-dim));
}

.yazilar-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.yazilar-shell .breadcrumbs {
  max-width: 680px;
  margin: 0 auto 24px;
}

.yazilar-index-header,
.yazilar-post-list,
.yazilar-pagination,
.yazi-header,
.yazi-related,
.yazi-comments {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.yazilar-index-header {
  margin-bottom: 24px;
}

.yazilar-index-header-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.yazilar-index-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.yazilar-index-header p {
  margin: 8px 0 0;
  color: var(--blog-muted-safe);
}

.yazilar-index-eyebrow,
.yazilar-index-rule {
  display: none;
}

.yazilar-subscribe-link {
  flex-shrink: 0;
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: none;
}

.yazilar-subscribe-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yazilar-post-list {
  display: flex;
  flex-direction: column;
}

.yazilar-post-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--blog-border-safe);
  background: transparent;
}

.yazilar-post-counter,
.yazilar-post-date-side {
  display: none;
}

.yazilar-post-date,
.yazilar-post-date-side,
.yazilar-post-footer,
.yazi-meta,
.yazi-archive-meta-row time {
  color: var(--blog-muted-safe);
  font-family: var(--font-ui);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.yazilar-post-main h2 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.yazilar-post-main h2 a {
  color: var(--ink);
  text-decoration: none;
}

.yazilar-post-main h2 a:hover {
  color: var(--blog-accent-safe);
}

.yazilar-post-subtitle {
  margin: 8px 0 0;
  color: var(--blog-muted-safe);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

.blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.blog-tag-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--blog-tag-bg-safe);
  color: var(--blog-tag-text-safe);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.4;
}

.yazilar-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
}

.yazilar-post-footer a {
  color: var(--blog-accent-safe);
  text-decoration: none;
}

.yazilar-post-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yazilar-empty {
  padding: 32px 0;
  color: var(--blog-muted-safe);
}

.yazilar-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: var(--blog-muted-safe);
  font-family: var(--font-ui);
  font-size: 12px;
}

.yazilar-pagination a {
  color: var(--blog-accent-safe);
  text-decoration: none;
}

.yazilar-pagination a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yazilar-pagination .is-disabled {
  opacity: 0.45;
}

.yazi-article {
  color: var(--ink);
}

.yazi-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--blog-border-safe);
}

.yazi-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blog-muted-safe);
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: none;
}

.yazi-back-link:hover {
  color: var(--blog-accent-safe);
}

.yazi-palimpsest-rule,
.yazi-archive-meta-row {
  display: none;
}

.yazi-header h1 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.yazi-subtitle {
  margin: 12px 0 0;
  color: var(--blog-muted-safe);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
}

.yazi-meta {
  margin: 14px 0 0;
  font-size: 12px;
}

.yazi-body {
  max-width: 680px;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.9;
  counter-reset: h2-counter;
  overflow-wrap: break-word;
}

.yazi-body > *:first-child {
  margin-top: 0;
}

.yazi-body p {
  margin: 0 0 1.45em;
}

.yazi-body p:empty {
  display: none;
}

.yazi-body > p:first-of-type {
  border-left: 3px solid var(--blog-accent-safe);
  padding-left: 16px;
}

.yazi-body h2 {
  display: inline-block;
  margin: 40px 0 16px;
  padding-bottom: 5px;
  border-bottom: 2.5px solid var(--blog-accent-safe);
  border-radius: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
}

.yazi-body h3 {
  margin: 32px 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.yazi-body a {
  color: var(--blog-accent-safe);
  text-underline-offset: 3px;
}

.yazi-body ul,
.yazi-body ol {
  margin: 0 0 1.4em 1.35em;
  padding: 0;
}

.yazi-body li {
  margin-bottom: 0.45em;
}

.yazi-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.yazi-body figure {
  margin: 28px -32px;
  padding: 20px 24px 0;
  padding-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--blog-fig-border-safe);
  border-radius: 6px;
  background: var(--blog-fig-bg-safe);
}

.yazi-body .viz-chart-wrapper {
  padding: 0 4px;
  margin-bottom: 0;
}

.yazi-body .viz-table-wrapper {
  overflow-x: auto;
  margin: 0 -24px;
}

.yazi-body .viz-table-wrapper table {
  width: calc(100% + 48px);
  margin: 0;
}

.yazi-body figure canvas {
  display: block;
}

.yazi-body .viz-static-wrapper {
  position: relative;
}

.yazi-body .viz-static-wrapper img {
  margin: 0 auto;
}

.yazi-body .viz-static-open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid var(--blog-fig-border-safe);
  border-radius: 4px;
  background: var(--blog-fig-bg-safe);
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: pointer;
}

.yazi-body .viz-static-open:hover {
  border-color: var(--blog-accent-safe);
}

.viz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.viz-lightbox[hidden] {
  display: none;
}

.viz-lightbox-inner {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--blog-fig-bg-safe);
  border: 1px solid var(--blog-fig-border-safe);
}

.viz-lightbox-inner img {
  display: block;
  max-width: none;
  width: auto;
  height: auto;
}

.viz-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3001;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body.viz-lightbox-open {
  overflow: hidden;
}

.yazi-body figure a,
.yazi-body .image-link {
  display: block;
  text-decoration: none;
}

.yazi-body figcaption {
  margin: 12px -24px 0;
  padding: 10px 24px 16px;
  border-top: 1px solid var(--blog-fig-border-safe);
  color: var(--blog-muted-safe);
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
}

.yazi-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 13px;
}

.yazi-body table caption {
  caption-side: top;
  padding: 0 14px 10px;
  color: var(--blog-muted-safe);
  font-family: var(--font-ui);
  font-size: 11px;
  font-style: italic;
  text-align: left;
}

.yazi-body thead tr {
  background: var(--blog-table-head-bg-safe);
}

.yazi-body th {
  padding: 9px 14px;
  color: var(--blog-table-head-text-safe);
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}

.yazi-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--blog-border-safe);
}

.yazi-body tr:nth-child(even) {
  background: var(--blog-table-alt-safe);
}

.yazi-body blockquote {
  margin: 28px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--blog-accent-safe);
  border-radius: 0;
  background: var(--blog-callout-bg-safe);
  font-style: normal;
}

.yazi-body blockquote p:last-child {
  margin-bottom: 0;
}

.yazi-body iframe {
  max-width: 100%;
}

.yazi-related {
  margin-top: 28px;
  color: var(--blog-muted-safe);
  font-size: 14px;
}

.yazi-related a {
  color: var(--blog-accent-safe);
}

.yazi-comments {
  margin-top: 48px;
}

.yazi-comments .section-rule {
  margin-bottom: 20px;
}

html.theme-archival .yazilar-index-header,
html.theme-archival-dark .yazilar-index-header {
  padding-top: 8px;
}

html.theme-archival .yazilar-index-rule,
html.theme-archival-dark .yazilar-index-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 14px;
  background: var(--blog-accent-safe);
}

html.theme-archival .yazilar-index-eyebrow,
html.theme-archival-dark .yazilar-index-eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

html.theme-archival .yazilar-index-header-main,
html.theme-archival-dark .yazilar-index-header-main {
  align-items: flex-start;
}

html.theme-archival .yazilar-index-header h1,
html.theme-archival-dark .yazilar-index-header h1 {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
}

html.theme-archival .yazilar-index-header p:not(.yazilar-index-eyebrow),
html.theme-archival-dark .yazilar-index-header p:not(.yazilar-index-eyebrow) {
  display: none;
}

html.theme-archival .yazilar-post-card,
html.theme-archival-dark .yazilar-post-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--blog-border-safe);
  border-bottom: 0;
}

html.theme-archival .yazilar-post-counter,
html.theme-archival-dark .yazilar-post-counter {
  display: block;
  padding-top: 3px;
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 12px;
}

html.theme-archival .yazilar-post-date,
html.theme-archival-dark .yazilar-post-date {
  display: none;
}

html.theme-archival .yazilar-post-date-side,
html.theme-archival-dark .yazilar-post-date-side {
  display: block;
  padding-top: 4px;
  text-align: right;
}

html.theme-archival .yazilar-post-main h2,
html.theme-archival-dark .yazilar-post-main h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 300;
}

html.theme-archival .yazilar-post-subtitle,
html.theme-archival-dark .yazilar-post-subtitle {
  font-style: normal;
}

html.theme-archival .blog-tag-chip,
html.theme-archival-dark .blog-tag-chip {
  padding: 3px 8px;
  border: 1px solid var(--blog-border-safe);
  border-radius: 0;
  background: transparent;
  color: var(--blog-tag-text-safe);
  font-size: 10px;
}

html.theme-archival .yazilar-post-footer,
html.theme-archival-dark .yazilar-post-footer {
  display: none;
}

html.theme-archival .yazi-palimpsest-rule,
html.theme-archival-dark .yazi-palimpsest-rule {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--blog-accent-safe);
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

html.theme-archival .yazi-signal-tags,
html.theme-archival-dark .yazi-signal-tags,
html.theme-archival .yazi-meta,
html.theme-archival-dark .yazi-meta {
  display: none;
}

html.theme-archival .yazi-header h1,
html.theme-archival-dark .yazi-header h1 {
  margin-top: 22px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0;
}

html.theme-archival .yazi-subtitle,
html.theme-archival-dark .yazi-subtitle {
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

html.theme-archival .yazi-archive-meta-row,
html.theme-archival-dark .yazi-archive-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

html.theme-archival .yazi-archive-meta-row .blog-tag-list,
html.theme-archival-dark .yazi-archive-meta-row .blog-tag-list {
  margin-top: 0;
}

html.theme-archival .yazi-body,
html.theme-archival-dark .yazi-body {
  counter-reset: h2-counter;
}

html.theme-archival .yazi-body > p:first-of-type,
html.theme-archival-dark .yazi-body > p:first-of-type {
  border-left: 0;
  padding-left: 0;
}

html.theme-archival .yazi-body h2,
html.theme-archival-dark .yazi-body h2 {
  display: block;
  margin: 44px 0 16px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 26px;
  font-weight: 300;
}

html.theme-archival .yazi-body h2::before,
html.theme-archival-dark .yazi-body h2::before {
  counter-increment: h2-counter;
  content: "§" counter(h2-counter) " ";
  color: var(--blog-accent-safe);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
}

html.theme-archival .yazi-body figure,
html.theme-archival-dark .yazi-body figure {
  border-radius: 0;
}

html.theme-archival .yazi-body th,
html.theme-archival-dark .yazi-body th {
  color: var(--blog-table-head-text-safe);
  font-weight: 400;
}

html.theme-archival .yazi-body blockquote,
html.theme-archival-dark .yazi-body blockquote {
  padding: 18px 20px;
}

@media (max-width: 760px) {
  .yazilar-shell {
    padding: 24px 18px 56px;
  }

  .yazilar-index-header-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .yazi-header h1,
  html.theme-archival .yazi-header h1,
  html.theme-archival-dark .yazi-header h1 {
    font-size: 32px;
  }

  .yazi-body figure {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .yazi-body figure {
    margin-left: 0;
    margin-right: 0;
    border-radius: 4px;
  }
}

@media (max-width: 560px) {
  html.theme-archival .yazilar-post-card,
  html.theme-archival-dark .yazilar-post-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  html.theme-archival .yazilar-post-date-side,
  html.theme-archival-dark .yazilar-post-date-side {
    grid-column: 2;
    padding-top: 0;
    text-align: left;
  }

  html.theme-archival .yazi-archive-meta-row,
  html.theme-archival-dark .yazi-archive-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
