/* =========================
 *   Base variables & resets
 *   ========================= */
:root{
  --bg:#0b0b0f;
  --panel:#121218;
  --accent:#a58bff;
  --text:#e8e8f2;
  --muted:#b1b1c2;

  --card:rgba(23,23,34,.70);
  --card-strong:rgba(23,23,34,.86);
  --ring:0 0 0 2px rgba(165,139,255,.32);
  --shadow:0 12px 36px rgba(0,0,0,.38);

  --radius:16px;
  --radius-lg:20px;
  --radius-sm:10px;
  --vignette:rgba(0,0,0,.42);
  --maxw:1400px;
  --grid:8px;

  /* aliases */
  --accent-purple: var(--accent);
  --nyx-purple: var(--accent);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

/* Global cursor */
body { cursor: url("../img/cursor2.cur"), auto; }

/* But keep text cursor where it belongs */
input, textarea { cursor: text; }

/* Links/buttons stay clickable */
a, button { cursor: pointer; }

.hidden { display: none; }

/* landing layout */
.landing{
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.landing-inner{
  max-width: 520px;
  padding: 24px;
}

.landing-enter{
  margin-top: 14px;
}

body{
  margin:0;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:
    radial-gradient(1000px 520px at 50% -8%, rgba(165,139,255,.08), transparent 60%),
    linear-gradient(180deg,#09090c 0%, #0b0b0f 40%, #0b0b0f 100%);
  color:var(--text);
  line-height:1.7;
  letter-spacing:.18px;
}

/* overlay texture */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(75vw 60vh at 50% 12%, transparent 42%, var(--vignette) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.04) 0 1deg, transparent 1deg 360deg);
  mix-blend-mode:soft-light;
  filter:contrast(112%) saturate(104%);
  opacity:.72;
}

/* optional extra sparkle layer if you keep a .sparkle-overlay div in HTML */
.sparkle-overlay{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(214,186,255,.22), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(214,186,255,.18), transparent),
    radial-gradient(1px 1px at 20% 60%, rgba(255,255,255,.18), transparent);
  mix-blend-mode:lighten;
  opacity:.28;
}

/* wrap */
.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:calc(var(--grid)*2) calc(var(--grid)*3);
  position:relative;
  z-index:1;
}

/* simple container card */
.container-hero{
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:radial-gradient(220% 200% at 100% 0%, rgba(165,139,255,.07), transparent 50%) var(--card-strong);
  box-shadow:var(--shadow);
}

/* links */
a{
  color:var(--accent);
  text-decoration:none;
  background:linear-gradient(currentColor,currentColor) 0 100% / 0 1px no-repeat;
  transition:background-size .25s ease, color .2s ease;
}
a:hover{
  background-size:100% 1px;
}
a:focus-visible{
  outline:var(--ring);
}

/* =========================
 *   Merged Masthead Layout (index / other pages)
 * ========================= */
