:root {
    --color-primary: #000000;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

.gh-site {
    max-width: 100%;
}

.gh-outer {
    padding: 0 4vw;
}

@media (max-width: 1024px) {
    .gh-outer {
        padding: 0 2rem !important;
    }
}

.gh-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.gh-head {
    padding: 2rem 0;
    background: #000000;
}

.gh-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.gh-head-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.gh-head-logo a {
    color: #ffffff;
    text-decoration: none;
}

.gh-head-menu {
    flex: 1;
}

.gh-head-menu .nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.gh-head-menu .nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.gh-head-menu .nav a:hover {
    opacity: 0.8;
}

.gh-main {
    padding: 4rem 0;
}

.gh-topic {
    margin-bottom: 5rem;
}

.gh-topic-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.gh-topic-name a {
    color: var(--color-text);
    text-decoration: none;
}

.gh-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    grid-column: 1 / -1;
}

.gh-topic-grid .gh-topic-name,
.gh-topic-grid .gh-topic-footer {
    grid-column: 1 / -1;
}

.gh-topic-grid .gh-topic-content {
    display: contents;
}

.gh-card {
    display: flex;
    flex-direction: column;
}

.gh-card.large {
    grid-column: span 2;
}

.gh-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.gh-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gh-card-link:hover .gh-card-image img {
    transform: scale(1.05);
}

.gh-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gh-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.gh-card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.gh-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.gh-card-date::before {
    content: "•";
    margin: 0 0.5rem;
}

.gh-topic-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gh-topic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.gh-topic-link:hover {
    opacity: 0.9;
}

.gh-topic-link svg {
    width: 16px;
    height: 16px;
}

.gh-topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.gh-topic-minimal .gh-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.gh-topic-minimal .gh-topic-name {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    border: none;
}

.gh-topic-minimal .gh-topic-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.gh-topic-minimal .gh-card {
    margin-bottom: 1rem;
}

.gh-topic-minimal .gh-card-title {
    font-size: 1rem;
}

.gh-article {
    max-width: 800px;
    margin: 0 auto;
}

.gh-article-header {
    margin-bottom: 3rem;
}

.gh-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gh-article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-light);
}

.gh-article-image {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.gh-article-image img {
    width: 100%;
    height: auto;
}

.gh-article-content {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    line-height: 1.8;
}

.gh-article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.gh-article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

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

.gh-article-content ul,
.gh-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.gh-article-content li {
    margin-bottom: 0.5rem;
}

.gh-article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.gh-article-content code {
    background: var(--color-bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.gh-article-content pre {
    background: var(--color-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.gh-article-content pre code {
    background: none;
    padding: 0;
}

.gh-foot {
    padding: 3rem 0;
    background: #000000;
    margin-top: 5rem;
}

.gh-foot-inner {
    text-align: center;
}

.gh-copyright {
    color: #ffffff;
    font-size: 0.875rem;
}

.gh-copyright a {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .gh-outer {
        padding: 0 1.5rem !important;
    }

    .gh-head-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .gh-head-menu .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .gh-topic-grid {
        grid-template-columns: 1fr;
    }

    .gh-card.large {
        grid-column: span 1;
    }

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

    .gh-article {
        padding: 0 1rem;
    }

    .gh-article-title {
        font-size: 2rem;
    }

    .gh-article-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gh-outer {
        padding: 0 1.25rem !important;
    }

    .gh-main {
        padding: 2rem 0;
    }

    .gh-article {
        padding: 0;
    }

    .gh-article-image {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem);
        max-width: calc(100% + 2.5rem);
        border-radius: 0;
    }

    .gh-article-content img {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        width: calc(100% + 2.5rem);
        max-width: calc(100% + 2.5rem);
        border-radius: 0;
    }
}
