/* Swiss International Style - Inspired by Josef Müller-Brockmann */

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

:root {
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-red: #e63329;
    --color-blue: #2d4a8c;
    --color-yellow: #f4c542;
    --color-gray: #f5f5f5;
    --color-gray-dark: #888;
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --max-width: 1000px;
    --grid-gap: 2rem;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography - Bold, clean, hierarchical */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: none;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header - Strong horizontal line */
.site-header {
    padding: 1.5rem 2rem;
    border-bottom: 4px solid var(--color-black);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Hero - Asymmetric, bold */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: end;
    margin-bottom: 6rem;
    min-height: 50vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: 0;
    width: 40%;
    height: 80%;
    background: var(--color-red);
    z-index: -1;
}

.hero h1 {
    grid-column: 1 / -1;
}

.tagline {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--color-red);
    flex-shrink: 0;
}

.section-header.blue::before {
    background: var(--color-blue);
}

.section-header.yellow::before {
    background: var(--color-yellow);
}

/* Recent Notes - Grid layout */
.recent-notes {
    margin-bottom: 6rem;
}

.notes-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.note-item {
    border-left: 4px solid var(--color-black);
    padding-left: 1.5rem;
    transition: border-color 0.2s ease;
}

.note-item:hover {
    border-color: var(--color-red);
}

.note-item a {
    display: block;
}

.note-item time {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
}

.note-item h3 {
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.note-item:hover h3 {
    color: var(--color-red);
}

.note-item p {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
}

.view-all,
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-black);
    transition: color 0.2s ease;
}

.view-all:hover,
.read-more:hover {
    color: var(--color-red);
}

/* About Preview - Geometric accent */
.about-preview {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--grid-gap);
    padding: 3rem;
    background: var(--color-gray);
    position: relative;
}

.about-preview::before {
    content: '';
    width: 100px;
    height: 100px;
    background: var(--color-blue);
}

.about-preview-content {
    max-width: 500px;
}

.about-preview h2 {
    margin-bottom: 1rem;
}

.about-preview p {
    color: var(--color-gray-dark);
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    border-top: 4px solid var(--color-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-weight: 500;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--color-red);
}

/* Page Styles */
.page-header {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 4px solid var(--color-black);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    width: 60px;
    height: 60px;
    background: var(--color-red);
    z-index: -1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content */
.content {
    max-width: 600px;
}

.content p {
    margin-bottom: 1.5rem;
}

.content h2 {
    margin-top: 3rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--color-red);
}

.content a {
    color: var(--color-red);
    font-weight: 500;
}

.content a:hover {
    text-decoration: underline;
}

/* Notes Page List */
.notes-list.full-list {
    display: block;
}

.notes-list.full-list .note-item {
    padding: 2rem 0 2rem 1.5rem;
    border-bottom: 1px solid var(--color-gray);
}

/* Book List */
.book-list {
    list-style: none;
}

.book-item {
    display: grid;
    grid-template-columns: 8px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-gray);
}

.book-item::before {
    content: '';
    width: 8px;
    height: 100%;
    background: var(--color-black);
    transition: background 0.2s ease;
}

.book-item:hover::before {
    background: var(--color-red);
}

.book-item h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.book-author {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    margin-bottom: 0.75rem;
}

.book-item p:last-child {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin-bottom: 0;
}

/* Reading List */
.reading-list {
    list-style: none;
}

.reading-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-gray);
    position: relative;
}

.reading-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--color-yellow);
    transition: background 0.2s ease;
}

.reading-item:nth-child(3n+2)::before {
    background: var(--color-blue);
}

.reading-item:nth-child(3n)::before {
    background: var(--color-red);
}

.reading-item a {
    display: block;
}

.reading-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: var(--color-black);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
}

.reading-item h3 {
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.reading-item:hover h3 {
    color: var(--color-red);
}

.reading-item p {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin-bottom: 0;
}

/* Reading List Compact (Homepage) */
.recent-reading {
    margin-bottom: 6rem;
}

.reading-list-compact {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.reading-item-compact {
    background: var(--color-gray);
    padding: 1.5rem;
    transition: background 0.2s ease;
}

.reading-item-compact:hover {
    background: var(--color-blue);
}

.reading-item-compact:hover .reading-source {
    background: var(--color-white);
    color: var(--color-black);
}

.reading-item-compact:hover h3 {
    color: var(--color-white);
}

.reading-item-compact a {
    display: block;
}

.reading-item-compact .reading-source {
    margin-bottom: 0.75rem;
}

.reading-item-compact h3 {
    font-size: 1rem;
    transition: color 0.2s ease;
}

@media (max-width: 768px) {
    .reading-list-compact {
        grid-template-columns: 1fr;
    }
}

/* Contact Form - Clean, functional */
.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 500px;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--color-black);
    background: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    justify-self: start;
    padding: 1rem 2.5rem;
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero::before {
        width: 60%;
        height: 60%;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .about-preview {
        grid-template-columns: 1fr;
    }

    .about-preview::before {
        width: 60px;
        height: 60px;
    }

    .notes-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .site-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2rem;
    }
}
