/* Intentional Simplicity Theme 
   A minimalist, Japandi inspired approach to the CSS Zen Garden.
*/

/* Reset n Base Variables */
:root {
    --bg-color: #f7f5f0; /* Soft warm off white */
    --text-color: #2c2c2c; /* Soft black */
    --accent-color: #8c8c8c;
    --font-main: "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Layout Borrowing grid concepts for an editorial feel */
.page-wrapper {
    max-width: 900px;
    margin: 10vh auto;
    padding: 0 5vw;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 4rem;
}

/* Typography n Hierarchy */
header {
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: 5vh;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

header h2 {
    font-size: 1rem;
    font-weight: 300;
    color: var(--accent-color);
    letter-spacing: 1px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Links */
a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--bg-color);
    background-color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
}

/* Specific Section Styling */
.summary {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 300;
}

.preamble {
    grid-column: 2 / 3;
}

.main {
    grid-column: 2 / 3;
}

/* Sidebar Styling Using absolute positioning concepts for clean offset */
.sidebar {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
    font-size: 0.85rem;
}

.sidebar .wrapper {
    position: sticky;
    top: 10vh;
}

.sidebar h3 {
    font-size: 0.8rem;
    margin-top: 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

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

.sidebar li {
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10vh;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.8rem;
    color: var(--accent-color);
}