.mgn-home {
    --mgn-ink: #20242a;
    --mgn-blue: #315f9f;
    --mgn-blue-soft: #edf4fc;
    --mgn-line: #dedbd3;
    --mgn-paper: #fffaf1;
    --mgn-white: #fff;
    color: var(--mgn-ink);
    background: var(--mgn-white);
    font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
    letter-spacing: -.035em;
    word-break: keep-all;
}

.mgn-home *, .mgn-home *::before, .mgn-home *::after { box-sizing: border-box; }
.mgn-home a { color: inherit; text-decoration: none; }
.mgn-container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.mgn-hero {
    position: relative;
    overflow: hidden;
    min-height: 475px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid #eee9df;
    background-color: var(--mgn-paper);
    background-image: linear-gradient(rgba(49,95,159,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(49,95,159,.055) 1px, transparent 1px);
    background-size: 28px 28px;
}

.mgn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,.92), rgba(255,250,241,.26) 55%, transparent 80%);
    z-index: 0;
}

.mgn-hero-inner { position: relative; z-index: 2; padding: 80px 0; text-align: center; }
.mgn-eyebrow { margin: 0 0 22px; color: var(--mgn-blue); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.mgn-hero h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(64px, 9vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.09em; }
.mgn-tagline { margin: 26px 0 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(22px, 3vw, 31px); letter-spacing: -.06em; }
.mgn-tagline::after { content: ""; display: block; width: 38px; height: 2px; margin: 27px auto 0; background: var(--mgn-blue); }
.mgn-intro { margin: 24px 0 0; color: #666b72; font-size: 15px; line-height: 1.8; }
.mgn-hero-stationery {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: auto;
    height: 116%;
    pointer-events: none;
    user-select: none;
}

.mgn-about { padding: 76px 0 24px; background: #fff; }
.mgn-about-inner { display: grid; grid-template-columns: 280px 1fr; gap: 70px; padding: 48px 54px; border: 1px solid var(--mgn-line); border-radius: 18px; background: var(--mgn-paper); }
.mgn-about-heading { padding-right: 34px; border-right: 1px solid var(--mgn-line); }
.mgn-about-heading p { margin: 0 0 12px; color: var(--mgn-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.mgn-about-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -.06em; }
.mgn-about-copy p { margin: 0; color: #666b72; font-size: 15px; line-height: 1.85; }
.mgn-about-copy p + p { margin-top: 18px; }
.mgn-about-copy strong { color: var(--mgn-ink); font-size: 17px; font-weight: 700; }

.mgn-events { padding: 38px 0 74px; }
.mgn-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.mgn-section-heading-center { display: block; text-align: center; }
.mgn-section-heading p { margin: 0 0 8px; color: var(--mgn-blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.mgn-section-heading h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(27px, 4vw, 38px); font-weight: 500; letter-spacing: -.06em; }
.mgn-section-heading > span { color: #777; font-size: 13px; }
.mgn-event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mgn-event-card { position: relative; min-height: 210px; padding: 25px; border: 1px solid var(--mgn-line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mgn-event-card:hover { transform: translateY(-3px); border-color: #aabdd7; box-shadow: 0 12px 30px rgba(48,65,84,.09); }
.mgn-event-card.is-disabled { cursor: default; opacity: .68; }
.mgn-event-card.is-disabled:hover { transform: none; border-color: var(--mgn-line); box-shadow: none; }
.mgn-event-card.is-selected { border-color: var(--mgn-blue); background: var(--mgn-blue-soft); box-shadow: inset 0 0 0 1px var(--mgn-blue); }
.mgn-event-status { display: inline-block; margin-bottom: 25px; color: #8a8d91; font-size: 11px; font-weight: 700; }
.mgn-event-card.is-selected .mgn-event-status { color: var(--mgn-blue); }
.mgn-event-card strong, .mgn-event-card em, .mgn-event-card small { display: block; }
.mgn-event-card strong { font-size: 19px; }
.mgn-event-card em { margin-top: 12px; font-family: Georgia, serif; font-size: 27px; font-style: normal; letter-spacing: -.02em; }
.mgn-event-card small { margin-top: 13px; padding-right: 30px; color: #6d7177; font-size: 12px; line-height: 1.45; }
.mgn-arrow { position: absolute; right: 22px; bottom: 22px; color: var(--mgn-blue); font-size: 20px; }

.mgn-selected { padding: 44px 0; background: var(--mgn-blue); color: #fff; }
.mgn-selected-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.mgn-selected-season { margin: 0 0 8px; color: #cdddF3; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.mgn-selected h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(30px, 4vw, 43px); font-weight: 500; }
.mgn-selected h2 + p { margin: 14px 0 0; color: #e3ebf5; font-size: 14px; line-height: 1.7; }
.mgn-selected-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mgn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: transparent; color: #fff !important; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.mgn-btn-primary { border-color: #fff; background: #fff; color: var(--mgn-blue) !important; }
.mgn-btn.is-disabled { opacity: .72; }

.mgn-booths { padding: 84px 0 96px; background: #fbfbfa; scroll-margin-top: 40px; }
.mgn-booth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mgn-booth-card { overflow: hidden; border: 1px solid #e4e1da; border-radius: 15px; background: #fff; transition: transform .2s, box-shadow .2s; }
.mgn-booth-card:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(35,42,50,.1); }
.mgn-booth-image { display: block; aspect-ratio: 1/1; overflow: hidden; background: #f0eee9; }
.mgn-booth-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mgn-booth-card:hover img { transform: scale(1.025); }
.mgn-booth-card strong { display: -webkit-box; min-height: 51px; margin: 17px 17px 7px; overflow: hidden; font-size: 15px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mgn-booth-card > span:last-child { display: block; margin: 0 17px 19px; color: var(--mgn-blue); font-size: 12px; font-weight: 700; }
.mgn-booth-more { margin-top: 34px; text-align: center; }
.mgn-booth-more a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 1px solid var(--mgn-blue); border-radius: 999px; color: var(--mgn-blue); font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.mgn-booth-more a:hover { background: var(--mgn-blue); color: #fff; }
.mgn-empty { padding: 70px 20px; border: 1px dashed #cfcac0; border-radius: 16px; background: #fff; text-align: center; }
.mgn-empty strong { font-size: 20px; }
.mgn-empty p { margin: 10px 0 0; color: #777; }

.mgn-info { padding: 88px 0; }
.mgn-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 35px; border: 1px solid var(--mgn-line); border-radius: 17px; overflow: hidden; }
.mgn-info-grid article { min-height: 205px; padding: 32px 24px; text-align: center; }
.mgn-info-grid article + article { border-left: 1px solid var(--mgn-line); }
.mgn-info-grid article > span { display: block; min-height: 35px; color: var(--mgn-blue); font-size: 29px; font-weight: 400; }
.mgn-info-grid h3 { margin: 14px 0 12px; font-size: 17px; }
.mgn-info-grid p { margin: 0; color: #666b72; font-size: 13px; line-height: 1.65; }
.mgn-info-grid a { display: inline-block; margin-top: 12px; color: var(--mgn-blue); font-size: 12px; font-weight: 800; }

.mgn-closing { padding: 0 0 86px; }
.mgn-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 50px; border-radius: 18px; background: linear-gradient(110deg, #edf5fd, #f8fbff); }
.mgn-closing p { margin: 0 0 8px; color: var(--mgn-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.mgn-closing h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; color: var(--mgn-blue); font-size: clamp(25px, 4vw, 38px); font-weight: 500; }
.mgn-closing a { padding: 14px 22px; border: 1px solid #a9bfdb; border-radius: 999px; color: var(--mgn-blue); font-size: 13px; font-weight: 800; white-space: nowrap; }

@media (max-width: 900px) {
    .mgn-about-inner { grid-template-columns: 220px 1fr; gap: 40px; padding: 42px; }
    .mgn-event-grid, .mgn-booth-grid { grid-template-columns: repeat(2, 1fr); }
    .mgn-info-grid { grid-template-columns: repeat(2, 1fr); }
    .mgn-info-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--mgn-line); }
    .mgn-info-grid article:nth-child(4) { border-top: 1px solid var(--mgn-line); }
    .mgn-selected-inner, .mgn-closing-inner { align-items: flex-start; flex-direction: column; }
    .mgn-selected-actions { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .mgn-container { width: min(100% - 28px, 1120px); }
    .mgn-hero { min-height: 410px; }
    .mgn-hero-inner { padding: 62px 0; }
    .mgn-hero h1 { font-size: 66px; }
    .mgn-tagline { font-size: 22px; }
    .mgn-intro br { display: none; }
    .mgn-hero-stationery { top: 0; right: -42px; width: auto; height: 414px; opacity: .5; }
    .mgn-about { padding: 54px 0 20px; }
    .mgn-about-inner { display: block; padding: 32px 25px; }
    .mgn-about-heading { margin-bottom: 25px; padding: 0 0 23px; border-right: 0; border-bottom: 1px solid var(--mgn-line); }
    .mgn-about-heading h2 { font-size: 30px; }
    .mgn-about-copy p { font-size: 14px; line-height: 1.75; }
    .mgn-about-copy strong { font-size: 15px; }
    .mgn-about-copy br { display: none; }
    .mgn-events, .mgn-booths, .mgn-info { padding: 60px 0; }
    .mgn-events { padding-top: 34px; }
    .mgn-event-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .mgn-event-card { min-height: 176px; padding: 18px; }
    .mgn-event-status { margin-bottom: 17px; }
    .mgn-event-card strong { font-size: 16px; }
    .mgn-event-card em { font-size: 21px; }
    .mgn-event-card small { display: none; }
    .mgn-selected { padding: 36px 0; }
    .mgn-selected-actions { width: 100%; }
    .mgn-btn { flex: 1 1 145px; padding: 0 14px; }
    .mgn-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mgn-section-heading-center { display: block; }
    .mgn-booth-grid { gap: 10px; }
    .mgn-booth-card strong { min-height: 48px; margin: 13px 13px 5px; font-size: 13px; }
    .mgn-booth-card > span:last-child { margin: 0 13px 15px; }
    .mgn-info-grid { grid-template-columns: 1fr; }
    .mgn-info-grid article { min-height: 0; padding: 28px 20px; }
    .mgn-info-grid article + article { border-top: 1px solid var(--mgn-line); border-left: 0; }
    .mgn-closing { padding-bottom: 60px; }
    .mgn-closing-inner { padding: 32px 25px; }
    .mgn-closing a { white-space: normal; }
}