.masthead-merged{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
  padding:16px;
  margin-bottom:calc(var(--grid)*2);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    radial-gradient(600px 220px at 80% 0%, rgba(165,139,255,.08), transparent 60%),
    url('../img/header.png');
  background-size:auto,auto,cover;
  background-position:center right;
  background-repeat:no-repeat;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
  border-radius:var(--radius-lg);
  width:94%;
  max-width:var(--maxw);
  height:auto;
  min-height: 190px;
  margin:0 auto calc(var(--grid)*2);
}
.masthead-inner{
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* logo + name */
.identity{
  display:flex;
  align-items:center;
  gap:18px;
}
.masthead-merged .logo{
  width:90px;
  height:90px;
  border-radius:0;
  object-fit:cover;
  border: 0px rgba(255,255,255,.08);
  background:none;
}

/* name + Nyx gradient */
.masthead-merged .site-name h1 {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  line-height: 0.80;
  margin-bottom: 12px;
}
.nyx{
  background:linear-gradient(135deg,#fefbff 0%, #c9b2ff 40%, #7f5bff 90%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* tagline / quote line */
.tagline{
  margin:0;
  color:var(--muted);
  font-size: clamp(0.80rem, 1vw, 1rem);
  line-height: 1.3;

  /* glass effect */
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;

  background: rgba(15,15,22,.18);
backdrop-filter: blur(4px);
border: 1px solid rgba(255,255,255,.06);

}

/* nav below the quote */
.nav-inline{
  padding-top: 30px;
  margin-top:auto;
}
.nav-inline .btn-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}


/* =========================
 *   Sparkles Layer
 * ========================= */
#sparkle-container{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:999;
  overflow:hidden;
  mix-blend-mode:lighten;
  opacity:.25;
}

/* individual sparkle */
.sparkle{
  position:absolute;
  width:3px;
  height:3px;
  border-radius:999px;
  background:radial-gradient(circle, #fff, rgba(255,255,255,0));
  box-shadow:
    0 0 6px rgba(255,255,255,0.9),
    0 0 10px rgba(165,139,255,0.9);
  opacity:0;
  transform:translate3d(0,0,0);
  animation:sparkle-float 4s ease-in-out infinite;
}

@keyframes sparkle-float{
  0%{
    opacity:0;
    transform:translate3d(0,0,0) scale(.6);
  }
  10%{
    opacity:1;
  }
  50%{
    opacity:.8;
    transform:translate3d(8px,-10px,0) scale(1);
  }
  90%{
    opacity:0;
    transform:translate3d(16px,-6px,0) scale(.7);
  }
  100%{
    opacity:0;
  }
}

/* =========================
 *   Content area base
 * ========================= */

.site-main{
  margin:0 auto calc(var(--grid)*3);
  width:94%;
  max-width:var(--maxw);
}

.content-grid{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(0, 1.4fr);
  gap:calc(var(--grid)*2);
  align-items:start;
}

.content-card{
  margin:calc(var(--grid)*2) auto;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:var(--shadow);
}
.content-card .main{
  max-width:75ch;
  margin:0 auto;
  font-size:15.6px;
  line-height:1.9;
  color:#dedef0;
}

/* =========================
 *   Footer
 * ========================= */
.site-footer{
  margin:calc(var(--grid)*3) auto 0;
  padding:18px 24px 22px;
  width:94%;
  max-width:var(--maxw);
  text-align:center;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.06);
  background:radial-gradient(180% 160% at 100% 0%, rgba(165,139,255,.06), transparent 55%) var(--card);
  box-shadow:var(--shadow);
  font-size:13px;
  color:var(--muted);
}

/* =========================
 *   Corner dancing gif
 * ========================= */

.corner-gif{
  position:fixed;
  bottom:14px;
  right:14px;
  z-index:999;
  display:block;
  width:100px;
  height:auto;
  background:none !important;      /* kill underline background */
}

.corner-gif:hover{
  background-size:0 0 !important;  /* prevent link underline */
}

.corner-gif img{
  display:block;
  width:100%;
  height:auto;
  animation:bob 3s ease-in-out infinite;
  transition:transform .25s ease;
}

.corner-gif:hover img{
  transform:scale(2.15);
}

@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

/* =========================
 *   Home layout: main + sidebar
 * ========================= */

.home-grid{
  width:94%;
  max-width:var(--maxw);
  margin:calc(var(--grid)*2) auto;
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(0,1.1fr);
  gap:calc(var(--grid)*2);
  align-items:flex-start;
}

.home-main{
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*2);
}

.home-sidebar{
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*1.5);
}


/* cards used in main + sidebar */
.panel-card{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.06);
  background:var(--card);
  box-shadow:var(--shadow);
  padding:18px 20px;
}

.sidebar-card{
  padding:14px 16px;
}

.panel-card h2,
.panel-card h3{
  margin:0 0 8px;
  font-size:17px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#f1f1ff;
}
/* Accent headers (Home + About) */
.home-main .panel-card h2,
.about-main .panel-card h2{
  color: var(--accent);
}

.home-sidebar .panel-card h3,
.about-sidebar .panel-card h3{
  color: var(--accent);
}

.panel-card p{
  margin:0 0 10px;
  font-size:14px;
  color:#dedef0;
}

/* what’s new list + pills */
.whats-new-list{
  list-style:none;
  margin:0;
  padding:0;
}

.whats-new-list li{
  font-size:13px;
  margin-bottom:6px;
}

.whats-new-list li:last-child{
  margin-bottom:0;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(18,18,26,.96);
  font-size:11px;
  color:var(--muted);
  margin-right:6px;
}

