/* ESPoetry — carbon copy of espoetry.com + mobile / speed extras */

:root {
  --bg: #000;
  --text: #eee;
  --muted: #ccc;
  --link: #ffbf80;
  --visited: #ff8000;
  --hover: #00f;
  --sidebar-link: #d3d3d3;
  --rule: #444;
  --sidebar-rule: #161616;
  --quote-bg: #1a1818;
  --quote-accent: #ff4500;
  --khaki: khaki;
  --pink: #ff69b4;
  --slate: #2f4f4f;
  --selection: #fc0;
  --link-list-rule: #242424;
  --font-bn: "Li Subha Letterpress Unicode", "Noto Serif Bengali", serif;
  --font-mono: "Space Mono", "Li Subha Letterpress Unicode", "Noto Serif Bengali", serif;
  --container: 800px;
  --sidebar: 312px;
  --content: 456px;
  --btn-face: #ccc;
  --btn-hi: #fff;
  --btn-lo: #868a8e;
  --btn-out: inset 1px 1px 0 0 #fff, inset -1px -1px 0 0 #868a8e;
  --btn-in: inset -1px -1px 0 0 #fff, inset 1px 1px 0 0 #868a8e;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Regular.woff2") format("woff2"),
       url("../fonts/SpaceMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-007F, U+00A0-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Bold.woff2") format("woff2"),
       url("../fonts/SpaceMono-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-007F, U+00A0-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-Italic.woff2") format("woff2"),
       url("../fonts/SpaceMono-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-007F, U+00A0-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/SpaceMono-BoldItalic.woff2") format("woff2"),
       url("../fonts/SpaceMono-BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-007F, U+00A0-024F, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

@font-face {
  font-family: "Li Subha Letterpress Unicode";
  src: url("../fonts/LiSubhaLetterpressUnicode.woff2") format("woff2"),
       url("../fonts/LiSubhaLetterpressUnicode.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Li Subha Letterpress Unicode";
  src: url("../fonts/LiSubhaLetterpressUnicode-Italic.woff2") format("woff2"),
       url("../fonts/LiSubhaLetterpressUnicode-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .track { animation: none !important; }
}

::selection {
  background-color: var(--selection);
  color: #000;
}

::-moz-selection {
  background-color: var(--selection);
  color: #000;
}

/* Win95-style scrollbar (from the live site) */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background-color: #c0c0c0;
  background-image:
    linear-gradient(45deg, #808080 25%, transparent 25%),
    linear-gradient(-45deg, #808080 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #808080 75%),
    linear-gradient(-45deg, transparent 75%, #808080 75%);
  background-size: 2px 2px;
  image-rendering: pixelated;
  filter: grayscale(100%);
}

::-webkit-scrollbar-thumb {
  border: 1px solid #ccc;
  background-color: #ccc;
  box-shadow: inset 1px 1px 0 0 #fff, inset -1px -1px 0 0 #868a8e;
}

body {
  margin: 0 auto;
  font-family: var(--font-bn);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: image-set(
    url("../images/bg.webp") type("image/webp"),
    url("../images/bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

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

a:visited {
  color: var(--visited);
}

a:hover,
a:focus-visible {
  color: var(--hover);
}

.glow:hover {
  filter: brightness(1.5);
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  content-visibility: auto;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 100;
  background: var(--selection);
  color: #000;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: var(--container);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 12px 0 24px;
}

.header {
  font-size: 24px;
  text-align: left;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 0;
  padding: 4px 0 10px;
}

.header .logo a {
  color: var(--link);
}

.header .bar {
  margin: 0 8px;
  color: #fff;
}

.header .slogan {
  font-size: 16px;
  color: #fff;
}

.nav-toggle,
.search-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--btn-lo);
  background: var(--btn-face);
  color: #000;
  font-family: var(--font-bn);
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  min-height: 31px;
  min-width: 31px;
  cursor: pointer;
  box-shadow: var(--btn-out);
  border-radius: 0;
}

.nav-toggle:active,
.search-toggle:active {
  box-shadow: var(--btn-in);
}

.header-actions {
  display: none;
}

.desktop-search {
  margin-top: 4px;
}

.main-content {
  width: 100%;
  clear: both;
  display: block;
  overflow: hidden;
}

.content {
  width: var(--content);
  float: left;
  color: var(--text);
  font-size: 15px;
  margin-left: 5px;
}

#sidebar {
  width: var(--sidebar);
  float: left;
  color: var(--muted);
}

#sidebar ul {
  padding: 1px;
  list-style: none;
  margin: 0;
}

#sidebar a {
  padding: 0 0 8px;
  color: var(--sidebar-link);
  display: block;
  font-family: var(--font-bn);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2em;
  margin-bottom: 9px;
  border-bottom: 1px dashed var(--sidebar-rule);
}

#sidebar a:hover,
#sidebar a:focus-visible,
#sidebar .current-menu-item > a,
#sidebar .current-cat > a {
  color: #fff;
  transition: color 0.25s;
}

#sidebar .widget-wrap {
  margin-bottom: 1.2rem;
  padding: 0.2rem;
}

#sidebar .logs ul,
code,
pre,
footer,
.mono {
  font-family: var(--font-mono);
  font-style: normal;
}

#sidebar .logs ul {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3em;
}

#sidebar .logs li {
  margin-bottom: 4px;
  color: var(--muted);
}

