

/* ════════════════════════════════════════════
   CASTLE KEEP — neocities pixel layout
   palette: red · black · white · gray
   fonts: Cinzel (display), IM Fell English (body), VT323 (pixel)
════════════════════════════════════════════ */

:root {
  --black:   #0d0d0d;
  --deep:    #1a0a0a;
  --red:     #8b0000;
  --red2:    #b01020;
  --red3:    #cc1122;
  --white:   #f5f0ee;
  --offwhite:#e8e0dc;
  --gray1:   #2a2a2a;
  --gray2:   #444;
  --gray3:   #888;
  --gray4:   #bbb;
  --gray5:   #d8d4d2;
  --border:  #3a0808;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { color: var(--red3); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--white); }

/* ── body ── */
body {
  background-color: var(--black);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 15px,
      rgba(139,0,0,.04) 15px, rgba(139,0,0,.04) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 15px,
      rgba(139,0,0,.04) 15px, rgba(139,0,0,.04) 16px
    );
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 13px;
  color: var(--white);
  min-height: 100vh;
  /* custom crosshair cursor */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M2 2 L14 8 L8 8 L6 14 Z' fill='%238b0000' stroke='%23f5f0ee' stroke-width='1'/%3E%3C/svg%3E") 2 2, auto;
}

/* ── scrollbar ── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }
::-webkit-scrollbar-thumb:hover { background: var(--red3); }

/* ════════════════════════════════════════════
   FIXED LACE BORDER (top + bottom of viewport)
════════════════════════════════════════════ */
.lace-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 800;
  overflow: hidden;
}

/* top lace */
.lace-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  background-image: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/b46861d4-f830-4896-8af6-71206fe2fe78/dczcbcv-d20491af-b837-467d-aeca-82cef1e6b9e6.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9iNDY4NjFkNC1mODMwLTQ4OTYtOGFmNi03MTIwNmZlMmZlNzgvZGN6Y2Jjdi1kMjA0OTFhZi1iODM3LTQ2N2QtYWVjYS04MmNlZjFlNmI5ZTYuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.S_s-zeSi4tbZoeBKNXz4rVI03mFVsOC6vypmKuYB3ek");
  background-repeat: repeat-x;
  background-size: 40px 28px;
}

/* bottom lace */
.lace-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background-image: url("https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/b46861d4-f830-4896-8af6-71206fe2fe78/dczcbcv-d20491af-b837-467d-aeca-82cef1e6b9e6.gif?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiIvZi9iNDY4NjFkNC1mODMwLTQ4OTYtOGFmNi03MTIwNmZlMmZlNzgvZGN6Y2Jjdi1kMjA0OTFhZi1iODM3LTQ2N2QtYWVjYS04MmNlZjFlNmI5ZTYuZ2lmIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.S_s-zeSi4tbZoeBKNXz4rVI03mFVsOC6vypmKuYB3ek");
  background-repeat: repeat-x;
  background-size: 40px 28px;
}

/* ════════════════════════════════════════════
   PAGE WRAPPER
════════════════════════════════════════════ */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px;
  /* push content below/above the fixed lace bars */
  padding-top:  56px;
  padding-bottom: 26px;
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.top-section {
  background: linear-gradient(180deg, #1a0505 0%, #0d0000 100%);
  border: 2px solid var(--red);
  
  position: relative;
  overflow: hidden;
  padding: 12px 12px 8px;
   border-top:2px solid var(--red);
}

.top-section::before {
  content: '✦';
  position: absolute; top: 5px; left: 7px;
  color: var(--red3); font-size: 10px;
}
.top-section::after {
  content: '✦';
  position: absolute; top: 5px; right: 7px;
  color: var(--red3); font-size: 10px;
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* left pixel castle svg */
.castle-small {
 flex-shrink: 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(139,0,0,.6));
}

/* right rose svg */
.rose-deco {
  flex-shrink: 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(139,0,0,.6));
}

.site-title-block {
  flex: 1;
  text-align: center;
  
}

