/* ============================================================
   ✦ SHRINE.CSS — bruised angel edition
   ✦ palette: black · white · deep red-pink · ash grey
   ✦ vibe: gothic lolita · lace · crt buzz · sleepy eyes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=VT323&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --black:        #080608;
  --black-soft:   #110d12;
  --black-mid:    #1a141c;
  --black-panel:  #130e14;
  --white:        #f0eaee;
  --white-dim:    #c8bfc6;
  --white-ghost:  #7a6e78;
  --red:          #9b1c3a;
  --red-bright:   #c42050;
  --red-pale:     #e8768f;
  --red-blush:    #f0b8c4;
  --red-glow:     rgba(196, 32, 80, 0.4);
  --red-glow-soft:rgba(196, 32, 80, 0.15);
  --border:       #3a1f28;
  --border-bright:#6b2d3e;
  --lace:         rgba(240, 234, 238, 0.06);
  --win-bar:      #1a0d12;
  --win-bar-text: #e8d0d8;
  --text:         #e8e0e4;
  --text-dim:     #8a7880;
  --text-ghost:   #4a3840;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

/* ---------- BASE BODY + BACKGROUND ---------- */
body {
  background-color: var(--black);
  color: var(--text);
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;

  /* layered background:
     1. lace diamond pattern (SVG inline)
     2. subtle vertical stripe grain
     3. deep black base                          */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2 L38 20 L20 38 L2 20 Z' fill='none' stroke='rgba(155,28,58,0.13)' stroke-width='0.8'/%3E%3Cpath d='M20 8 L32 20 L20 32 L8 20 Z' fill='none' stroke='rgba(155,28,58,0.07)' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='20' r='1.5' fill='rgba(155,28,58,0.1)'/%3E%3Ccircle cx='0' cy='0' r='1' fill='rgba(155,28,58,0.07)'/%3E%3Ccircle cx='40' cy='0' r='1' fill='rgba(155,28,58,0.07)'/%3E%3Ccircle cx='0' cy='40' r='1' fill='rgba(155,28,58,0.07)'/%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(155,28,58,0.07)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(0,0,0,0.03) 3px,
      rgba(0,0,0,0.03) 4px
    );
}

/* CRT scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 3px
  );
}

/* Vignette edge darkening */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0,0,0,0.55) 100%
  );
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'IM Fell English', 'Georgia', serif;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

h1 { font-size: 3rem;   color: var(--white); }
h2 { font-size: 1.8rem; color: var(--white-dim); }
h3 { font-size: 1.4rem; color: var(--red-pale); }
h4 { font-size: 1.1rem; color: var(--white-ghost); }

/* body copy in Cormorant for that sleepy editorial feel */
p  { font-size: 1.05rem; margin-bottom: 0.8em; color: var(--text); }
em { font-style: italic; color: var(--red-blush); }

a {
  color: var(--red-pale);
  text-decoration: none;
  border-bottom: 1px solid rgba(232,118,143,0.3);
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}
a:hover {
  color: var(--white);
  border-bottom-color: var(--red-bright);
  text-shadow: 0 0 10px var(--red-glow);
}
a:visited { color: var(--white-ghost); }

ul  { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }

/* ---------- FLICKERING TEXT
   Apply class="flicker" to any element.
   Three variants for organic feel.             */
@keyframes flicker-a {
  0%,100% { opacity:1; }
  88%      { opacity:1; }
  89%      { opacity:0.3; }
  90%      { opacity:1; }
  94%      { opacity:0.7; }
  95%      { opacity:1; }
}
@keyframes flicker-b {
  0%,100% { opacity:1; }
  72%      { opacity:1; }
  73%      { opacity:0.2; }
  74%      { opacity:0.9; }
  75%      { opacity:1; }
  91%      { opacity:1; }
  92%      { opacity:0.5; }
  93%      { opacity:1; }
}
@keyframes flicker-c {
  0%,100% { opacity:1; }
  60%      { opacity:1; }
  61%      { opacity:0.4; }
  62%      { opacity:1; }
  80%      { opacity:1; }
  81%      { opacity:0.6; }
  82%      { opacity:0.2; }
  83%      { opacity:1; }
}
.flicker   { animation: flicker-a 7s infinite; }
.flicker-b { animation: flicker-b 5s infinite; }
.flicker-c { animation: flicker-c 9s infinite; }

/* Slow red pulse */
@keyframes red-pulse {
  0%,100% { text-shadow: 0 0 8px var(--red-glow), 0 0 2px rgba(196,32,80,0.3); }
  50%      { text-shadow: 0 0 20px var(--red-glow), 0 0 40px rgba(196,32,80,0.2); }
}
.glow-red { animation: red-pulse 5s ease-in-out infinite; }

