/* ================================================
   demonic.corvid — home page
   adapted from the Periwinkle template by NomnomNami
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Delius&display=swap');
@font-face {
    font-family: 'Fantaisie Artistique';
    src: url('../assets/fonts/FantaisieArtistique.otf') format('opentype'),
         url('../assets/fonts/FantaisieArtistique.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink:            #142338;
    --ink-deep:       #0B1626;
    --parchment:      #F7E9C9;
    --parchment-deep: #EFD9A6;
    --blood:          #C41E2A;
    --blood-deep:     #6E1420;
    --wisp:           #86A9BE;
    --wisp-bright:    #B9D3E2;
    --gold:           #D8B25C;
    --ink-soft:       #3B4A5E;
    --radius: .6em;
    --radius-lg: 1.2em;
}

* { box-sizing: border-box; font-family: 'Delius', Verdana, Geneva, Tahoma, sans-serif; }

body {
    margin: 0;
    padding: 2.5em 1em;
    background: var(--ink-deep);
    color: var(--ink);
    display: flex;
    justify-content: center;
}

p { line-height: 1.6em; }

h1 {
    font-family: 'Fantaisie Artistique', 'Delius', cursive;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: .5px;
    font-size: 2em;
    color: var(--parchment);
    margin: 0 0 .2em;
}
h2, h3 { font-weight: 700; }

/* ============ LINKS — fixed: no more default purple/underline ============ */
a {
    color: var(--wisp);
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
a:visited { color: var(--wisp); }
a:hover, a:visited:hover {
    color: var(--blood);
    text-decoration: underline;
}

.page-frame {
    width: 100%;
    max-width: 1100px;
    background-color: var(--parchment);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
    position: relative;
}

/* ============ CELESTIAL HEADER BAND ============ */
.site-head {
    position: relative;
    background: linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 75%);
    text-align: center;
    padding: 2.2em 1em 1.6em;
    overflow: hidden;
}
.starfield { position: absolute; inset: 0; opacity: .8; }
.starfield circle { fill: var(--wisp-bright); }
.constellation-line { stroke: var(--gold); stroke-width: 1; opacity: .35; }

.brand { position: relative; display: inline-flex; align-items: center; gap: .8em; text-decoration: none; z-index: 2; }
.brand-mark {
    width: 66px; height: 66px; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--gold);
}
.brand-title {
    font-family: 'Fantaisie Artistique', 'Delius', cursive;
    font-weight: 400;
    font-synthesis: none;
    font-size: 2.1em;
    color: var(--parchment);
    letter-spacing: 1px;
}
.brand-title .dot { color: var(--blood); }
.brand-sub {
    position: relative; z-index: 2;
    color: var(--wisp);
    font-size: .85em;
    letter-spacing: 2px;
    margin-top: .3em;
}

.phase-divider {
    display: flex; align-items: center; justify-content: center; gap: .5em;
    padding: .4em 0 .9em; position: relative; z-index: 2;
}
.phase-divider .rule { height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.phase-divider .moon { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: inset 4px -1px 0 0 var(--ink); }
.phase-divider.footer-phase { padding: .1em 0 .7em; }

/* ============ SPARKLE + RAVEN DIVIDERS ============ */
.sparkle-divider, .raven-divider {
    display: flex; align-items: center; justify-content: center; gap: .6em;
    margin: 1.3em 0;
}
.sparkle-divider .rule, .raven-divider .rule {
    height: 1px; width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sparkle-icon { width: 16px; height: 16px; fill: var(--blood); }
.raven-icon { width: 26px; height: 26px; fill: var(--ink-soft); opacity: .85; }

/* ============ MENU ============ */
.menu-strip {
    background-color: var(--ink);
    border-bottom: 3px double var(--gold);
    display: flex; justify-content: center; padding: .3em 1em .8em;
}
.menu-list { display: flex; align-items: center; justify-content: center; list-style: none; margin: 0; padding: 0; gap: .1em; flex-wrap: wrap; }
.menu-list > li { position: relative; }
.menu-list > li > a {
    display: block; padding: .6em 1.05em; color: var(--parchment);
    font-weight: 700; text-decoration: none; border-radius: var(--radius);
    letter-spacing: .3px;
}
.menu-list > li > a:hover { color: var(--ink); background-color: var(--gold); }
.menu-list a:visited { color: var(--parchment); }
.has-dropdown .dropdown {
    display: none; position: absolute; top: 100%; left: 0; flex-direction: column;
    background-color: var(--parchment); border: 2px solid var(--blood-deep); border-radius: var(--radius);
    min-width: 210px; padding: .3em 0; z-index: 10; list-style: none; margin: 0;
}
.has-dropdown:hover .dropdown { display: flex; }
.dropdown li a { display: block; padding: .5em 1em; color: var(--ink); text-decoration: none; font-weight: 500; }
.dropdown li a:visited { color: var(--ink); }
.dropdown li a:hover { color: var(--blood); background-color: var(--parchment-deep); text-decoration: none; }

/* ============ LAYOUT ============ */
#content { display: flex; padding: 1.8em; align-items: flex-start; gap: 0; }

#sidebar { min-width: 250px; max-width: 250px; }

.sidebar-panel {
    background: var(--ink);
    color: var(--parchment);
    border: 3px double var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.2em 1.1em;
    margin-bottom: .8em;
}
.sidebar-panel a { color: var(--wisp-bright); }
.sidebar-panel a:visited { color: var(--wisp-bright); }
.sidebar-panel a:hover { color: var(--gold); }

.charm-frame {
    position: relative;
    width: 180px; margin: 0 auto 1em;
    padding-top: 16px;
}
.charm-frame svg { position: absolute; top: 0; left: 0; width: 100%; height: 22px; }
.charm-frame .avatar-circle {
    position: relative; width: 100%; aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}
.charm-frame .avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }

#bio p { margin: .8em 0; font-size: .9rem; }

/* socials, now its own panel */
.socials-panel { padding: 1em 1.1em; }
.socials-panel .panel-label {
    font-size: .7em; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold); margin: 0 0 .6em; text-align: center;
}
.small-box { font-size: .82rem; line-height: 1.7rem; }
.small-box ul { margin: 0; padding: 0; }
.small-box li { list-style: none; padding-left: 1em; position: relative; }
.small-box li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .7em; line-height: 1.7rem; }