.site-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 5px;
  text-shadow: 0 0 12px rgba(139,0,0,.9), 2px 2px 0 var(--black);
  animation: glow-pulse 3s ease-in-out infinite;
}

.site-subtitle {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: .82rem;
  color: var(--gray3);
  letter-spacing: 2px;
}

.site-tagline {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--red3);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ── vine / divider bar ── */
.vine-bar {
  background: var(--black);
  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);
  padding: 2px 0;
  text-align: center;
  font-size: 11px;
  color: var(--red2);
  letter-spacing: 3px;
  height: 18px;
  line-height: 14px;
  overflow: hidden;
}

/* ── marquee bar ── */
.marquee-bar {
  background: #100000;
  border: 1px solid var(--border);
  border-top: none;
  padding: 3px 0;
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  color: var(--red3);
  overflow: hidden;
  letter-spacing: 1px;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

/* ── navigation row ── */
.nav-row {
  background: linear-gradient(90deg, #0d0000, #1a0505, #0d0000);
  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);
  border-top:2px solid var(--red);
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  flex-wrap: wrap;
}

.nav-row a {
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  color: var(--gray4);
  text-decoration: none;
  padding: 2px 10px;
  border: 1px solid #2a0808;
  background: rgba(139,0,0,.08);
  letter-spacing: 1px;
  transition: background .15s, color .15s, border-color .15s;
}

.nav-row a:hover {
  color: var(--white);
  background: rgba(139,0,0,.35);
  border-color: var(--red);
  text-decoration: none;
}

/* ════════════════════════════════════════════
   THREE-COLUMN MIDDLE
════════════════════════════════════════════ */
.middle {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);
  background: var(--black);
  min-height: 380px;
}

