/* CSS Zen Garden Bauhaus */

:root {
    /* Bauhaus color palette */
    --paper-white: #f4f4f0;
    --ink-black: #1a1a1a;
    --bauhaus-red: #da291c;
    --bauhaus-blue: #0033a0;
    --bauhaus-yellow: #ffc72c;
    
    /* sansserif fonts */
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    /* Structural variables */
    --border-thick: 4px solid var(--ink-black);
    --border-thin: 1px solid var(--ink-black);
}

/* Reset n Base Architecture */

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

body {
    background-color: var(--paper-white);
    color: var(--ink-black);
    font-family: var(--font-primary);
    line-height: 1.6;
    /* Keeps the layout centered and readable */
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* Typography Hierarchy */

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink-black);
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    /* Thick borders to separate logical sections */
    border-bottom: var(--border-thick);
    padding-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 65ch; /* reading width */
}

/* Links act as structural blocks on hover */
a {
    color: var(--ink-black);
    text-decoration: none;
    border-bottom: 2px solid var(--bauhaus-red);
    transition: background-color 0.2s, color 0.2s;
}

a:hover {
    background-color: var(--bauhaus-red);
    color: var(--paper-white);
}

abbr {
    text-decoration: none;
    font-weight: bold;
}

/* Grid Layout (The structural foundation) */

.page-wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Framing the site */
    border: var(--border-thick);
    padding: 2rem;
    background-color: var(--paper-white);
    position: relative;
    z-index: 10;
}

@media (min-width: 900px) {
    .page-wrapper {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: 
            "intro sidebar"
            "main sidebar";
        padding: 4rem;
    }
}

/* Content Areas */

.intro {
    grid-area: intro;
}

.main {
    grid-area: main;
    display: grid;
    gap: 3rem;
}

/* Sidebar Navigation */

.sidebar {
    grid-area: sidebar;
    background-color: var(--ink-black);
    color: var(--paper-white);
    padding: 2rem;
}

.sidebar h3 {
    color: var(--paper-white);
    border-bottom: 4px solid var(--paper-white);
}

.sidebar a {
    color: var(--paper-white);
    border-bottom: 1px solid var(--text-secondary);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.sidebar a:hover {
    background-color: var(--bauhaus-yellow);
    color: var(--ink-black);
}

.sidebar ul {
    list-style: none;
    margin-bottom: 3rem;
}

.designer-name {
    font-size: 0.85rem;
    color: #cccccc !important;
    border: none !important;
}

/* Footer */

footer {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: var(--border-thick);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

footer a {
    padding: 0.5rem 1rem;
    background-color: var(--ink-black);
    color: var(--paper-white);
    border: none;
    text-transform: uppercase;
    font-weight: bold;
}

footer a:hover {
    background-color: var(--bauhaus-blue);
}

/* primary shapes Circle Square Line*/

.extra1 {
    /* The Red Circle */
    position: fixed;
    top: 5%;
    right: 5%;
    width: 20vw;
    height: 20vw;
    background-color: var(--bauhaus-red);
    border-radius: 50%;
    z-index: 1;
}

.extra2 {
    /* The Blue Square */
    position: fixed;
    bottom: 10%;
    left: 2%;
    width: 15vw;
    height: 15vw;
    background-color: var(--bauhaus-blue);
    z-index: 1;
}

.extra3 {
    /* The Yellow Structural Line */
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3vh;
    background-color: var(--bauhaus-yellow);
    z-index: 1;
}

/* Hide the unused extra divs */
.extra4, .extra5, .extra6 {
    display: none;
}