:root {
    --font-family-base: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --color-text: #333;
    --color-primary: #007bff;
    --color-background: #fff;
    --color-border: #eaeaea;
    --container-width: 800px;
}

/* Basic Reset & Typography */
body {
    font-family: var(--font-family-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1em;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.main-nav a {
    margin-left: 20px;
    font-weight: 500;
    color: #555;
}

.main-nav a.active {
    color: var(--color-primary);
}

/* Main Content */
.site-main {
    padding: 40px 0;
}

.hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-top: 0;
}

.hero p {
    font-size: 1.2rem;
    color: #777;
}

/* Post List */
.post-preview {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.post-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-preview h2 a {
    color: var(--color-text);
}

.post-preview h2 a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    color: #555;
}

.read-more {
    font-weight: 700;
}

/* Single Post */
.post-header {
    margin-bottom: 40px;
}
.post-title {
    font-size: 3rem;
    margin-top: 0;
}
.post-meta {
    color: #777;
    font-size: 0.9rem;
}
.post-content a {
    text-decoration: underline;
}
.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: #555;
}
.post-content code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.post-content pre {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #777;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .site-header .container, .site-footer .container {
        flex-direction: column;
    }
    .site-header .container {
        gap: 20px;
    }
    .site-footer .container {
        gap: 10px;
    }
    h1 { font-size: 2.2rem; }
    .hero h1, .post-title { font-size: 2.5rem; }
}

/* Form Styling */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
}