/* ── sidebars ── */
.sidebar {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar.left  { border-right: 1px solid #2a0808; }
.sidebar.right { border-left:  1px solid #2a0808; }

/* ── boxes ── */
.box {
  background: linear-gradient(135deg, #0f0000 0%, #1a0505 100%);
  border: 1px solid var(--border);
  padding: 6px 7px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--gray4);
}

.box-title {
  font-family: 'Cinzel', serif;
  font-size: .7rem;
  font-weight: 600;
  color: var(--red3);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid #2a0808;
  margin-bottom: 5px;
  padding-bottom: 3px;
  text-align: center;
}

.box a {
  display: block;
  color: var(--gray3);
  text-decoration: none;
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  letter-spacing: .5px;
  padding: 1px 0;
  border-bottom: 1px dotted #1a0505;
  transition: color .1s;
}
.box a:hover { color: var(--red3); text-decoration: none; }
.box a::before { content: '❧ '; color: var(--red); font-size: 9px; }

/* ── status widget ── */
.status-box {
  font-family: 'IM Fell English', serif;
  font-size: .92rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border-bottom: 1px dotted #1a0505;
  color: var(--gray3);
}

.status-row .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red3);
  flex-shrink: 0;
  box-shadow: 0 0 4px var(--red);
}

.status-row .label { color: var(--gray4); font-size: .82rem; }
.status-row .val   {
  color: var(--white);
  margin-left: auto;
  font-size: .78rem;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── stamps row ── */
.stamps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 26px;
  background: #1a0505;
  border: 1px solid var(--border);
  font-family: 'IM Fell English', serif;
  font-size: .72rem;
  color: var(--gray4);
  text-align: center;
  letter-spacing: .5px;
}

.stamp.red-s  { background: #1a0000; border-color: var(--red); color: var(--red3); }
.stamp.gray-s { background: #111;    border-color: #333;        color: var(--gray3); }

/* ── visitor counter ── */
.visitor-count {
  font-family: 'IM Fell English', serif;
  font-size: 1.4rem;
  text-align: center;
  color: var(--red3);
  letter-spacing: 2px;
}

/* ── music bar ── */
.music-progress-bg {
  height: 4px;
  background: #1a0505;
  border: 1px solid #2a0808;
  margin-top: 5px;
}

.music-progress-fill {
  height: 100%;
  width: 62%;
  background: var(--red);
  opacity: .85;
}

/* ════════════════════════════════════════════
   MAIN CONTENT (center column)
════════════════════════════════════════════ */
.main-content {
  padding: 10px 12px;
  border-left: 1px solid #1a0505;
  border-right: 1px solid #1a0505;
}

/* lace repeating SVG divider */
.lace-divider {
  width: 100%;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='16'%3E%3Cpath d='M0 8 Q7.5 2 15 8 Q22.5 14 30 8' fill='none' stroke='%238b0000' stroke-width='1'/%3E%3Ccircle cx='15' cy='8' r='2' fill='none' stroke='%23cc1122' stroke-width='.8'/%3E%3Ccircle cx='0'  cy='8' r='1.5' fill='%238b0000'/%3E%3Ccircle cx='30' cy='8' r='1.5' fill='%238b0000'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 30px 16px;
  margin: 8px 0;
}

/* castle scene */
.castle-center {
  text-align: center;
  margin: 6px 0 4px;
}

.castle-center svg {
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(139,0,0,.5));
  max-width: 100%;
}

/* welcome block */
.welcome-block {
  background: linear-gradient(135deg, #0f0000, #160808);
  border: 1px solid var(--border);
  padding: 10px 12px;
  margin-bottom: 8px;
  position: relative;
}

/* diamond corner accents */
.welcome-block::before,
.welcome-block::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--red);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.welcome-block::before { top:    -5px; left:  -5px; }
.welcome-block::after  { bottom: -5px; right: -5px; }

.welcome-block h2 {
  font-family: 'Cinzel', serif;
  font-size: .82rem;
  color: var(--red3);
  letter-spacing: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.welcome-block p {
  font-size: 11.5px;
  color: var(--gray4);
  line-height: 1.8;
}

.welcome-block em     { color: var(--white); font-style: italic; }
.welcome-block strong { color: var(--red3); }

/* journal entries */
.entry {
  background: #0a0000;
  border: 1px solid #2a0808;
  border-left: 3px solid var(--red);
  padding: 7px 10px;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: var(--gray4);
  line-height: 1.72;
}

.entry-title {
  font-family: 'Cinzel', serif;
  font-size: .72rem;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-date {
  font-family: 'IM Fell English', serif;
  font-size: .9rem;
  color: var(--red3);
  letter-spacing: 0;
  font-weight: normal;
}

.entry p em { color: var(--gray3); font-style: italic; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #0d0000 0%, #1a0505 100%);
  border: 2px solid var(--red);
  border-top: none;
  padding: 5px 0 5px;
  text-align: center;
}

.footer-lace {
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M0 0 L20 0' stroke='%238b0000' stroke-width='1.5'/%3E%3Cpath d='M0 7 Q5 2 10 7 Q15 12 20 7' fill='none' stroke='%235a1010' stroke-width='1'/%3E%3Ccircle cx='10' cy='7' r='1.5' fill='none' stroke='%238b0000' stroke-width='.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 20px 14px;
  margin-bottom: 4px;
}

.footer-roses {
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--red2);
  margin-bottom: 3px;
}

.footer-text {
  font-family:'IM Fell English', serif;
  font-size: .88rem;
  color: var(--gray3);
  letter-spacing: 1px;
  line-height: 1.8;
}

.footer-text a { color: var(--red3); }
.footer-text a:hover { color: var(--white); }

/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 6px  rgba(139,0,0,.6), 2px 2px 0 #000; }
  50%       { text-shadow: 0 0 20px rgba(204,17,34,.9), 0 0 36px rgba(139,0,0,.4), 2px 2px 0 #000; }
}

@keyframes scroll-left {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — collapse sidebar on narrow screens
════════════════════════════════════════════ */
@media (max-width: 640px) {
  .middle { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .site-title { font-size: 1.3rem; }
  .top-inner { flex-direction: column; }
}