/* poll list */
.poll-options{
  margin:6px 0 0;
  padding-left:18px;
  font-size:13px;
  color:#d7d7ea;
}

/* responsive collapse for home */
@media (max-width:900px){
  .home-grid{
    grid-template-columns:1fr;
  }
}
/* picture glow */
.highlight-image {
  box-shadow:
    0 0 14px rgba(165,139,255,.35),
    0 8px 20px rgba(0,0,0,.35);
}
/* Auto-tiling image group for sidebar panels */
/* Base: single-image behavior (full width, normal block flow) */
.sidebar-gallery {
  column-count: 1;
  column-width: auto;
  column-gap: 10px;
}

.sidebar-gallery:has(> img:nth-child(3)) {
  column-count: auto;
  column-width: 140px; /* tweak 120–180px */
}

/* Your images inside the gallery */
.sidebar-gallery .highlight-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

  margin: 0 0 15px;

  break-inside: avoid;
  -webkit-column-break-inside: avoid;

}

/* Items */
.sidebar-photo{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;

  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  object-fit: cover;

  margin: 0 0 10px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
/* video embed for my right panel */
.video-embed {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow:
    0 0 14px rgba(165,139,255,.25),
    0 6px 16px rgba(0,0,0,.35);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
 * Highlight of the Month
 * ========================= */

.highlight-month .highlight-content{
}

/* Float image so text wraps right, then continues underneath */
.highlight-image{
  float: left;
  width: 180px;              /* make bigger/smaller here */
  height: auto;
  margin: 0 16px 12px 0;     /* space to the right + bottom */
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  object-fit: cover;
  display: block;
  box-shadow:
    0 0 14px rgba(165,139,255,.35),
    0 8px 20px rgba(0,0,0,.35);
}

/* Clear float so the panel-card contains the floated image */
.highlight-month .highlight-content::after{
  content:"";
  display:block;
  clear:both;
}

/* Mobile: turn off float so it stacks clean */
@media (max-width: 600px){
  .highlight-image{
    float: none;
    width: 100%;
    margin: 0 0 12px 0;
  }
}


.highlight-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent); /* accent color */
}

/* info text sits tight under title */
.highlight-subtext {
  margin: 2px 0 6px;   /* tight under title */
  font-size: 11px;
  opacity: .85;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: 0.85;       /* faded but readable */
}

/* body text spacing */
.highlight-text p {
  margin-top: 6px;
  font-size: 14px;
  color: #dedef0;
}
/* --- Highlight typography --- */
.highlight-month .highlight-title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}

.highlight-month .highlight-subtext{
  margin: 0;              /* directly under title */
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .85;
  line-height: 1.2;
}

.highlight-month .highlight-text p{
  margin: 7px 0 0;         /* body paragraph spacing */
}
.highlight-month-pill{
  margin-left: 3px;
  padding: 2px 8px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  background: rgba(18,18,26,.8);
  vertical-align: middle;
}

/* =========================
 *   ABOUT PAGE LAYOUT
 *   (Twitter-style profile merged with site aesthetic)
 * ========================= */

/* wrapper for the About page layout */
.about-profile-shell{
  width:94%;
  max-width:var(--maxw);
  margin:calc(var(--grid)*2) auto calc(var(--grid)*3);
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*2);
}

/* the main top card (profile) */
.about-profile-card{
  position:relative;
  padding:0 0 16px;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:var(--card-strong);
  box-shadow:var(--shadow);
}

/* mini-banner inside the profile card */
.about-banner{
  height:120px;
  width:100%;
  border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  background-image:url('../img/lainloop2.gif');  /*  header image here */
  background-size:cover;
  background-position:center;
}

/* avatar + name row overlapping the banner */
.about-profile-header-row{
  display:flex;
  align-items:flex-end;
  gap:16px;
  padding:0 18px;
  margin-top:-34px;
}

.about-header-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.about-name{
  margin:0;
  font-size:30px;
  letter-spacing:.04em;
}

.about-handle{
  margin:0;
  font-size:14px;
  color:var(--muted);
}

/* bio text under the header row */
.about-bio{
  margin:10px 18px 4px;
  font-size:14px;
  color:#dedeee;
}

/* row containing meta + nav */
.about-meta-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  padding:4px 18px 12px;
}