#button-collection,
#sidebar,
footer {
  color: var(--muted);
}

h1,
h2 {
  font-size: 16px;
  font-weight: 400;
}

h1.page-title,
.entry-title {
  font-size: 22px;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}

#button-collection h3,
.home-section h2,
#home-section h2,
#sidebar .widget-wrap h3,
.widget-title {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #fff;
}

.welcome p {
  color: #fff;
  font-size: 18px;
  margin: 10px 0 16px;
}

.welcome img {
  display: block;
  margin-top: 10px;
  max-width: 150px;
  border-radius: 50%;
}

.home-section,
#home-section {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--rule);
}

.home-section img,
#home-section img {
  vertical-align: middle;
}

.home-section a,
#home-section a {
  font-size: 11px;
}

.home-section p,
#home-section p {
  margin: 0.4em 0 0.8em;
}

.home-section .linklist {
  margin-top: 8px;
}

#card-collection {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: nowrap;
}

.marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 20px;
  overflow: hidden;
}

.track {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: 30s linear infinite marquee;
  color: var(--link);
  font-size: 13px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Literary quote — large type, no box, dashed rules only */
blockquote,
.wp-block-quote,
.quote,
.wp-block-pullquote,
.wp-block-quote.is-style-large {
  font-family: var(--font-bn);
  font-size: 1.22em;
  font-weight: 400;
  font-style: italic;
  color: #f2f2f2;
  background: transparent;
  border: 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 22px 8px 22px 36px;
  margin: 22px 0;
  width: auto;
  max-width: 100%;
  text-align: left;
  line-height: 1.8;
  position: relative;
  border-radius: 0;
  box-shadow: none;
}

blockquote::before,
.wp-block-quote::before {
  content: "\275D";
  position: absolute;
  top: 6px;
  left: 0;
  font-size: 1.8em;
  line-height: 1;
  color: var(--quote-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  opacity: 0.85;
}

blockquote::after,
.wp-block-quote::after {
  content: none;
}

blockquote p,
.wp-block-quote p,
.quote p,
.wp-block-pullquote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

blockquote p + p,
.wp-block-quote p + p {
  margin-top: 0.8em;
}

blockquote cite,
.wp-block-quote cite,
.wp-block-pullquote cite,
.quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.72em;
  font-style: normal;
  color: var(--link);
  font-family: var(--font-bn);
}

blockquote cite::before,
.wp-block-quote cite::before,
.wp-block-pullquote cite::before,
.quote cite::before {
  content: "— ";
}

.wp-block-pullquote blockquote {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: auto;
  color: inherit;
  box-shadow: none;
  font-size: inherit;
}

.wp-block-pullquote blockquote::before,
.wp-block-pullquote blockquote::after,
.wp-block-pullquote::before,
.wp-block-pullquote::after {
  content: none;
}

@media (max-width: 800px) {
  blockquote,
  .wp-block-quote,
  .quote,
  .wp-block-pullquote,
  .wp-block-quote.is-style-large {
    font-size: 1.12em;
    padding: 18px 4px 18px 28px;
  }
}

.linklist {
  padding: 0;
  list-style: none;
  margin: 0;
}

.linklist li {
  padding: 4px 0;
  border-bottom: 1px solid var(--link-list-rule);
  line-height: 1.4em;
}

.linklist li a {
  font-size: 14px !important;
}

.entry-meta,
.entry-footer,
.page-header .archive-description {
  font-family: var(--font-bn);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.entry-content,
.comment-content {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  font-family: var(--font-bn);
}

.entry-content p,
.comment-content p {
  margin: 0 0 1em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.comment-content h2,
.comment-content h3 {
  color: #fff;
  font-weight: 400;
  font-family: var(--font-bn);
  margin: 1.4em 0 0.5em;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--rule);
}

.entry-content h2 { font-size: 18px; }
.entry-content h3 { font-size: 16px; }
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-size: 15px; }

.entry-content ul,
.entry-content ol,
.comment-content ul,
.comment-content ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.entry-content ul,
.comment-content ul {
  list-style: square;
}

.entry-content li,
.comment-content li {
  margin-bottom: 0.35em;
}

.entry-content dl {
  margin: 0 0 1em;
}

.entry-content dt {
  color: #fff;
  margin-top: 0.6em;
}

.entry-content dd {
  margin-left: 1.2em;
  border-left: 2px dashed var(--quote-accent);
  padding-left: 10px;
}

.entry-content .has-drop-cap:not(:focus)::first-letter {
  font-family: var(--font-bn);
  font-size: 3.2em;
  color: var(--quote-accent);
  float: left;
  line-height: 0.8;
  margin: 0.08em 0.12em 0 0;
  font-weight: 400;
}

.entry-content hr,
.wp-block-separator {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 1.6em 0;
  background: none;
  height: 0;
}

.wp-block-separator.is-style-dots::before {
  color: var(--quote-accent);
  letter-spacing: 0.6em;
}

.entry-content img,
.entry-content .wp-block-image img,
.comment-content img {
  display: block;
  margin: 12px 0;
  border: 1px dashed var(--rule);
  border-radius: 0;
  box-shadow: 4px 4px 0 #000;
}

.entry-content figure {
  margin: 12px 0;
}

.entry-content figcaption,
.wp-block-image figcaption,
.wp-block-embed figcaption {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-bn);
  border-top: 1px dashed #333;
  padding-top: 6px;
  margin-top: 4px;
}

