/* ~~~ septocaine.cc blog — shared styles ~~~ */

@font-face {
  font-family: 'SystemFont';
  src: url('/blog/fonts/sysfont.woff2') format('woff2'),
       url('/blog/fonts/sysfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bonbance';
  src: url('/blog/fonts/Bonbance-BoldCondensed.woff2') format('woff2'),
       url('/blog/fonts/Bonbance-BoldCondensed.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* classic mac cursors */
:root {
  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' fill='none'%3E%3Cpath d='M1 1l0 16 4.5-4.5L9 20l3-1.5L8.5 11H14L1 1z' fill='white' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' fill='none'%3E%3Cpath d='M6 8V3.5a1.5 1.5 0 013 0V8m0 0V5.5a1.5 1.5 0 013 0V9m0-2.5a1.5 1.5 0 013 0V12m0-3a1.5 1.5 0 013 0v5a7 7 0 01-7 7H9a7 7 0 01-5-2l-3-3.5c-.8-1 .2-2.5 1.5-1.5L5 16V3.5a1.5 1.5 0 013 0' fill='white' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 6 1, pointer;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: var(--cursor-arrow); }
a, button { cursor: var(--cursor-pointer); }

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23e0e0e0'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23e0e0e0'/%3E%3C/svg%3E");
  background-size: 4px 4px;
  color: #000;
  min-height: 100vh;
  -webkit-font-smoothing: none;
}

/* ~~~ MENU BAR ~~~ */
.menu-bar {
  background: #fff;
  border-bottom: 3px solid #000;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-apple { font-family: 'SystemFont', Verdana, Geneva, sans-serif; font-size: 20px; font-weight: bold; }
.menu-item { font-family: 'SystemFont', Verdana, Geneva, sans-serif; font-weight: bold; font-size: 14px; }
.menu-item a {
  text-decoration: none;
  color: #000;
  cursor: var(--cursor-pointer);
  padding: 2px 8px;
}
.menu-item a:hover {
  background: #000;
  color: #fff;
}

/* ~~~ WINDOW CHROME ~~~ */
.window {
  background: #fff;
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 5px 5px 0px #000;
  overflow: hidden;
}

.title-bar {
  background: #fff;
  border-bottom: 3px solid #000;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  cursor: default;
}

.close-box {
  width: 15px;
  height: 15px;
  border: 2px solid #000;
  border-radius: 3px;
  flex-shrink: 0;
  background: #fff;
}

.title-bar-stripes {
  flex: 1;
  height: 17px;
  background: repeating-linear-gradient(0deg, #000 0px, #000 2px, #fff 2px, #fff 4px);
}

.title-bar-text {
  font-family: 'SystemFont', Verdana, Geneva, sans-serif;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  padding: 0 12px;
  background: #fff;
}

/* all title bars — clean, no stripes */
.title-bar {
  justify-content: center;
  gap: 0;
}

.close-box,
.title-bar-stripes {
  display: none;
}

.post-card > .title-bar .title-bar-text {
  font-size: 16px;
  font-weight: 900;
}

.post-card > .title-bar {
  height: 36px;
}

/* ~~~ FOOTER ~~~ */
.footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 24px 0 36px;
  letter-spacing: 0.5px;
}

/* hide page scrollbar — only post windows get scrollbars */
html::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; }

/* hide native scrollbar on post-main — replaced by JS custom scrollbar */
.post-main::-webkit-scrollbar { display: none; }


/* ~~~ HERO / INTRO ~~~ */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #000;
}

.hero-logo {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero-mascot {
  flex-shrink: 0;
}


/* ==============================================
   INDEX PAGE — blog listing
   ============================================== */

.desktop-layout {
  display: flex;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px;
  align-items: flex-start;
}

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-col {
  width: 210px;
  flex-shrink: 0;
  position: sticky;
  top: 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  order: -1;
}

/* ~~~ POST CARDS ~~~ */
.post-inner {
  display: flex;
  height: 600px;
}

/* post internal sidebar (Slack-style) */
.post-sidebar {
  width: 170px;
  flex-shrink: 0;
  border-right: 3px solid #000;
  background: #fff;
  overflow-y: auto;
  padding: 0;
  font-size: 13px;
}

.ps-toolbar {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 2px solid #000;
  font-size: 16px;
  letter-spacing: 2px;
}

.ps-team-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid #000;
  margin: 10px 10px 8px;
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
  font-weight: bold;
}

.ps-dropdown-arrow {
  font-size: 9px;
}

.ps-nav-item {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
}

.ps-section-label {
  padding: 8px 12px 4px;
  font-size: 13px;
  font-weight: bold;
}

.ps-channel-list {
  padding: 0 0 6px 8px;
}

.ps-channel {
  padding: 2px 12px 2px 4px;
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ps-channel.active {
  font-weight: bold;
}

.ps-tree {
  color: #999;
  font-size: 11px;
  flex-shrink: 0;
}

/* post main content area */
.post-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.post-card .post-image {
  display: block;
  line-height: 0;
  flex-shrink: 0;
  padding: 14px;
  background: #fff;
}

.post-card .post-image img {
  width: 100%;
  display: block;
  border: 3px solid #000;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
}

.post-body {
  padding: 14px 16px 16px;
}

.post-title-link {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  color: #000;
  display: block;
  margin-bottom: 8px;
}

.post-title-link:hover {
  text-decoration: underline;
}

.post-desc {
  font-size: 14px;
  color: #333;
  line-height: 1.65;
  font-weight: normal;
}


/* ~~~ SIDEBAR ~~~ */
.sidebar-content {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-nav {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #eee;
}

.nav-item:last-child { border-bottom: none; }

.nav-item:hover {
  background: #ddd;
  color: #000;
}

.nav-item.active {
  background: #eee;
  color: #000;
  border-left: 3px solid #000;
}

.sb-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.sb-icon { flex-shrink: 0; }


/* ==============================================
   POST PAGE — single post view
   ============================================== */

.post-window {
  max-width: 740px;
  margin: 28px auto;
}

/* post header (black bar) */
.post-header {
  background: #000;
  color: #fff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #000;
}

.post-header .post-title {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  font-weight: 900;
}
.post-header .post-date { font-size: 11px; color: #aaa; margin-bottom: 0; }

/* photos */
.photo-full {
  border-bottom: 3px solid #000;
  line-height: 0;
}

.photo-full img {
  width: 100%;
  display: block;
}

/* dithered images — crisp pixel scaling, no blur */
img.dithered {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.photo-caption {
  padding: 8px 16px;
  font-size: 12px;
  color: #555;
  border-bottom: 2px solid #000;
  background: #fff;
  line-height: 1.5;
}

.photo-row {
  display: flex;
  border-bottom: 3px solid #000;
}

.photo-cell {
  flex: 1;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
}

.photo-cell:last-child { border-right: none; }

.photo-cell img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-cell .photo-caption {
  border-bottom: none;
  flex: 1;
}

.photo-cell-wide { flex: 2; }

/* post text body */
.post-text {
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  border-bottom: 2px solid #000;
}

.post-text p { margin-bottom: 12px; }
.post-text p:last-child { margin-bottom: 0; }

/* post navigation */
.post-nav {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 2px solid #000;
}

.post-nav a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

.post-nav a:hover { text-decoration: underline; }
.post-nav-disabled { color: #aaa; }

/* comments */
.comments-header {
  background: #fff;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 13px;
  border-bottom: 2px solid #000;
}

.comment {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  line-height: 1.5;
}

.comment:last-child { border-bottom: none; }

.comment-meta { font-weight: bold; margin-bottom: 3px; }
.comment-meta span { font-weight: normal; color: #888; }


/* ==============================================
   MOBILE — touch-friendly sizing
   ============================================== */

@media (max-width: 700px) {
  .menu-bar {
    height: 44px;
    padding: 4px 16px;
    gap: 20px;
  }

  .menu-apple { font-size: 24px; }
  .menu-item { font-size: 16px; }

  .desktop-layout {
    flex-direction: column;
    padding: 16px 12px;
    gap: 20px;
  }

  .side-col {
    width: 100%;
    position: static;
    order: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .side-col .window {
    flex: 1;
    min-width: 140px;
  }

  .main-col { gap: 20px; }

  /* hide post internal sidebar on mobile */
  .post-sidebar { display: none; }
  .post-inner { height: auto; }

  .post-title-link { font-size: 20px; }
  .post-desc { font-size: 15px; line-height: 1.5; }

  .sidebar-content { font-size: 14px; }
  .nav-item { font-size: 14px; padding: 8px 14px; }
  .title-bar-text { font-size: 14px; }

  .post-window { margin: 16px 10px; }

  .post-header .post-title { font-size: 20px; }
  .post-header .post-date { font-size: 12px; }
  .post-text { font-size: 16px; padding: 18px; }
  .photo-caption { font-size: 14px; padding: 10px 14px; }
  .post-nav { font-size: 15px; padding: 14px 16px; }
  .comments-header { font-size: 14px; padding: 8px 16px; }
  .comment { font-size: 14px; padding: 14px 16px; }

  .photo-row { flex-direction: column; }
  .photo-cell { border-right: none; border-bottom: 2px solid #000; }
  .photo-cell:last-child { border-bottom: none; }
  .photo-cell img { height: 200px; }

  .footer { font-size: 12px; padding: 20px 0 36px; }
}