/* meta info on left (location, email) */
.about-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:0;
  list-style:none;
  font-size:13px;
  color:var(--muted);
}

.about-meta a{
  color:var(--accent);
  background:none;
  text-decoration:none;
}

.about-meta a:hover{
  text-decoration:underline;
  background:none;
}

/* nav on the right (inside profile card) */
.about-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* lower grid: info cards instead of tweets */
.about-grid{
  display:grid;
  grid-template-columns:minmax(0, 2fr) minmax(0, 1.2fr);
  gap:calc(var(--grid)*2);
}

.about-link-list{
  list-style:none;
  margin:0 0 6px;
  padding:0;
  font-size:14px;
}

.about-link-list li{
  margin-bottom:6px;
}

.about-link-list li:last-child{
  margin-bottom:0;
}

.about-contact-notes{
  margin-top:10px;
  font-size:9px;
  color:var(--muted);
}

/* responsive for About page */
@media (max-width:900px){
  .about-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .about-meta-row{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* stack for pfp + decoration */
.about-avatar-stack{
  position:relative;
  width:80px;
  height:80px;
  flex-shrink:0;
}

/* base avatar */
.about-avatar{
  width:100%;
  height:100%;
  border-radius:999px;
  border:3px solid var(--card-strong);
  object-fit:cover;
  display:block;
  position:relative;
  z-index:1;
}

/* overlay decoration */
.about-avatar-deco{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  z-index:2;
}

/* shared pill-style links/buttons */
.pill-link,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(20,20,30,.85);
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--text);
  box-shadow:var(--shadow);
  transition:transform .15s ease, border-color .2s ease, background-color .2s ease;
  text-decoration:none;
}

.pill-link:hover,
.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(165,139,255,.28);
}

.pill-link:active,
.btn:active{ transform:translateY(0); }

/* Make home nav buttons match About page nav pills */
.nav-inline .btn-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.about-main{
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*2);
}

.about-sidebar{
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*1.5);
}
/* ===== ABOUT / INTERESTS STYLING ===== */

/* ===== ICONS ===== */
.about-top4{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.about-top4 li{
  display:flex;
  align-items:center;
  gap:10px;
}

.about-top4 img{
  width:26px;
  height:26px;
  object-fit:contain;
}

/* section headers like Music / Games / Shows */
.about-interest-block h3 {
  color: var(--nyx-purple);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

/* Top 4 list */
.about-top4 {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0.75rem 0;
}

.about-top4 li {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

/* smaller "also into" text */
.about-sublist {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.45;
  margin: 0.2rem 0 0.6rem 0;
}

/* spacing between interest blocks */
.about-interest-block {
  margin-bottom: 1.25rem;
}

/* About page paragraphs breathing room */
.about-main p {
  margin-bottom: 0.9rem;
}

/* =========================
 * Blog (hybrid) test styles
 * ========================= */

.blog-shell{
  width:94%;
  max-width:var(--maxw);
  margin:calc(var(--grid)*2) auto calc(var(--grid)*3);
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*2);
}

.blog-top{ padding:18px 20px; }

.blog-top-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.blog-title{ margin:0 0 6px; font-size:20px; letter-spacing:.04em; }
.blog-subtitle{ margin:0; color:var(--muted); font-size:13px; }

.blog-nav{ display:flex; flex-wrap:wrap; gap:8px; }
.blog-controls{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.blog-search{
  flex:1 1 240px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,10,16,.60);
  color:var(--text);
  outline:none;
}

.blog-tags{ display:flex; flex-wrap:wrap; gap:8px; }

.blog-tag{
  cursor:pointer;
  user-select:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(20,20,30,.60);
  font-size:12px;
  color:var(--text);
}

.blog-tag.is-active{
  border-color:rgba(165,139,255,.35);
  box-shadow:0 0 0 2px rgba(165,139,255,.20);
}

.blog-grid{
  display:grid;
  grid-template-columns:minmax(0, 2.2fr) minmax(0, 1fr);
  gap:calc(var(--grid)*2);
  align-items:start;
}

.blog-output{
  display:flex;
  flex-direction:column;
  gap:calc(var(--grid)*2);
}

.blog-post{
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.06);
  background:var(--card);
  box-shadow:var(--shadow);
  padding:18px 20px;
}

.blog-post h2{ margin:0 0 6px; font-size:16px; letter-spacing:.04em; }

.blog-post .meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin-bottom:10px;
}

