@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================================
   TOKENS
   ========================================================== */
:root {
    /* type + motion (shared) */
    --font-display: 'Press Start 2P', ui-monospace, monospace;
    --font-body: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --transition: 0.5s ease;

    /* DARK (default) */
    color-scheme: dark;
    --bg: #0b0e1a;
    --bg-alt: #111530;
    --panel: #151a35;
    --panel-border: #2c3563;
    --text: #dfe3ff;
    --text-dim: #8b91c4;
    --heading: #fdf6d8;
    --accent: #f3e6a8;
    --link: #8fd3ff;
    --link-hover: #ffe37a;
    --hover-bg: rgba(255, 255, 255, 0.06);
    --glow: 0 0 12px rgba(243, 230, 168, 0.5);
    --online: #5ee38a;
    --offline: #e06565;
    --selection: rgba(143, 211, 255, 0.28);
}

/* ==========================================================
   CENTERED WELCOME PANEL
   ========================================================== */
.page {
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);   /* single column, no empty sidebar space */
    grid-template-rows: auto 1fr;            /* header on top, main fills the rest */
}

main {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;       /* vertical center */
    justify-content: center;   /* horizontal center */
}

.welcome-blurb {
    width: 100%;
    max-width: 640px;
    margin-bottom: 0;
    text-align: center;
}
.welcome-blurb h2 { justify-content: center; }
.welcome-blurb p { margin-left: auto; margin-right: auto; }

/* LIGHT: the same blue-indigo family as dark, flipped to daytime */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef1ff;
    --bg-alt: #e2e7fb;
    --panel: #ffffff;
    --panel-border: #b9c3f0;
    --text: #181c40;
    --text-dim: #5b6299;
    --heading: #2a2f8f;
    --accent: #e0a100;
    --link: #1f5fd6;
    --link-hover: #c2410c;
    --hover-bg: rgba(42, 47, 143, 0.07);
    --glow: none;
    --online: #178a4a;
    --offline: #c0392b;
    --selection: rgba(42, 47, 143, 0.18);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    overflow-x: clip;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); color: var(--text); }

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color var(--transition);
}
a:hover { color: var(--link-hover); }

:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 36px;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

main { min-width: 0; }

header.hero {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 0 30px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--panel-border);
}
header.hero .site-title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--heading);
    text-shadow: var(--glow);
    margin-bottom: 10px;
}
header.hero nav { font-size: 13px; color: var(--text-dim); }
header.hero nav a { margin: 0 8px; border: none; }
header.hero nav a:hover { text-decoration: underline; }

/* ==========================================================
   WELCOME PANEL: centered horizontally, right below the header
   ========================================================== */
.page {
    grid-template-columns: minmax(0, 1fr);   /* single column */
    grid-template-rows: auto auto;           /* header, then main, no stretching */
    align-content: start;                    /* keep everything at the top */
}

main {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;     /* horizontal center only */
    align-items: flex-start;     /* sits at the top, next to the header */
    padding-top: 10px;
}

.welcome-blurb {
    width: 100%;
    max-width: 920px;            /* same width as your header/page container */
    margin-bottom: 0;
}

/* ==========================================================
   PANELS
   ========================================================== */
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 28px;
}
.panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    color: var(--heading);
}
.panel h2::before {
    content: '';
    width: 8px;
    height: 8px;
    flex: none;
    background: var(--accent);
}

.welcome-blurb p { margin-bottom: 12px; max-width: 68ch; }
.welcome-blurb .stamp { font-size: 12px; font-style: italic; color: var(--text-dim); }

ul.facts { list-style: none; margin-top: 14px; }
ul.facts li { position: relative; padding: 6px 0 6px 20px; font-size: 14px; }
ul.facts li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

/* ==========================================================
   BLOG LIST
   ========================================================== */
ul.bloglist { list-style: none; }
ul.bloglist li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--panel-border);

    
}
ul.bloglist li:last-child { border-bottom: none; }
ul.bloglist .date { font-size: 12px; color: var(--text-dim); white-space: nowrap; }

/* ==========================================================
   STATUS + SIDEBAR
   ========================================================== */
.statusbar { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-dim); }
.statusbar .dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 6px var(--online);
}

aside.stars { align-self: start; }
aside.stars .panel { margin-bottom: 20px; }

ul.starlinks { list-style: none; }
ul.starlinks li { margin-bottom: 4px; }
ul.starlinks a {
    display: block;
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
ul.starlinks a:hover { background: var(--hover-bg); color: var(--link-hover); }
ul.starlinks a::before { content: '> '; color: var(--accent); }

.online-widget {
    text-align: center;
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--text-dim);
}
.online-widget .status { display: block; margin-top: 8px; font-size: 13px; color: var(--online); }
.online-widget .status-on  { color: var(--online); }
.online-widget .status-off { color: var(--offline); }

/* ==========================================================
   BADGES + FOOTER
   ========================================================== */
.badge-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}
.badge-88x31 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 31px;
    padding: 2px;
    background: var(--bg-alt);
    border: 1px solid var(--panel-border);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 7px;
    line-height: 1.2;
    text-align: center;
    color: var(--text-dim);
    transition: color var(--transition), border-color var(--transition);
}
.badge-88x31:hover { color: var(--accent); border-color: var(--accent); }

footer.pagefoot {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed var(--panel-border);
    font-size: 11px;
    color: var(--text-dim);
}

/* ==========================================================
   THEME TOGGLE
   ========================================================== */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--panel-border);
    border-radius: 50%;
    background: var(--panel);
    color: var(--text-dim);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.theme-toggle:hover { color: var(--link-hover); border-color: var(--link-hover); }
.theme-toggle:active { transform: scale(0.94); }

html[data-theme="light"] .moon-icon { display: none; }
html:not([data-theme="light"]) .sun-icon { display: none; }

/* ==========================================================
   THEME TRANSITION
   A circle of the new theme grows outward from the toggle button.
   The radius is animated from theme.js; this CSS just turns off the
   default cross-fade and keeps the new layer on top.
   ========================================================== */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ==========================================================
   RESPONSIVE + REDUCED MOTION
   ========================================================== */
@media (max-width: 720px) {
    .page { grid-template-columns: minmax(0, 1fr); padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


body {
    transition: background 0.4s ease, color 0.4s ease;
}

/* SPACER */

.spacer {
  height: 10px;
}