:root {
    --ink: #1f2a1f;
    --ink-soft: #4a5547;
    --muted: #7a7f72;
    --green: #2f5d3a;
    --green-soft: #dfe8d3;
    --cream: #fbf7ee;
    --paper: #f3ecdc;
    --terra: #c2603a;
    --mustard: #f2c14e;
    --line: #e2d9c4;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(31, 42, 31, .06), 0 8px 24px rgba(31, 42, 31, .06);
    --sans: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.35; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(1120px, 100% - 40px); margin: 0 auto; }
.container.narrow { width: min(760px, 100% - 40px); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 238, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -7px; left: 0; }
.nav-toggle-bar::after { top: 7px; left: 0; }

.section { padding: 88px 0; }
.section-tint { background: var(--paper); }
#main > section.section:nth-of-type(even) { background: var(--paper); }

.preview-banner {
    position: sticky; top: 0; z-index: 60; margin: 0; padding: 10px 20px; text-align: center;
    background: var(--mustard); color: var(--ink); font-weight: 700; font-size: .92rem;
}
.preview-banner + .site-header { top: 41px; }
.page { padding-top: 56px; min-height: 60vh; }
.eyebrow {
    font-size: .78rem; letter-spacing: .18em; font-weight: 700; color: var(--terra); margin-bottom: .6em;
}
.section-lead, .lead { font-size: 1.1rem; color: var(--ink-soft); }
.prose { white-space: pre-line; }
.muted { color: var(--muted); }
.sub-title { margin-top: 48px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.more-link { font-weight: 500; text-decoration: none; white-space: nowrap; }
.more-link::after { content: " →"; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700;
    text-decoration: none; border: 1.5px solid var(--green); color: var(--green); background: transparent;
    cursor: pointer; font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #264d30; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }

.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-tagline { font-size: 1.15rem; color: var(--ink-soft); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-media .hero-main { grid-row: span 2; aspect-ratio: 4 / 5; }
.hero-media .hero-sub { aspect-ratio: 1 / 1; }
.hero-media .hero-sub:nth-of-type(n + 4) { display: none; }

.next-market {
    margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
    background: #fff; border-left: 5px solid var(--mustard); box-shadow: var(--shadow); max-width: 30em;
}
.next-label { font-size: .8rem; font-weight: 700; color: var(--terra); margin: 0 0 4px; letter-spacing: .08em; }
.next-title { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.next-meta { margin: 4px 0 0; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px; }

.card-grid { display: grid; gap: 22px; margin-top: 32px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
    color: inherit; text-decoration: none; display: flex; flex-direction: column;
}
.role-card { padding: 26px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-soft); }
.media-card .card-body { padding: 20px 22px 24px; }
.media-card:hover h3, .media-card:hover .card-title { color: var(--green); }
.media-card.is-ended img { filter: grayscale(.6); opacity: .8; }
.card-kicker { font-size: .88rem; color: var(--muted); margin-bottom: .3em; }
.card-title { font-size: 1.15rem; }

.badge {
    display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    margin-bottom: 10px;
}
.badge-accent { background: var(--mustard); color: var(--ink); }
.badge-muted { background: #e6e2d8; color: var(--muted); }

.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 32px; }
.profile-grid.compact { grid-template-columns: repeat(4, 1fr); }
.profile { text-align: center; }
.avatar {
    width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.avatar-initial {
    background: var(--green-soft); color: var(--green); font-family: var(--serif);
    font-size: 2.4rem; font-weight: 700;
}
.profile h3 { margin-bottom: .2em; }
.profile-role { color: var(--terra); font-size: .92rem; margin-bottom: .4em; }
.profile-desc { color: var(--ink-soft); font-size: .95rem; }

.poster-grid {
    list-style: none; padding: 0; margin: 32px 0 0;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.poster-grid a { display: block; text-decoration: none; color: inherit; }
.poster-grid img, .poster-fallback {
    width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #fff;
    box-shadow: var(--shadow);
}
.poster-fallback {
    display: flex; align-items: center; justify-content: center; font-family: var(--serif);
    font-size: 1.3rem; color: var(--green);
}
.poster-caption { display: flex; justify-content: space-between; gap: 6px; font-size: .85rem; margin-top: 8px; color: var(--ink-soft); }

.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 26px 28px; }
.timeline > li::before {
    content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--terra);
}
.timeline-year { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.timeline ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); }

.rule-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.rule-list li {
    display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; background: #fff;
    border-radius: 10px; box-shadow: var(--shadow);
}

.calendar-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.calendar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-nav h3 { margin: 0; font-size: 1.25rem; }
.calendar-nav a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; text-decoration: none; background: var(--green-soft); font-weight: 700;
}
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th { font-size: .85rem; padding: 8px 0; color: var(--ink-soft); }
.calendar td {
    height: 92px; vertical-align: top; padding: 6px; border-top: 1px solid var(--line); font-size: .85rem;
}
.calendar .sun .day-num, .calendar th.sun { color: var(--terra); }
.calendar .sat .day-num, .calendar th.sat { color: #3d6fa8; }
.calendar td.blank { background: #fcfaf5; }
.calendar td.today { background: #fff7dc; }
.day-num { font-weight: 700; }
.today-label {
    margin-left: 4px; font-size: .7rem; background: var(--mustard); padding: 1px 6px; border-radius: 999px;
}
.chip {
    display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px; font-size: .75rem;
    line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-market { background: var(--green-soft); color: var(--green); }
.chip-event { background: #f6dccf; color: #8a3b1c; }

.month-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.month-list li { background: #fff; border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow); border-left: 4px solid var(--green); }
.month-list li.is-event { border-left-color: var(--terra); }
.month-list p { margin: 0; }
.entry-date { font-size: .85rem; color: var(--muted); }
.entry-title { font-weight: 700; }
.entry-meta { font-size: .9rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; }
.entry-summary { font-size: .9rem; margin-top: 4px !important; }

.breadcrumb { font-size: .9rem; margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a::before { content: "← "; }
.detail-image { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.back-link { margin-top: 40px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: start; }
.project-poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.info-list { display: grid; grid-template-columns: 64px 1fr; gap: 8px 16px; margin: 24px 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; display: flex; flex-direction: column; }
.notice { background: #efeadf; padding: 12px 16px; border-radius: 10px; color: var(--ink-soft); }
.project-info .prose { margin-top: 32px; }
.error-page { text-align: center; padding-top: 120px; }

.site-footer { background: var(--ink); color: #d8dccf; padding: 56px 0 32px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .3em; }
.footer-tagline { color: #b6bcab; }
.footer-contact { display: grid; grid-template-columns: 56px 1fr; gap: 6px 14px; margin: 0; }
.footer-contact dt { color: #9aa290; }
.footer-contact dd { margin: 0; }
.footer-bottom { border-top: 1px solid #39443a; margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #9aa290; }
.footer-bottom p { margin: 0 0 4px; }

@media (max-width: 960px) {
    .hero-grid, .calendar-layout, .project-detail, .footer-grid { grid-template-columns: 1fr; }
    .card-grid.three, .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .profile-grid, .profile-grid.compact { grid-template-columns: repeat(3, 1fr); }
    .poster-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .section { padding: 64px 0; }
    .hero { padding-top: 32px; }
    .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
    .profile-grid, .profile-grid.compact { grid-template-columns: repeat(2, 1fr); }
    .poster-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .calendar { padding: 12px 8px; }
    .calendar td { height: 64px; padding: 4px 2px; }
    .chip { font-size: 0; height: 6px; padding: 0; margin-top: 6px; }
}