.blog-post .readmore{
  display:inline-flex;
  margin-top:10px;
}

.blog-archive{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
}

.blog-postnav{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.blog-postnav-links{
  display:flex;
  gap:8px;
}

@media (max-width: 900px){
  .blog-grid{ grid-template-columns:1fr; }
}
/* Archive tree */
.blog-page .blog-archive-tree{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
}

.blog-page .archive-year,
.blog-page .archive-month{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(20,20,30,.35);
  padding:8px 10px;
}

.blog-page .archive-year > summary,
.blog-page .archive-month > summary{
  cursor:pointer;
  user-select:none;
  list-style:none;
  color:var(--text);
  font-weight:600;
}

.blog-page .archive-year > summary::-webkit-details-marker,
.blog-page .archive-month > summary::-webkit-details-marker{
  display:none;
}

.blog-page .archive-year > summary::before{
  content:"▸ ";
  color:var(--muted);
}
.blog-page .archive-year[open] > summary::before{
  content:"▾ ";
}

.blog-page .archive-month{
  margin-top:8px;
  background:rgba(10,10,16,.30);
}

.blog-page .archive-month > summary{
  font-weight:500;
  color:#dedef0;
}

.blog-page .archive-posts{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.blog-page .archive-posts a{
  background:none;
  color:var(--accent);
}
/* =========================
 * Blog masthead
 * ========================= */

.blog-page .blog-masthead{
  position:relative;
  height:160px;
  overflow:hidden;
  border-radius:var(--radius-lg);
 background-image:
  linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
  radial-gradient(600px 220px at 80% 0%, rgba(165,139,255,.08), transparent 60%),
  url("../img/lainvhs.gif");
  background-size:cover;
  background-position:center;
  box-shadow:var(--shadow);
}

.blog-page .blog-masthead-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px 22px;
}

.blog-page .blog-masthead-title{
  margin:0;
  font-size:22px;
  letter-spacing:.05em;
}

.blog-page .blog-masthead-subtitle{
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted);
}
/* Make blog masthead text match index header identity */

.blog-page .blog-masthead-title{
  margin:0;
  font-size:clamp(28px, 4.5vw, 40px); /* matches index scale */
  letter-spacing:.04em;
  font-weight:700;
  line-height:1.1;

  background:none;
-webkit-text-fill-color:initial;
color:#f1f1ff;
}

.blog-page .blog-masthead-subtitle{
  margin:6px 0 0;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  max-width:60ch; /* keeps it from feeling too wide */
}
/* =========================
   Mobile 
   ========================= */
@media (max-width: 520px) {
  .masthead-merged .site-name h1 {
    letter-spacing: -0.02em;
  }

  .masthead-merged .tagline {
    opacity: 0.9;
  }
}
/* ===== Masthead mobile overflow fix ===== */
.identity,
.site-name { 
  min-width: 0;            /* allows flex items to shrink instead of overflowing */
}

.masthead-merged .site-name h1,
.masthead-merged .tagline {
  overflow-wrap: anywhere; /* allows breaking long strings */
  word-break: break-word;
}

@media (max-width: 520px){
  .masthead-merged .site-name h1{
    font-size: clamp(20px, 6.5vw, 28px);
    letter-spacing: .02em;
  }

  .masthead-merged .tagline{
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.3;
  }
}
@media (max-width: 520px){
  /* let the name column shrink properly in a flex row */
  .about-header-text{ min-width: 0; }

  /* make the name look intentional on wrap */
  .about-name{
    font-size: clamp(22px, 8vw, 30px);
    line-height: 1.05;
    letter-spacing: .02em;
    text-wrap: balance;       /* nice if supported */
  }
}
/* =========================
   Arcana & Astrology Panel
   ========================= */

.arcana-cosmic-panel {
  position: relative;
}


/* On smaller screens, stack them so they don’t get tiny/weird */
@media (max-width: 500px){
}

/* =========================
   Arcana split layout
   ========================= */

.arcana-img{
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 16px rgba(165,139,255,.22),
    0 8px 20px rgba(0,0,0,.45);
}

.arcana-title{
  font-size: 14px !important;
  letter-spacing: .04em;
  margin: 0 !important;
}

