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

html {
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
}

body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

::selection {
    background-color: #7d5c5c;
    color: #ffffff;
}

::-webkit-selection {
    background-color: #7d5c5c;
    color: #ffffff;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3a3a3a;
}

.brand {
    margin-bottom: 1rem;
}

.title {
    font-size: 1.4rem;
    color: #e0e0e0;
    font-weight: 600;
    display: inline;
}

.subtitle {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-left: 0.8rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

nav a {
    color: #7d5c5c;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: #a06b6b;
}

.section {
    margin-bottom: 2rem;
    display: none;
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.section p {
    margin-bottom: 1rem;
    max-width: none;
    line-height: 1.6;
    color: #cccccc;
}

.section p.lead {
    color: #e0e0e0;
    margin-bottom: 1.3rem;
    font-weight: 500;
}

.section a {
    color: #7d5c5c;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.section a:hover {
    color: #a06b6b;
    text-decoration-thickness: 2px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.emphasis-block {
    background: #2a2a2a;
    padding: 1.2rem;
    margin: 1rem 0;
    border-left: 4px solid #7d5c5c;
}

.emphasis-block h3 {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.emphasis-block p {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #cccccc;
}

.blog-list {
    margin: 1rem 0;
}

.blog-item {
    margin-bottom: 1.3rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #3a3a3a;
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-title {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.blog-title a {
    color: #e0e0e0;
    text-decoration: none;
}

.blog-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 0.6rem;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
}

.contact-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0;
}

.contact-group h3 {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.contact-group a {
    display: block;
    color: #cccccc;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-group a:hover {
    color: #7d5c5c;
    text-decoration: underline;
}

.button-row {
    margin: 1rem 0;
}

.button-row h3 {
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.button-list img {
    height: 32px;
    width: auto;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    border-radius: 2px;
}

.button-list img:hover {
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.manifesto-block {
    background: #2a2a2a;
    padding: 1.2rem;
    margin: 1rem 0;
    border-left: 4px solid #7d5c5c;
}

.manifesto-block h3 {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.manifesto-block p {
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
    color: #cccccc;
}

.manifesto-block p:last-child {
    margin-bottom: 0;
}

footer {
    margin-top: auto;
    padding-top: min(1.618vh, 1rem);
    border-top: 1px solid #3a3a3a;
    text-align: center;
    font-size: clamp(0.7rem, 1.3vw, 0.875rem);
    color: #a0a0a0;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    .two-col,
    .contact-sections {
        grid-template-columns: 1fr;
        gap: min(3vh, 1.618rem);
    }

    nav {
        gap: min(2vw, 1rem);
    }

    .subtitle {
        display: block;
        margin-left: 0;
        margin-top: min(0.618vh, 0.309rem);
    }

    .section p,
    .section p.lead {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: min(2vh, 1rem) min(3vw, 1rem);
    }

    .two-col,
    .contact-sections {
        gap: min(2vh, 1rem);
    }
}

@media (orientation: portrait) {
    .container {
        height: auto;
        min-height: 100vh;
    }
}

@supports (height: 100dvh) and (orientation: portrait) {
    .container {
        min-height: 100dvh;
    }
}

@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #ffffff;
    }

    .title,
    .section h1,
    .emphasis-block h3,
    .manifesto-block h3,
    .contact-group h3,
    .button-row h3,
    .blog-title {
        color: #ffffff;
    }

    .section a {
        color: #00aaff;
    }

    header,
    footer,
    .blog-item {
        border-color: #666666;
    }

    .emphasis-block,
    .manifesto-block {
        background: #111111;
        border-left-color: #ffffff;
    }
}
