/*
|--------------------------------------------------------------------------
| WebholeInk — Base Structural Styles
|--------------------------------------------------------------------------
| This file defines layout, spacing, typography, and structure.
| ALL colors MUST come from CSS variables.
| Theme identity lives in theme-*.css files only.
|--------------------------------------------------------------------------
*/

/* -------------------------------------------------
   Global Reset
------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--fg);
}

/* -------------------------------------------------
   Navigation
------------------------------------------------- */
nav {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* -------------------------------------------------
   Layout
------------------------------------------------- */
main {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* -------------------------------------------------
   Headings
------------------------------------------------- */
h1 {
    color: var(--h1);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    color: var(--h2);
    margin-top: 40px;
}

h3 {
    color: var(--h3);
}

/* -------------------------------------------------
   Text
------------------------------------------------- */
p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--fg);
}

ul {
    margin-top: 20px;
}

li {
    margin-bottom: 8px;
    color: var(--fg);
}

/* -------------------------------------------------
   Links
------------------------------------------------- */
a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

/* -------------------------------------------------
   Code Blocks (future-safe)
------------------------------------------------- */
pre, code {
    background: var(--code-bg);
    color: var(--code-fg);
    border-radius: 4px;
}

/* -------------------------------------------------
   Images
------------------------------------------------- */
main img {
    max-width: 640px;
    height: auto;
}

main img.small {
    max-width: 200px;
}

main img.medium {
    max-width: 400px;
}

main img.large {
    max-width: 800px;
}

/* -------------------------------------------------
   Utility (future use)
------------------------------------------------- */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}
/* ----------------------------------------------------
    Footer css
----------------------------------------------------*/
.site-footer {
    margin-top: 80px;
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer a {
    color: var(--link);
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}
