:root {
    --wood-brown: #5D4037;
    --roof-tile: #37474F;
    --courtyard: #BDBDBD;
    --paper-door: #FFF8E1;
    --pillar-red: #B71C1C;
    --sky: #E3F2FD;
    --wood-light: #8D6E63;
    --wood-dark: #3E2723;
    --eaves-shadow: rgba(55, 71, 79, 0.3);
    --font-kr: 'Nanum Myeongjo', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-kr); color: var(--wood-dark); background: var(--paper-door); line-height: 1.8; overflow-x: hidden; }

.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--wood-brown); border-bottom: 3px solid var(--pillar-red); transition: all 0.3s ease; }
.header.scrolled { box-shadow: 0 4px 20px var(--eaves-shadow); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--paper-door); text-decoration: none; letter-spacing: 0.1em; }
.logo-accent { color: var(--pillar-red); background: var(--paper-door); padding: 0.1rem 0.4rem; margin-left: 0.3rem; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { color: var(--paper-door); text-decoration: none; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; position: relative; padding: 0.3rem 0; transition: color 0.3s ease; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--pillar-red); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 28px; height: 3px; background: var(--paper-door); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

main { padding-top: 4.5rem; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: var(--sky); overflow: hidden; }
.hero-roof { position: absolute; top: 0; left: -5%; width: 110%; height: 180px; background: var(--roof-tile); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 10px 40px var(--eaves-shadow); }
.hero-roof::before { content: ''; position: absolute; bottom: -15px; left: 5%; width: 90%; height: 15px; background: var(--wood-brown); border-radius: 0 0 40% 40%; }
.hero-roof::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 40px; background: var(--pillar-red); clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.hero-pillars { position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; display: flex; justify-content: space-around; align-items: flex-end; pointer-events: none; }
.pillar { width: 30px; background: linear-gradient(180deg, var(--pillar-red) 0%, var(--wood-brown) 100%); border-radius: 3px 3px 0 0; opacity: 0.2; }
.pillar:nth-child(1) { height: 55%; }
.pillar:nth-child(2) { height: 70%; }
.pillar:nth-child(3) { height: 80%; }
.pillar:nth-child(4) { height: 70%; }
.pillar:nth-child(5) { height: 55%; }
.hero-content { text-align: center; position: relative; z-index: 10; padding: 2rem; }
.hero-subtitle { font-size: 0.9rem; color: var(--wood-brown); letter-spacing: 0.3em; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: var(--wood-dark); margin-bottom: 1.5rem; letter-spacing: 0.15em; }
.hero-title span { color: var(--pillar-red); }
.hero-desc { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--wood-light); max-width: 550px; margin: 0 auto; }

.section { padding: 6rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--wood-dark); }
.section-title-line { display: block; width: 60px; height: 3px; background: var(--pillar-red); margin: 1rem auto; }

.boards-section { background: white; }
.boards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.board-card { background: var(--paper-door); border: 1px solid rgba(93, 64, 55, 0.1); padding: 2rem; position: relative; transition: all 0.3s ease; }
.board-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--pillar-red); transform: scaleY(0); transition: transform 0.4s ease; transform-origin: top; }
.board-card:hover::before { transform: scaleY(1); }
.board-card:hover { box-shadow: 0 8px 25px rgba(93, 64, 55, 0.1); }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--wood-brown); margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(93, 64, 55, 0.15); }
.board-list { list-style: none; }
.board-list li { padding: 0.5rem 0; border-bottom: 1px solid rgba(93, 64, 55, 0.05); display: flex; justify-content: space-between; align-items: center; }
.board-list li a { color: var(--wood-dark); text-decoration: none; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; transition: color 0.3s ease; }
.board-list li a:hover { color: var(--pillar-red); }
.post-date { font-size: 0.75rem; color: var(--wood-light); }
.card-more { display: inline-block; margin-top: 1rem; color: var(--wood-brown); text-decoration: none; font-size: 0.85rem; font-weight: 700; transition: color 0.3s ease; }
.card-more:hover { color: var(--pillar-red); }

.footer { padding: 4rem 1.5rem 2rem; background: var(--wood-dark); color: var(--courtyard); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: var(--paper-door); margin-bottom: 1rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.8; color: rgba(189, 189, 189, 0.8); }
.footer-title { font-size: 1rem; font-weight: 700; color: var(--paper-door); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--courtyard); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--paper-door); }
.footer-bottom { max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(189, 189, 189, 0.2); text-align: center; font-size: 0.85rem; }

@media (max-width: 359px) { html { font-size: 13px; } }
@media (min-width: 360px) and (max-width: 767px) {
    html { font-size: 14px; }
    .nav-menu { position: fixed; top: 4.5rem; left: 0; width: 100%; background: var(--wood-brown); flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.5rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .nav-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .hamburger { display: flex; }
    .hero-roof { height: 120px; }
    .boards-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    html { font-size: 15px; }
    .nav-menu { gap: 1.2rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) and (max-width: 1279px) { html { font-size: 16px; } }
@media (min-width: 1920px) and (max-width: 2559px) { html { font-size: 17px; } }
@media (min-width: 2560px) and (max-width: 3839px) { html { font-size: 19px; } }
@media (min-width: 3840px) { html { font-size: 22px; } }
