/* ================================================
   alithefool // untitled site
   styles.css
   ================================================ */

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- FONTS --- */
/* Neuropol and Poxel should be placed in /fonts/ */
@font-face {
    font-family: 'Neuropol';
    src: url('fonts/Neuropol.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poxel';
    src: url('fonts/poxel-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- VARIABLES --- */
:root {
    --sky:        #87CEEB;
    --sky-dark:   #5aabce;
    --sky-pale:   #d8edf8;
    --navy:       #1a3a5c;
    --navy-mid:   #2a5a7a;
    --navy-light: #6aaaca;
    --white:      #ffffff;
    --offwhite:   #f5fbff;
    --content-bg: #f0f8ff;
    --border-in:  #87CEEB;
    --text:       #223344;
    --text-dim:   #4a7a9a;
    --red:        #cc2200;

    --font-head:  'Neuropol', 'Trebuchet MS', sans-serif;
    --font-pixel: 'Poxel', 'Courier New', monospace;
    --font-body:  'Trebuchet MS', Arial, sans-serif;

    --site-width: 680px;
}

/* --- PAGE BACKGROUND + CRT EFFECT --- */
body {
    background-color: #4a8aaa;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
    background-size: 16px 16px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 20px 0;
    min-height: 100vh;
    position: relative;
}

/* CRT scanlines over the whole page background */

/* CRT scanlines + vignette — behind the site window only */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.10) 2px,
        rgba(0, 0, 0, 0.10) 4px
    );
    pointer-events: none;
    z-index: 0;
}

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

/* site window sits above the background effects */
.site-window {
    width: var(--site-width);
    border: 3px outset #b8d8ee;
    background: var(--content-bg);
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

/* ================================================
   BANNER
   ================================================ */
.banner {
    background: var(--sky);
    border-bottom: 3px inset var(--sky-dark);
    padding: 14px 16px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 3px,
        rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
    );
    pointer-events: none;
}

.banner-title {
    position: relative;
    z-index: 1;
}

.banner-title .handle {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--navy);
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.45);
    display: block;
}

.banner-title .subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    color: var(--navy-mid);
    letter-spacing: 2px;
    margin-top: 5px;
    display: block;
}

.banner-meta {
    position: relative;
    z-index: 1;
    text-align: right;
    font-size: 9px;
    color: var(--navy-mid);
    line-height: 1.9;
}

/* ================================================
   NAV
   ================================================ */
.nav-bar {
    background: var(--navy-mid);
    border-bottom: 2px inset var(--navy);
    display: flex;
    flex-wrap: wrap;
}

.nav-bar a {
    display: block;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: bold;
    font-family: var(--font-body);
    color: #cce8ff;
    text-decoration: none;
    border-right: 1px solid var(--navy);
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}

.nav-bar a:hover,
.nav-bar a.active {
    background: var(--sky);
    color: var(--navy);
}

/* ================================================
   TICKER
   ================================================ */
.ticker-strip {
    background: var(--navy);
    border-bottom: 1px solid var(--navy-mid);
    padding: 3px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-block;
    font-size: 9px;
    font-family: var(--font-pixel);
    color: var(--sky);
    letter-spacing: 1.5px;
    animation: ticker 24s linear infinite;
}

@keyframes ticker {
    from { transform: translateX(120%); }
    to   { transform: translateX(-120%); }
}

/* ================================================
   MAIN LAYOUT
   ================================================ */
.main-layout {
    display: flex;
    align-items: flex-start;
}

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar {
    width: 155px;
    flex-shrink: 0;
    background: var(--sky-pale);
    border-right: 2px inset var(--sky);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sb-box {
    background: var(--white);
    border: 2px inset var(--sky);
}

.sb-title {
    font-size: 9px;
    font-weight: bold;
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--sky);
    padding: 2px 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
}

.sb-inner {
    padding: 6px;
}

/* avatar */
.avatar-wrap {
    text-align: center;
    padding: 8px 6px 6px;
}

.avatar-frame {
    width: 72px;
    height: 72px;
    border: 2px inset var(--sky);
    margin: 0 auto 5px;
    background: var(--navy-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    position: relative;
    overflow: hidden;
}

.avatar-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 2px,
        rgba(135,206,235,0.1) 2px, rgba(135,206,235,0.1) 4px
    );
    pointer-events: none;
}

.avatar-name {
    font-size: 11px;
    font-weight: bold;
    font-family: var(--font-head);
    color: var(--navy);
    letter-spacing: 1px;
}