.entry-content pre,
.entry-content code,
.comment-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
}

.entry-content code,
.comment-content code {
  background: #111;
  border: 1px solid #333;
  padding: 1px 4px;
}

.entry-content pre,
.wp-block-code,
.wp-block-preformatted {
  background: #111;
  border: 1px dashed var(--rule);
  box-shadow: inset 1px 1px 0 #000;
  padding: 12px;
  overflow-x: auto;
  color: #eee;
  border-radius: 0;
}

.entry-content pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.entry-content kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--btn-face);
  color: #000;
  border: 1px solid var(--btn-lo);
  box-shadow: var(--btn-out);
  padding: 1px 5px;
}

.entry-content mark {
  background: var(--selection);
  color: #000;
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 14px;
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px dashed #444;
  padding: 6px 8px;
  text-align: left;
}

.entry-content th,
.wp-block-table th {
  background: #1a1818;
  color: #fff;
  font-weight: 400;
}

.entry-content audio,
.wp-block-audio {
  width: 100%;
  margin: 12px 0;
}

.wp-block-button__link,
.entry-content .wp-element-button {
  background: var(--btn-face) !important;
  color: #000 !important;
  border: 1px solid var(--btn-lo) !important;
  box-shadow: var(--btn-out);
  border-radius: 0 !important;
  font-family: var(--font-bn);
  font-size: 13px;
  padding: 6px 12px;
  text-decoration: none;
}