.center { text-align: center; }
.small-text { font-size: .75rem; color: var(--ink-soft); }
.small-text a { color: var(--ink-soft); font-weight: 500; }
.small-text a:hover { color: var(--blood); }

main { padding: 0 0 0 1.8em; flex: 1 1 auto; min-width: 0; }

#top {
    position: relative;
    background-color: var(--ink);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1.4em 1.6em;
    color: var(--parchment);
    overflow: hidden;
    margin-bottom: 1.2em;
}
#top a { color: var(--wisp-bright); }
#top a:visited { color: var(--wisp-bright); }
#top a:hover { color: var(--gold); }
#top .corner-stars { position: absolute; top: 0; right: 0; width: 140px; height: 140px; opacity: .6; }
#top .img-right { float: right; margin: 0 0 .6em .8em; position: relative; z-index: 2; }
/* bigger again — was capped at 120px, back up to something closer to the original size */
#top .img-right img { max-width: 220px; width: 100%; border-radius: var(--radius); }
#top h1 { position: relative; z-index: 2; }
#top p { position: relative; z-index: 2; }
#top .lede { color: var(--wisp-bright); font-style: italic; }

.things-list {
    list-style: none; margin: 1em 0 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .3em .8em;
}
.things-list li { padding-left: 1.2em; position: relative; font-size: .92em; }
.things-list li::before { content: "✧"; position: absolute; left: 0; color: var(--gold); }

.spotlight {
    display: flex; gap: 1.1em; align-items: center;
    background: var(--parchment-deep);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 1em 1.3em;
    margin-bottom: 1.2em;
    position: relative;
}
.spotlight img {
    /* no more circle/border — just the image, softly rounded to match the rest of the site */
    width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius);
    flex-shrink: 0;
}
.spotlight-label {
    font-size: .7em; letter-spacing: 1.5px; color: var(--ink-soft);
    text-transform: uppercase; margin: 0 0 .2em;
}
.spotlight h3 {
    margin: 0 0 .3em; color: var(--blood-deep);
    font-family: 'Fantaisie Artistique', 'Delius', cursive;
    font-size: 1.4em; font-weight: 400;
    font-synthesis: none;
    letter-spacing: .5px;
}
.spotlight h3 a { color: var(--blood-deep); }
.spotlight h3 a:hover { color: var(--blood); }
.spotlight p { margin: 0; font-size: .9em; }

.post-feed {
    max-height: 640px;
    overflow-y: auto;
    padding-right: .5em;
}
.post-feed::-webkit-scrollbar { width: 8px; }
.post-feed::-webkit-scrollbar-track { background: var(--parchment-deep); border-radius: 4px; }
.post-feed::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

article.post {
    background-color: var(--parchment-deep);
    padding: 1.1em 1.3em;
    border: 1px solid var(--ink-soft);
    border-radius: var(--radius);
    margin-bottom: 1em;
    box-shadow: 3px 4px 0 rgba(20,35,56,.18);
    position: relative;
}
article.post::before {
    content: "";
    position: absolute; top: -1px; left: 18px; width: 26px; height: 10px;
    background: var(--blood); border-radius: 0 0 6px 6px;
}
.post-header {
    color: var(--ink-soft); font-weight: 700; padding: .3rem 0 .6rem;
    border-bottom: 3px double var(--ink-soft); margin-bottom: .6em;
    display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
}
.timestamp { font-weight: 500; font-size: smaller; }

.readmore summary { font-weight: 700; color: var(--blood-deep); list-style: none; cursor: pointer; }
.readmore summary::-webkit-details-marker { display: none; }
.readmore summary::before { content: "☾ "; }

footer {
    text-align: center; font-size: .85rem; font-weight: 700;
    padding: 1em; background: var(--ink); color: var(--parchment);
    letter-spacing: .5px;
}
footer a { color: var(--wisp-bright); }
footer a:hover { color: var(--gold); }

@media only screen and (max-width: 800px) {
    #content { flex-wrap: wrap; padding: 1em; }
    #sidebar { max-width: 100%; margin: 0 0 1em; }
    main { padding: 0; }
    .things-list { grid-template-columns: 1fr; }
}
