/*
|--------------------------------------------------------------------------
| 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);
    font-size: 18px;
}

body {
    line-height: 1.65;
}
/* -------------------------------------------------
   Base Typography Scale
------------------------------------------------- */

html {
    font-size: 18px;
}

body {
    line-height: 1.65;
}

/* -------------------------------------------------
   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;
    flex-wrap: wrap;
    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;
    line-height: 1.2;
    margin-bottom: 10px;
}

h2 {
    color: var(--h2);
    font-size: 1.8rem;
    line-height: 1.25;
    margin-top: 40px;
}

h3 {
    color: var(--h3);
    font-size: 1.35rem;
    line-height: 1.3;
}

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

ul {
    margin-top: 20px;
    padding-left: 1.4rem;
}

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

/* -------------------------------------------------
   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 / Media
------------------------------------------------- */
main img,
main video,
main iframe {
    max-width: 100%;
    height: auto;
}

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

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

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

/* -------------------------------------------------
   Embedded Video
------------------------------------------------- */
.video-embed {
    margin: 1.5rem 0;
}

.video-embed iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
}

/* -------------------------------------------------
   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;
}

/* -------------------------------------------------
   Mobile
------------------------------------------------- */
@media (max-width: 768px) {
    html,
    body {
        font-size: 19px;
    }

    nav ul {
        gap: 12px;
        padding: 12px 16px;
    }

    main {
        padding: 20px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p,
    li {
        font-size: 1rem;
    }
}
/* -------------------------------------------------
   Mobile Improvements
------------------------------------------------- */

@media (max-width: 768px) {

    html {
        font-size: 19px;
    }

    main {
        padding: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }

}