.wp-block-button__link:active,
.entry-content .wp-element-button:active {
  box-shadow: var(--btn-in);
}

.wp-block-file a:not(.wp-block-file__button) {
  font-family: var(--font-bn);
}

.wp-block-verse,
.wp-block-preformatted.poem {
  background: transparent;
  border: 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 14px 4px;
  white-space: pre-wrap;
  font-family: var(--font-bn);
  font-style: italic;
  color: #f2f2f2;
}

/* Poetry: honor line breaks */
.poem .entry-content,
.category-kobita .entry-content p {
  white-space: pre-wrap;
}

.post-thumbnail {
  margin: 0 0 16px;
  position: relative;
  min-height: 80px;
  background: #111;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.archive-list .post-card {
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}

.archive-list .post-card.no-thumb {
  grid-template-columns: 1fr;
}

.post-card .thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  background: #111;
  border: 1px dashed var(--rule);
  border-radius: 0;
  box-shadow: 3px 3px 0 #000;
}

.post-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.post-card .excerpt {
  font-size: 14px;
  color: #ddd;
  margin: 6px 0 0;
}

.pagination,
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 8px;
  font-size: 13px;
  font-family: var(--font-mono);
}

.post-navigation {
  font-family: var(--font-bn);
  font-size: 15px;
  gap: 16px;
  border-top: 1px dashed var(--rule);
  padding-top: 16px;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 48%;
}

.post-navigation .nav-next a {
  align-items: flex-end;
  text-align: right;
}

.post-navigation .nav-label {
  font-size: 13px;
  color: #fff;
}

.post-navigation .nav-title {
  font-size: 14px;
  line-height: 1.4;
  color: inherit;
}

.share-bar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}

.share-label {
  display: inline;
  font-size: 13px;
  font-family: var(--font-bn);
  color: #ccc;
  margin-right: 6px;
}

.share-list {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--btn-lo);
  background: var(--btn-face);
  color: #000 !important;
  font-family: var(--font-bn);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--btn-out);
  border-radius: 0;
}

.share-btn svg {
  width: 12px;
  height: 12px;
  display: block;
}

.share-btn:hover,
.share-btn:focus-visible {
  color: #000 !important;
  filter: brightness(1.08);
}

.share-btn:active {
  box-shadow: var(--btn-in);
}

.share-copy {
  width: auto;
  min-width: 31px;
  padding: 0 5px;
}

.share-copy-label {
  font-family: var(--font-bn);
  font-size: 11px;
  color: #000;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
}

.share-btn.is-copied {
  color: #000 !important;
}

.share-btn.is-copied .share-copy-label {
  max-width: 12em;
  opacity: 1;
  margin-left: 4px;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px dashed #444;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  color: #eee;
}

.cookie-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-bar-text {
  margin: 0;
  flex: 1 1 260px;
  font-size: 14px;
  line-height: 1.55;
  font-family: var(--font-bn);
}

.cookie-bar-actions {
  display: flex;
  gap: 8px;
}

.cookie-accept,
.cookie-decline {
  min-height: 31px;
  padding: 4px 10px;
  font-family: var(--font-bn);
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--btn-lo);
  border-radius: 0;
}

.cookie-accept {
  background: var(--btn-face);
  color: #000;
  box-shadow: var(--btn-out);
}

.cookie-decline {
  background: #888;
  color: #000;
  box-shadow: var(--btn-out);
}

.cookie-accept:active,
.cookie-decline:active {
  box-shadow: var(--btn-in);
}

