/* ============================================================
   DeadJournal - journal.css
   Same look as the rest of the Neocities mini-site: tiled
   purple-stars background, Courier New body, purple text with a
   thin white outline, bitmap fonts for headers. Narrow fixed
   content column, dashed/dotted dividers, blinkies at native size.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=VT323&display=swap');

:root {
  --purple: #b34dff;
  --purple-dim: #7a2fbf;
  --white: #ffffff;
  --grey: #a9a9a9;
  --panel-black: rgba(0, 0, 0, 0.55);
  --panel-solid: #0b0410;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Courier New', Courier, monospace;
  color: var(--purple);
  -webkit-text-stroke: 0.4px var(--white);
  background-color: #000;
  background-image: url("../img/purple-stars-bg.gif");
  background-repeat: repeat;
  line-height: 1.5;
}

a:link { color: var(--white); }
a:visited { color: var(--grey); }
a:hover { color: var(--purple); }

/* narrow fixed content column - this is a journal, not a homepage */
.page-wrap {
  max-width: 1266px;
  margin: 0 auto;
  padding: 18px 12px 40px;
}

/* ---------- masthead ---------- */

.dj-masthead {
  text-align: center;
  padding: 6px 0 2px;
}

.dj-masthead h1 {
  margin: 0;
  font-family: 'Silkscreen', 'Courier New', monospace;
  font-size: 1.7rem;
  letter-spacing: 1px;
  line-height: 1.3;
}

.dj-masthead h1 a {
  color: var(--purple);
  -webkit-text-stroke: 0.6px var(--white);
  text-decoration: none;
}

.dj-masthead .tagline {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--white);
  -webkit-text-stroke: 0;
  font-size: 0.9rem;
}

/* ---------- nav ---------- */

.dj-nav {
  text-align: center;
  margin: 12px 0;
  padding: 6px 4px;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px dashed var(--purple);
  border-bottom: 1px dashed var(--purple);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.25rem;
}

.dj-nav a {
  color: var(--white);
  -webkit-text-stroke: 0;
  text-decoration: none;
  padding: 0 4px;
}

.dj-nav a:hover { color: var(--purple); text-decoration: underline; }
.dj-nav a.current { color: var(--purple); text-decoration: underline; }
.dj-nav .sep { color: var(--purple-dim); padding: 0 2px; }

.sparkle-divider {
  display: block;
  width: 100%;
  height: 20px;
  margin: 12px 0;
}

/* ---------- entries ---------- */

.entry {
  display: flex;
  gap: 12px;
  background: var(--panel-black);
  border: 1px dashed var(--purple-dim);
  padding: 12px;
  margin-bottom: 22px;
}

.entry-side {
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
}

/* userpic - shown at a classic LJ-ish size, not blown up */
.userpic {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid var(--purple);
  background: #000;
  image-rendering: pixelated;
}

.userpic-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--purple-dim);
}

.entry-main { flex: 1 1 auto; min-width: 0; }

.entry-title {
  margin: 0 0 2px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--purple);
  -webkit-text-stroke: 0.4px var(--white);
}

.entry-title a { color: var(--purple); -webkit-text-stroke: 0.4px var(--white); text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }

.entry-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--grey);
  -webkit-text-stroke: 0;
}

.entry-mood {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--white);
  -webkit-text-stroke: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* blinkies render at their real pixel size, never scaled up */
.mood-blinkie {
  image-rendering: pixelated;
  vertical-align: middle;
  border: 1px solid var(--purple-dim);
}

.mood-word { font-style: italic; }

.entry-body {
  color: var(--white);
  -webkit-text-stroke: 0;
  border-top: 1px dotted var(--purple-dim);
  padding-top: 8px;
}

.entry-body p { margin: 0 0 0.8em; }
.entry-body a { color: var(--purple); }
.entry-body a:hover { color: var(--white); }
.entry-body img { max-width: 100%; height: auto; }
.entry-body blockquote {
  margin: 0 0 0.8em;
  padding: 4px 10px;
  border-left: 3px solid var(--purple-dim);
  color: var(--grey);
}
.entry-body hr { border: none; border-top: 1px dashed var(--purple-dim); margin: 1em 0; }
.entry-body code {
  background: #000;
  border: 1px solid var(--purple-dim);
  padding: 0 3px;
  font-size: 0.9em;
}
.entry-body pre {
  background: #000;
  border: 1px solid var(--purple-dim);
  padding: 8px;
  overflow-x: auto;
}
.entry-body pre code { border: none; padding: 0; }

.entry-permalink {
  margin: 10px 0 0;
  font-size: 0.75rem;
  text-align: right;
}

.entry-permalink a, .archive-date, .back-link a { -webkit-text-stroke: 0; }

/* ---------- permalink page extras ---------- */

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin: 0 0 12px;
  -webkit-text-stroke: 0;
}

.entry-nav .sep { color: var(--purple-dim); padding: 0 6px; }

.back-link { text-align: center; font-size: 0.85rem; }

/* ---------- archive ---------- */

.archive {
  background: var(--panel-black);
  border: 1px dashed var(--purple-dim);
  padding: 12px 16px;
}

.archive h2 {
  margin: 0 0 10px;
  font-family: 'Silkscreen', 'Courier New', monospace;
  font-size: 1.1rem;
  color: var(--purple);
  -webkit-text-stroke: 0.4px var(--white);
}

.archive-month {
  margin: 16px 0 4px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 1.4rem;
  color: var(--white);
  -webkit-text-stroke: 0;
  border-bottom: 1px dotted var(--purple-dim);
}

.archive-list {
  list-style: square;
  margin: 0;
  padding-left: 22px;
}

.archive-list li {
  margin: 3px 0;
  color: var(--white);
  -webkit-text-stroke: 0;
}

.archive-list a { color: var(--purple); }
.archive-list a:hover { color: var(--white); }
.archive-date { color: var(--grey); font-size: 0.8rem; }

/* ---------- footer ---------- */

.dj-footer {
  text-align: center;
  font-style: italic;
  color: var(--grey);
  -webkit-text-stroke: 0;
  font-size: 0.8rem;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px dashed var(--purple-dim);
}

.entry-empty .entry-main { color: var(--white); -webkit-text-stroke: 0; }
.entry-empty code { background: #000; border: 1px solid var(--purple-dim); padding: 0 3px; }

@media (max-width: 480px) {
  .entry { flex-direction: column; }
  .entry-side { width: auto; }
  .userpic { margin: 0 auto; }
  .dj-masthead h1 { font-size: 1.3rem; }
}