.avatar-loc  { font-size: 9px; color: var(--text-dim); margin-top: 1px; }
.online-dot  {
    font-size: 9px;
    color: #00aa44;
    margin-top: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* nav links */
.sb-links a {
    display: block;
    font-size: 10px;
    color: var(--navy);
    text-decoration: none;
    padding: 2px 0;
    border-bottom: 1px dotted #b0d8f0;
}

.sb-links a::before  { content: "▸ "; color: var(--sky); font-size: 8px; }
.sb-links a:hover    { color: var(--red); text-decoration: underline; }

/* now widget */
.now-item { margin-bottom: 5px; }
.now-item:last-child { margin-bottom: 0; }
.now-lbl  { font-size: 8px; color: var(--sky-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.now-val  { font-size: 10px; color: var(--navy); font-weight: bold; }

/* stamps */
.stamp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.stamp {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.2;
    border: 1px solid;
    cursor: default;
    font-family: var(--font-body);
}

.stamp-blue   { background: #1a3a5c; color: #87CEEB; border-color: #87CEEB; }
.stamp-blue2  { background: #1a3a5c; color: #aaddff; border-color: #5aabce; }
.stamp-gold   { background: #2a2010; color: #ffcc66; border-color: #aa8830; }
.stamp-purple { background: #1e1028; color: #cc99ff; border-color: #7744aa; }
.stamp-green  { background: #102218; color: #88ffbb; border-color: #44aa77; }
.stamp-red    { background: #281010; color: #ff9999; border-color: #aa5555; }

.blink-bar { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.blinkie {
    height: 12px;
    font-size: 7px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    line-height: 12px;
    border: 1px solid;
    font-family: var(--font-pixel);
}

.blinkie-1 { background:#1a3a5c; color:#87CEEB; border-color:#87CEEB; animation: blink 1.1s step-end infinite; }
.blinkie-2 { background:#2a1a00; color:#ffcc44; border-color:#996600; animation: blink 1.4s step-end infinite 0.7s; }

@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* counter wrap */
.counter-wrap  { text-align: center; }
.counter-label { font-size: 8px; color: var(--text-dim); margin-bottom: 3px; }

/* ================================================
   CONTENT AREA
   ================================================ */
.content-area {
    flex: 1;
    background: var(--offwhite);
    min-height: 440px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c-header {
    border-bottom: 2px solid var(--sky);
    padding-bottom: 3px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.c-header h2 {
    font-size: 13px;
    color: var(--navy);
    font-weight: bold;
    font-family: var(--font-head);
    letter-spacing: 1px;
}

.c-header span {
    font-size: 8px;
    color: var(--sky-dark);
    letter-spacing: 0.5px;
}

.entry-box {
    background: var(--white);
    border: 1px inset #b0d8f0;
    padding: 9px;
}

.entry-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--navy);
    border-bottom: 1px dotted var(--sky);
    padding-bottom: 3px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-body);
}

.entry-date  { font-size: 8px; color: var(--sky-dark); font-weight: normal; }

.entry-body {
    font-size: 11px;
    color: var(--text);
    line-height: 1.75;
}

.entry-body strong { color: var(--navy-mid); }
.entry-body a      { color: var(--navy); }
.entry-body a:hover { color: var(--red); }

.section-rule {
    border: none;
    border-top: 1px solid #c8e4f4;
    margin: 2px 0;
}

/* currently grid */
.currently-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--sky);
    border: 1px solid var(--sky);
}

.curr-cell   { background: var(--white); padding: 6px 8px; }
.curr-lbl    { font-size: 8px; color: var(--sky-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.curr-val    { font-size: 10px; color: var(--navy); font-weight: bold; margin-top: 2px; }

/* on this day widget */
.otd-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--navy);
    line-height: 1.4;
    margin: 4px 0 2px;
}

.otd-meta {
    font-size: 9px;
    color: var(--text-dim);
    line-height: 1.4;
}

.otd-age {
    font-size: 8px;
    color: var(--sky-dark);
    margin-top: 3px;
    font-family: var(--font-pixel);
    letter-spacing: 0.5px;
}

/* post tags */
.entry-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 8px;
    font-family: var(--font-pixel);
    letter-spacing: 1px;
    padding: 1px 5px;
    border: 1px solid var(--sky-dark);
    background: var(--navy);
    color: var(--sky);
    text-transform: lowercase;
}

.tag-film      { border-color: #aa5555; background: #280f0f; color: #ffaaaa; }
.tag-book      { border-color: #7744aa; background: #1a0f28; color: #cc99ff; }
.tag-photo     { border-color: #5aabce; background: #0f1f2e; color: #aaddff; }
.tag-crt       { border-color: #44aa77; background: #0f2218; color: #88ffbb; }
.tag-games     { border-color: #aa8830; background: #201800; color: #ffcc66; }
.tag-software  { border-color: #5aabce; background: #0a1628; color: #87CEEB; }
.tag-misc      { border-color: var(--navy-mid); background: var(--navy); color: var(--navy-light); }

/* updates list — kept for sidebar use if needed */
.updates     { list-style: none; }

.updates li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 3px 0;
    border-bottom: 1px dotted #c8e8f8;
    font-size: 10px;
    color: var(--text);
}

.upd-date    { font-size: 8px; color: var(--sky-dark); min-width: 50px; flex-shrink: 0; }

.new-badge {
    font-size: 7px;
    font-weight: bold;
    color: var(--red);
    flex-shrink: 0;
    animation: blink 0.9s step-end infinite;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--navy);
    border-top: 2px inset var(--navy-mid);
    padding: 7px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-txt {
    font-size: 8px;
    color: var(--navy-light);
    line-height: 1.7;
}

.webring {
    font-size: 9px;
    color: var(--navy-light);
    display: flex;
    gap: 5px;
    align-items: center;
}

.webring a {
    color: var(--sky);
    text-decoration: none;
}

.webring a:hover { text-decoration: underline; }

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 700px) {
    body {
        padding: 0;
        background-size: 16px 16px;
    }

    .site-window {
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .banner {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .banner-meta { text-align: left; }

    .banner-title .handle { font-size: 20px; }

    .main-layout { flex-direction: column; }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px inset var(--sky);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sb-box      { flex: 1 1 140px; }

    .avatar-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .avatar-frame { margin: 0; flex-shrink: 0; }

    .content-area { min-height: unset; }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