@media (max-width: 800px) {
  .post-navigation {
    flex-direction: column;
  }

  .post-navigation a,
  .post-navigation .nav-next a {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar-actions {
    width: 100%;
  }

  .cookie-accept,
  .cookie-decline {
    flex: 1;
  }
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.pagination .page-numbers {
  border: 1px solid var(--btn-lo);
  padding: 3px 8px;
  min-width: 22px;
  text-align: center;
  background: var(--btn-face);
  color: #000;
  box-shadow: var(--btn-out);
  font-family: var(--font-bn);
}

.pagination .page-numbers:hover {
  color: #000;
}

.pagination .current {
  background: #868a8e;
  color: #000;
  box-shadow: var(--btn-in);
}

.search-form {
  display: flex;
  width: 100%;
  margin: 8px 0 16px;
  border: 1px solid #868a8e;
  box-shadow: inset 1px 1px 0 0 #000;
  background: #111;
}

.search-form label {
  flex: 1;
  margin: 0;
}

.search-form .search-field {
  width: 100%;
  background: transparent;
  border: 0;
  color: #eee;
  font-family: var(--font-bn);
  font-size: 16px; /* iOS zoom guard */
  padding: 10px;
  min-height: 44px;
}

.search-form .search-field:focus {
  outline: 1px solid var(--link);
}

.search-form .search-submit {
  appearance: none;
  border: 1px solid var(--btn-lo);
  background: var(--btn-face);
  color: #000;
  font-family: var(--font-bn);
  font-size: 13px;
  padding: 0 10px;
  min-height: 31px;
  cursor: pointer;
  box-shadow: var(--btn-out);
  border-radius: 0;
}

.search-form .search-submit:active {
  box-shadow: var(--btn-in);
}

.breadcrumbs {
  font-family: var(--font-bn);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

#button-collection {
  margin-top: 8px;
  padding-top: 8px;
}

#button-collection img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  margin: 2px 1px 0 0;
  vertical-align: top;
  background: #222;
}

footer {
  line-height: 1.1em;
  font-size: 11px;
  font-weight: 400;
  margin-top: 16px;
}

footer p {
  margin: 8px 0;
}

.credit {
  color: var(--link);
}

.comments-area {
  margin-top: 32px;
  border-top: 1px dashed var(--rule);
  padding-top: 20px;
}

.comments-title,
.comment-reply-title {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 16px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .children {
  margin: 12px 0 0 16px;
  padding-left: 12px;
  border-left: 1px dashed #333;
}

.comment-list .comment {
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0 14px;
  border-bottom: 1px dashed #2a2a2a;
}

.comment-list .children .comment-body {
  border-bottom-color: #222;
}

.comment-avatar {
  flex-shrink: 0;
}

.letter-avatar,
.comment-avatar .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--btn-lo);
  background: #1a1818;
  color: var(--link);
  font-family: var(--font-bn);
  font-size: 16px;
  line-height: 1;
  object-fit: cover;
  box-shadow: var(--btn-out);
}

.comment-panel {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 8px;
  font-family: var(--font-bn);
  font-size: 13px;
  color: var(--muted);
}

.comment-author {
  color: #fff;
  font-size: 15px;
}

.comment-time,
.comment-time time,
.comment-edit a,
.comment-reply a {
  font-family: var(--font-bn);
  font-size: 13px;
  color: #9a9a9a;
}

.comment-time:hover,
.comment-edit a:hover,
.comment-reply a:hover {
  color: var(--link);
}

.comment-content {
  font-family: var(--font-bn);
  font-size: 15px;
  line-height: 1.75;
  color: #e8e8e8;
}

.comment-content p {
  margin: 0 0 0.7em;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-awaiting {
  font-size: 13px;
  color: var(--link);
  margin: 0 0 8px;
}

.comment-reply {
  margin-top: 8px;
}

.comment-form {
  margin-top: 8px;
}

.comment-notes,
.logged-in-as {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 16px;
  line-height: 1.5;
}

.comment-form p {
  margin: 0 0 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #ddd;
}

.comment-form .required {
  color: var(--link);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #141414;
  border: 1px solid #3a3a3a;
  color: #eee;
  font-family: var(--font-bn);
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 12px;
  margin: 0;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 0 #000;
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: 0;
  border-color: var(--link);
  background: #191919;
}

.comment-form input[type="checkbox"],
.comment-form input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #ffbf80;
  vertical-align: top;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
}

.comment-form-cookies-consent input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: 0 0 18px;
}