.arcana-sub{
  font-style: italic !important;
  font-size: 11px !important;
  color: var(--muted) !important;
  opacity: .75 !important;
  letter-spacing: .04em;
  margin: 0 0 2px !important;
}

  .arcana-cards{
    flex-direction: row;
    justify-content: center;
  }

  .arcana-img{
    max-width: 115px;
  }
}
/* Pair each card with its text cleanly */
.arcana-info{
  display: flex;
  flex-direction: column;
  gap: 18px; /* matches card spacing */
  padding-top: 2px; /* tiny nudge down */
}

.arcana-block{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Divider between identity + reflection */
.arcana-divider{
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 14px 0 10px;
}

/* Bottom-centered info */
.arcana-footer{
  text-align: center;
}

.arcana-footer .astro-inline{
  margin: 6px 0 8px;
}

.arcana-footer .arcana-desc{
  margin: 0;
  padding-top: 6px;
  border: none; /* divider already handled above */
}
/* Pair each card with its matching text by row */
.arcana-paired{
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-auto-rows: auto;
  column-gap: 14px;
  row-gap: 10px; /* matches the spacing between the two cards */
  align-items: start;
}

.arcana-paired .arcana-img{
  width: 100%;
  height: auto;
  display: block;
}

.arcana-paired .arcana-block{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px; /* tiny nudge so title aligns nicer with card top */
}
.arcana-namegrad{
  background: linear-gradient(135deg,#fefbff 0%, #c9b2ff 40%, #7f5bff 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.arcana-meaning{
  margin: 2px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.5;
  color: #dedef0 !Important;
  opacity: .92;
}
.arcana-footer{
  text-align: center;
  padding-top: 2px;
}

.arcana-footer::before{
  content: "☉ Libra  ·  ☽ Pisces  ·  ↑ Scorpio";
  display: block;
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(165,139,255,.75);
  margin-bottom: 6px;
  opacity: .9;
}

/* Shrine */

.shrine-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.35),
      rgba(0,0,0,.75)
    ),
    url("../img/brs.gif");
  background-size: cover;
  background-position: center;
}

.character-page {
  padding: 24px;
}

.page-title {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.85;
}

.section-title {
  margin: 26px 0 12px;
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

/* ===== Featured Top 3 ===== */
.featured-characters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: visible; /* important so popup can extend */
}

.featured-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.featured-media img {
  display: block;
  width: 100%;
  height: 240px;          /* keeps them big but not huge */
  object-fit: cover;
}

/* hover popup */
.profile-pop {
  position: absolute;
  left: 10px;
  top: 10px;
  width: min(320px, 90vw);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.featured-card:hover .profile-pop,
.featured-card:focus-within .profile-pop {
  opacity: 1;
  transform: translateY(0);
}

.profile-inner {
  border-radius: 12px;
  padding: 12px;
  background: rgba(10,10,14,.78);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
}

.profile-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(165,139,255,.22); /* your purple glow */
  opacity: 0.8;
}

.profile-pfp {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  float: left;
  margin-right: 10px;
}

.profile-head {
  min-height: 56px;
}

.profile-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}

.profile-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.8;
}

.profile-blurb {
  clear: both;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.95;
}

/* ===== Wall (no popups) ===== */
.character-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
}

.wall-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

/* modest size variance */
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }

/* cap how massive any tile can get on wide screens */
@media (min-width: 900px) {
  .character-wall {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  }
}

/* ===== Info list ===== */
.character-index {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.char-info {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  padding: 12px;
}

.char-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.char-pfp {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
}

.char-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.char-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.8;
}

.char-blurb {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.95;
}

/* mobile */
@media (max-width: 720px) {
  .featured-characters {
    grid-template-columns: 1fr;
  }
  .featured-media img {
    height: 210px;
  }
  .profile-pop {
    width: min(320px, 92vw);
  }
}
.character-notes {
  margin-top: 24px;
  max-width: 760px;
}

.character-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.character-list li {
  border-left: 2px solid rgba(165,139,255,.35);
  padding-left: 12px;
}

.char-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.char-meta {
  display: block;
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 2px;
}

.char-note {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.95;
}
.shrine-hero { margin-bottom: 16px; }
.shrine-subtitle { margin-top: 6px; opacity: .85; }
.shrine-nav { margin-top: 12px; }
