/* Kivoid — shared styles
   Palette
   void      #000000  absolute black, the space before time
   starlight #E8E6F0  primary text
   dust      #8F8CA3  secondary text
   nebula    #6E5FD8  faint violet glow around the horizon
   spark     #F5D58A  the one warm light: links, the orbiting spark
*/
:root {
    --void: #000000;
    --starlight: #E8E6F0;
    --dust: #8F8CA3;
    --nebula: #6E5FD8;
    --spark: #F5D58A;
    --hairline: rgba(232, 230, 240, 0.12);
    --wide: "Michroma", "Eurostile", "Arial Black", sans-serif;
    --serif: "Spectral", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--void); }

body {
    font-family: var(--serif);
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--starlight);
    background: var(--void);
    min-height: 100vh;
    overflow-x: hidden;
}

#stars {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 760px);
    margin: 0 auto;
}

a { color: var(--spark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--spark); outline-offset: 4px; border-radius: 4px; }

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--starlight);
    text-decoration: none;
    font-family: var(--wide);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}
.brand img { width: 30px; height: 30px; }
.topbar nav a {
    font-family: var(--serif);
    color: var(--dust);
    text-decoration: none;
    margin-left: 22px;
    font-size: 1rem;
}
.topbar nav a:hover { color: var(--starlight); }

/* Text sections */
h2 {
    font-family: var(--wide);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    color: var(--starlight);
}
p { color: var(--dust); max-width: 62ch; margin-bottom: 14px; }
p strong { color: var(--starlight); font-weight: 500; }

/* Inner pages */
.page-title {
    font-family: var(--wide);
    font-weight: 400;
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    letter-spacing: 0.03em;
    margin: 48px 0 8px;
}
.page-sub { margin-bottom: 36px; }
.inner h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1rem; }
.inner ul { color: var(--dust); padding-left: 22px; margin-bottom: 14px; }
.inner li { margin-bottom: 6px; }

/* Footer */
.footer {
    margin-top: 96px;
    padding: 28px 0 40px;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dust);
}
.footer nav a { color: var(--dust); text-decoration: none; margin-left: 18px; }
.footer nav a:first-child { margin-left: 0; }
.footer nav a:hover { color: var(--starlight); }

/* Ad spaces stay invisible until AdSense code is pasted in */
.ad-slot { margin: 48px auto; text-align: center; }
.ad-slot:empty { display: none; }