.comment-form-cookies-consent label {
  display: block;
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #bbb;
}

.comment-form .form-submit {
  margin-bottom: 0;
}

.comment-form .submit {
  width: auto;
  min-height: 31px;
  background: var(--btn-face);
  color: #000;
  font-family: var(--font-bn);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--btn-lo);
  box-shadow: var(--btn-out);
  cursor: pointer;
  border-radius: 0;
}

.comment-form .submit:active {
  box-shadow: var(--btn-in);
}

.comment-form .submit:hover,
.comment-form .submit:focus-visible {
  filter: brightness(1.08);
}

.no-comments {
  color: #aaa;
  font-size: 14px;
}

@media (max-width: 800px) {
  .comment-list .children {
    margin-left: 8px;
    padding-left: 10px;
  }

  .letter-avatar,
  .comment-avatar .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .comment-body {
    gap: 10px;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Skeleton loaders */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #141414;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: skeleton 1.2s ease-in-out infinite;
}

@keyframes skeleton {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-line {
  display: block;
  height: 14px;
  margin: 8px 0;
  background: #1c1c1c;
  border-radius: 2px;
}

.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

img.is-skeleton {
  background: #1a1a1a;
  min-height: 31px;
}

body.fonts-loaded {
  /* hook for optional FOIT avoidance */
}

.alignleft { float: left; margin: 0 1em 0.5em 0; }
.alignright { float: right; margin: 0 0 0.5em 1em; }
.aligncenter { display: block; margin: 0.5em auto; }
.wp-caption { max-width: 100%; }
.sticky .entry-title::after {
  content: " ★";
  color: var(--selection);
  font-size: 12px;
}

.not-found {
  padding: 12px 0 24px;
}

/* Mobile — original 800px breakpoint, improved for readers */
@media (max-width: 800px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .container {
    width: 95% !important;
    margin: 0 auto;
    padding: 0 0 28px;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 40;
    text-align: left;
    background: #000;
    padding: 8px 4px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 8px;
  }

  .header .logo {
    font-size: 22px;
  }

  .header .slogan {
    display: block;
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.4;
    color: #ddd;
  }

  .header .bar {
    display: none;
  }

  .header-actions {
    display: flex;
    gap: 6px;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-toggle,
  .search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #sidebar,
  .content {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 10px;
  }

  #sidebar {
    margin-bottom: 12px !important;
    display: none;
    background: rgba(0, 0, 0, 0.94);
    border: 1px dashed #333;
    padding: 10px !important;
  }

  #sidebar.is-open {
    display: block;
  }

  .mobile-search {
    display: none;
    padding: 0 10px 8px;
  }

  .mobile-search.is-open {
    display: block;
  }

  .desktop-search {
    display: none;
  }

  .content {
    order: 1;
    font-size: 16px;
    padding-top: 4px;
  }

  .main-content {
    display: flex;
    flex-direction: column;
  }

  #sidebar a {
    font-size: 16px;
    padding: 10px 0 10px;
    margin-bottom: 0;
    min-height: 44px;
  }

  .welcome p {
    font-size: 17px;
  }

  .entry-content,
  .entry-title {
    overflow-wrap: anywhere;
  }

  .archive-list .post-card {
    grid-template-columns: 72px 1fr;
  }

  #card-collection {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  footer p {
    padding: 0 10px;
  }

  #button-collection {
    padding: 0 10px;
  }

  .marquee {
    height: 22px;
  }
}

@media (max-width: 480px) {
  .header .logo {
    font-size: 20px;
  }

  h1.page-title,
  .entry-title {
    font-size: 20px;
  }

  .archive-list .post-card {
    grid-template-columns: 1fr;
  }

  .post-card .thumb {
    width: 100%;
    height: 160px;
  }
}

@media (min-width: 801px) {
  .mobile-search {
    display: none !important;
  }
}

/* WP admin bar overlap */
.admin-bar .header {
  top: 0;
}

@media (min-width: 783px) {
  .admin-bar.nav-is-mobile .header {
    top: 32px;
  }
}