/* Blinking cursor */
@keyframes blink { 50% { opacity:0; } }
.cursor::after {
  content: '█';
  animation: blink 1.2s step-start infinite;
  font-size: 0.85em;
  color: var(--red-pale);
  margin-left: 2px;
}

/* ---------- LACE BORDER MIXIN
   Use .lace-top / .lace-bottom on panels for
   SVG lace trim decoration                     */
.lace-border {
  position: relative;
}
.lace-border::before,
.lace-border::after {
  content: '';
  display: block;
  width: 100%;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12'%3E%3Cpath d='M0 0 Q5 12 10 6 Q15 0 20 12' fill='none' stroke='rgba(155,28,58,0.5)' stroke-width='1'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(155,28,58,0.4)'/%3E%3Ccircle cx='10' cy='6' r='1.5' fill='rgba(155,28,58,0.4)'/%3E%3Ccircle cx='20' cy='12' r='1.5' fill='rgba(155,28,58,0.4)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 20px 12px;
  pointer-events: none;
}
.lace-border::after {
  transform: scaleY(-1);
}

/* ---------- LAYOUT WRAPPER ---------- */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ---------- SITE HEADER ---------- */
.site-header {
  text-align: center;
  padding: 32px 10px 0;
  position: relative;
}

.site-header::before {
  content: '✦ · · · ✦ · · · ✦ · · · ✦ · · · ✦ · · · ✦ · · · ✦ · · · ✦';
  display: block;
  font-family: 'VT323', monospace;
  font-size: 0.8rem;
  color: var(--border-bright);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
  animation: flicker-c 11s infinite;
}

.site-title {
  font-family: 'IM Fell English', serif;
  font-size: 3.8rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.site-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* Decorative lace divider (text-based) */
.lace-divider {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--border-bright);
  letter-spacing: 0.18em;
  margin: 10px 0;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- MAIN NAV ---------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 12px 0 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 10px;
}

.site-nav a {
  display: inline-block;
  padding: 5px 16px;
  color: var(--white-dim);
  text-decoration: none;
  border: none;
  border-right: 1px solid var(--border);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-style: italic;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:first-child { border-left: 1px solid var(--border); }
.site-nav a:hover {
  color: var(--white);
  background: rgba(155,28,58,0.15);
  text-shadow: 0 0 8px var(--red-glow);
}
.site-nav a.active {
  color: var(--red-blush);
  background: rgba(155,28,58,0.1);
}

/* ---------- THREE-COLUMN GRID ---------- */
.three-col {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  grid-template-areas: "left main right";
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}
.col-left  { grid-area: left;  }
.col-main  { grid-area: main;  }
.col-right { grid-area: right; }

/* ---------- PANELS ---------- */
.panel {
  border: 1px solid var(--border);
  background: var(--black-panel);
  margin-bottom: 14px;
  position: relative;
  /* lace corner accents using box-shadow layers */
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02);
}

/* Lace top trim on every panel */
.panel::before {
  content: '';
  display: block;
  width: 100%;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 0 Q4 8 8 4 Q12 0 16 8' fill='none' stroke='rgba(107,45,62,0.6)' stroke-width='0.8'/%3E%3Ccircle cx='0' cy='0' r='1' fill='rgba(107,45,62,0.5)'/%3E%3Ccircle cx='8' cy='4' r='1' fill='rgba(107,45,62,0.5)'/%3E%3Ccircle cx='16' cy='8' r='1' fill='rgba(107,45,62,0.5)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 8px;
  pointer-events: none;
  flex-shrink: 0;
}

.panel-title {
  background: linear-gradient(90deg, var(--win-bar) 0%, #200e16 100%);
  color: var(--win-bar-text);
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.panel-title::after {
  content: '✦';
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--red);
  animation: flicker-b 8s infinite;
}

.panel-body {
  padding: 10px 12px;
  font-size: 0.88rem;
}

/* ---------- SCROLLABLE SIDEBAR SECTIONS ---------- */
.scroll-box {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--black-mid);
}
.scroll-box::-webkit-scrollbar       { width: 4px; }
.scroll-box::-webkit-scrollbar-track { background: var(--black-mid); }
.scroll-box::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ---------- STATUS UPDATES ---------- */
.status-list li {
  border-bottom: 1px solid rgba(58,31,40,0.6);
  padding: 8px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.status-list li:last-child { border-bottom: none; }

.status-date {
  display: block;
  font-family: 'VT323', monospace;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  animation: flicker-c 13s infinite;
}
.status-text { color: var(--white-dim); font-style: italic; }

/* ---------- BLINKIES / STAMPS ---------- */
.blinky-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.blinky-slot {
  display: block;
  border: 1px solid var(--border);
  padding: 2px;
  background: rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-ghost);
}
.blinky-slot:hover {
  border-color: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}
