/*
Theme Name: KH24 Theme
Description: Lightweight presentation theme for the KoreanHub24 clean rebuild.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: kh24-theme
*/

:root {
    --kh24-background: #f6f7f9;
    --kh24-surface: #ffffff;
    --kh24-text: #172033;
    --kh24-muted: #5d6677;
    --kh24-accent: #1f5fbf;
    --kh24-border: #dfe3e8;
    --kh24-width: 72rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--kh24-background);
    color: var(--kh24-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--kh24-accent);
}

.kh24-container {
    width: min(calc(100% - 2rem), var(--kh24-width));
    margin-inline: auto;
}

.site-header,
.site-footer {
    background: var(--kh24-surface);
}

.site-header {
    border-bottom: 1px solid var(--kh24-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-main {
    min-height: 60vh;
    padding-block: 2.5rem;
}

.entry {
    margin-bottom: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--kh24-border);
    border-radius: 0.75rem;
    background: var(--kh24-surface);
}

.entry-title {
    margin-top: 0;
    line-height: 1.25;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-media img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    padding-block: 1.5rem;
    border-top: 1px solid var(--kh24-border);
    color: var(--kh24-muted);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 0.5rem;
    left: 0.5rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    clip: auto;
    background: var(--kh24-surface);
}

@media (max-width: 48rem) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }
}