.blinky-slot img { width: 100%; height: auto; image-rendering: pixelated; }

.blinky-placeholder {
  width: 100%;
  height: 22px;
  background: var(--black-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 0.72rem;
  color: var(--text-ghost);
  letter-spacing: 0.05em;
}

/* ---------- WELCOME / MAIN ---------- */
.welcome-box {
  text-align: center;
  padding: 18px 20px;
}
.welcome-box p {
  color: var(--text-dim);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto 0.6em;
}

.logo-area {
  width: 160px;
  height: 80px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 0.72rem;
  color: var(--border-bright);
  letter-spacing: 0.08em;
}

/* ---------- BLOG POST ENTRIES (index/preview) ---------- */
.post-entry {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

.post-header {
  background: linear-gradient(90deg, var(--win-bar) 0%, #1a0d12 100%);
  padding: 7px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.post-title-link {
  font-family: 'IM Fell English', serif;
  font-size: 1.3rem;
  color: var(--white-dim);
  text-decoration: none;
  border: none;
  transition: color 0.2s;
}
.post-title-link:hover { color: var(--white); text-shadow: 0 0 8px var(--red-glow); }

.post-date {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--red);
}

.post-body {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
}

.tag-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--red-pale);
  border: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  padding: 1px 10px;
  text-decoration: none;
  margin-top: 6px;
  font-family: 'VT323', monospace;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.tag-link:hover {
  background: var(--red);
  border-color: var(--red-bright);
  color: var(--white);
  text-shadow: none;
}

/* ---------- CSS LIGHTBOX
   Pure CSS — no JavaScript.
   How it works:
   - Each item has an <a href="#lightbox-ID"> trigger
   - The lightbox is a <div id="lightbox-ID"> that hides
     off-screen by default
   - When the URL hash matches, :target shows it
   - A close link sets hash to # to dismiss            */

.lightbox-overlay {
  display: none;              /* hidden by default       */
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4,2,5,0.94);
  overflow-y: auto;
  padding: 30px 20px;
  /* lace background inside lightbox */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 2 L38 20 L20 38 L2 20 Z' fill='none' stroke='rgba(155,28,58,0.1)' stroke-width='0.8'/%3E%3C/svg%3E"),
    rgba(4,2,5,0.94);
}

/* Show when targeted */
.lightbox-overlay:target {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lightbox-inner {
  position: relative;
  max-width: 720px;
  width: 100%;
  border: 1px solid var(--border-bright);
  background: var(--black-panel);
  padding: 0;
  box-shadow: 0 0 60px rgba(155,28,58,0.3), 0 0 120px rgba(0,0,0,0.8);
}

/* Lace top on lightbox */
.lightbox-inner::before {
  content: '';
  display: block;
  width: 100%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M0 0 Q4 10 8 5 Q12 0 16 10' fill='none' stroke='rgba(107,45,62,0.8)' stroke-width='1'/%3E%3Ccircle cx='0' cy='0' r='1.2' fill='rgba(107,45,62,0.7)'/%3E%3Ccircle cx='8' cy='5' r='1.2' fill='rgba(107,45,62,0.7)'/%3E%3Ccircle cx='16' cy='10' r='1.2' fill='rgba(107,45,62,0.7)'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 10px;
}

.lightbox-bar {
  background: linear-gradient(90deg, var(--win-bar) 0%, #200e16 100%);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-bright);
}

.lightbox-bar-title {
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  color: var(--win-bar-text);
  letter-spacing: 0.05em;
}

.lightbox-close {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--red-pale);
  text-decoration: none;
  border: 1px solid var(--border-bright);
  padding: 1px 10px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red-bright);
  text-shadow: none;
}

.lightbox-content {
  padding: 24px 28px 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text);
}

.lightbox-content h2 {
  font-family: 'IM Fell English', serif;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 6px;
}

.lightbox-content .post-date {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--red);
  display: block;
  margin-bottom: 18px;
}

.lightbox-content p { margin-bottom: 1em; }

.lightbox-content img {
  max-width: 100%;
  border: 1px solid var(--border);
  margin: 12px auto;
}

/* Lace divider inside lightbox content */
.lightbox-content .lace-divider {
  margin: 18px 0;
}

/* ---------- ART GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-item {
  border: 1px solid var(--border);
  background: var(--black-mid);
  padding: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery-item:hover {
  border-color: var(--red-bright);
  box-shadow: 0 0 14px var(--red-glow-soft);
}

.gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  image-rendering: pixelated;
  background: linear-gradient(135deg, #1a0a12 0%, #0a0a1a 100%);
}

.gallery-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 5px;
  padding: 0 2px;
  text-align: center;
}

/* ---------- WRITING LIST ---------- */
.writing-list li {
  border-bottom: 1px solid rgba(58,31,40,0.5);
  padding: 12px 0;
}
.writing-list li:last-child { border-bottom: none; }

.writing-title {
  font-family: 'IM Fell English', serif;
  font-size: 1.3rem;
  color: var(--white-dim);
  text-decoration: none;
  border: none;
  transition: color 0.2s;
}
.writing-title:hover { color: var(--white); text-shadow: 0 0 8px var(--red-glow); }

.writing-desc {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 4px;
}

.writing-meta {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--text-ghost);
  margin-top: 5px;
  letter-spacing: 0.05em;
}
.writing-meta span { margin-right: 12px; }

.media-status {
  font-family: 'VT323', monospace;
  font-size: 0.78rem;
  color: var(--red-pale);
  border: 1px solid var(--border-bright);
  padding: 0 6px;
  letter-spacing: 0.05em;
}

/* ---------- MEDIA LOG ---------- */
.media-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--black-mid);
}
.media-table-wrap::-webkit-scrollbar       { width: 4px; }
.media-table-wrap::-webkit-scrollbar-track { background: var(--black-mid); }
.media-table-wrap::-webkit-scrollbar-thumb { background: var(--red); }

.media-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.media-table th {
  background: var(--win-bar);
  color: var(--win-bar-text);
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  padding: 5px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-bright);
  position: sticky;
  top: 0;
  z-index: 1;
}
.media-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(58,31,40,0.4);
  color: var(--text);
  vertical-align: top;
}
.media-table tr:last-child td { border-bottom: none; }
.media-table tr:hover td { background: rgba(155,28,58,0.06); }

.media-rating { color: var(--red-pale); letter-spacing: 2px; }

/* ---------- OTHER SITES — 88x31 button grid ---------- */
.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}

.button-slot {
  display: block;
  border: 1px solid var(--border);
  padding: 2px;
  background: rgba(0,0,0,0.3);
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 0;
}
.button-slot:hover {
  border-color: var(--red);
  box-shadow: 0 0 8px var(--red-glow-soft);
}
.button-slot img { width: 88px; height: 31px; image-rendering: pixelated; }

.button-placeholder {
  width: 88px;
  height: 31px;
  background: var(--black-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 0.68rem;
  color: var(--text-ghost);
}

/* ---------- ABOUT PAGE ---------- */
.about-portrait {
  width: 130px;
  height: 170px;
  object-fit: cover;
  border: 1px solid var(--border-bright);
  float: right;
  margin: 0 0 14px 18px;
  background: linear-gradient(160deg, #1a0a12 0%, #0a0a1a 100%);
  display: block;
  box-shadow: 0 0 20px rgba(155,28,58,0.2);
}
.about-bio::after { content: ''; display: table; clear: both; }

.fact-list li {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(58,31,40,0.4);
  font-size: 0.88rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-key {
  color: var(--red-pale);
  font-style: italic;
  min-width: 100px;
  flex-shrink: 0;
}

/* ---------- CONTENT SECTION ---------- */
.content-section { margin-bottom: 22px; }

/* Bracket heading style */
.bracket-title::before { content: '[ '; color: var(--border-bright); }
.bracket-title::after  { content: ' ]'; color: var(--border-bright); }

/* ---------- FOOTER ---------- */
.site-footer {
  text-align: center;
  padding: 20px 10px 30px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-ghost);
  letter-spacing: 0.08em;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}
.site-footer a { color: var(--text-ghost); border: none; }
.site-footer a:hover { color: var(--red-pale); }

.footer-ascii {
  font-family: 'VT323', monospace;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--border-bright);
  line-height: 1.3;
  margin-bottom: 10px;
  white-space: pre;
  overflow: hidden;
  animation: flicker-b 15s infinite;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .three-col {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "left" "right";
  }
  .site-title { font-size: 2.8rem; }
  .site-nav a { font-size: 0.85rem; padding: 5px 10px; }
  .about-portrait { float: none; margin: 0 auto 14px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-content { padding: 16px 16px 20px; }
}
