:root {
  --cream: #fffcf8;
  --paper: #ffffff;
  --ink: #2e1b14;
  --muted: #74665f;
  --line: #eaded5;
  --coral: #ff5b4d;
  --coral-dark: #ed4338;
  --peach: #fff0e8;
  --shadow: 0 18px 52px rgba(87, 47, 31, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-pretendard), "Pretendard", "Noto Sans KR", Arial, sans-serif;
  word-break: keep-all;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 248, .97);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--coral); color: white; font-family: Georgia, serif; font-size: 21px; box-shadow: 0 8px 18px rgba(255, 91, 77, .25); }
.site-header nav { display: flex; gap: 32px; font-size: 14px; font-weight: 650; color: #5f514b; }
.site-header nav a:hover { color: var(--coral-dark); }

.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 76px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  align-items: center;
  gap: 76px;
}
.eyebrow { margin: 0 0 15px; color: var(--coral-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.hero h1 { margin: 0; font-size: clamp(50px, 5.4vw, 78px); line-height: 1.08; letter-spacing: -.065em; font-weight: 780; }
.hero h1 strong { color: var(--coral); font-weight: inherit; }
.hero-description { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.hero-stats { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats span { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 13px; }
.hero-stats b { color: var(--ink); margin-right: 3px; }

.calendar-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px 24px; box-shadow: var(--shadow); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.calendar-head button { width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 50%; color: var(--ink); cursor: pointer; font-size: 25px; line-height: 1; }
.calendar-head button:hover { border-color: var(--coral); color: var(--coral); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-weekdays { padding-bottom: 10px; color: #8a7d77; font-size: 12px; font-weight: 700; border-bottom: 1px solid #f0e8e2; }
.calendar-grid { row-gap: 5px; padding-top: 8px; }
.calendar-grid span, .calendar-grid button { min-height: 40px; display: grid; place-items: center; position: relative; border: 0; border-radius: 11px; background: transparent; color: inherit; font-size: 14px; }
.calendar-grid button { cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.calendar-grid .sunday { color: #f05449; }
.calendar-grid .saturday { color: #4a71cf; }
.calendar-grid .has-event { background: var(--peach); color: var(--coral-dark); font-weight: 800; }
.calendar-grid button.has-event:hover { transform: translateY(-1px); background: #ffe4dc; }
.calendar-grid .has-event.selected { background: var(--coral); color: white; box-shadow: 0 7px 15px rgba(255,91,77,.25); }
.calendar-grid .has-event::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); }
.calendar-grid .has-event.selected::after { background: white; }
.calendar-legend { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 15px; color: #8c7d77; font-size: 11px; }
.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.benefit-section { max-width: 1320px; margin: 0 auto; padding: 16px 24px 88px; }
.benefit-section, .schedule-section, .guide-section, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.benefit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.benefit-heading h2 { margin: 0; font-size: 38px; letter-spacing: -.055em; }
.benefit-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.benefit-layout { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.54fr); gap: 20px; }
.benefit-featured, .benefit-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 10px 25px rgba(87,47,31,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.benefit-featured:hover, .benefit-card:hover { transform: translateY(-3px); border-color: #f3afa8; box-shadow: 0 18px 38px rgba(87,47,31,.11); }
.benefit-featured { display: flex; flex-direction: column; border-radius: 24px; }
.benefit-featured-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--peach); }
.benefit-featured-image img, .benefit-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.benefit-featured:hover img, .benefit-card:hover img { transform: scale(1.025); }
.benefit-featured-copy { flex: 1; display: flex; flex-direction: column; padding: 24px 26px 25px; }
.benefit-badge { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--peach); color: var(--coral-dark); font-size: 11px; font-weight: 800; }
.benefit-featured h3 { margin: 12px 0 0; font-size: 28px; letter-spacing: -.045em; }
.benefit-featured p, .benefit-card p { color: var(--muted); line-height: 1.6; }
.benefit-featured p { margin: 12px 0 0; font-size: 14px; }
.benefit-featured small, .benefit-card small { color: #a0938d; }
.benefit-featured small { margin-top: 13px; }
.benefit-featured strong, .benefit-card strong { color: var(--coral-dark); font-size: 13px; }
.benefit-featured strong { margin-top: auto; padding-top: 22px; }
.benefit-featured strong span, .benefit-card strong span { display: inline-block; margin-left: 4px; transition: transform .16s ease; }
.benefit-featured:hover strong span, .benefit-card:hover strong span { transform: translateX(3px); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.benefit-card { display: grid; grid-template-rows: 150px 1fr; border-radius: 20px; }
.benefit-card-image { overflow: hidden; background: var(--peach); }
.benefit-card-copy { min-height: 210px; display: flex; flex-direction: column; padding: 17px 18px 18px; }
.benefit-card h3 { min-height: 45px; margin: 9px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.035em; }
.benefit-card p { margin: 8px 0 0; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.benefit-card small { margin-top: 8px; font-size: 11px; }
.benefit-card strong { margin-top: auto; padding-top: 12px; }

.schedule-section { max-width: 1320px; margin: 0 auto; padding: 10px 24px 90px; }
.filter-panel { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 30px rgba(87,47,31,.06); }
.search-box { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 17px; background: #fffaf6; border: 1px solid #ecdfd7; border-radius: 14px; }
.search-box span { color: var(--coral); font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-box input::placeholder { color: #a0938d; }
.filter-row { display: flex; align-items: flex-start; gap: 18px; margin-top: 16px; }
.filter-label { flex: 0 0 44px; padding-top: 9px; color: #75665f; font-size: 13px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: white; color: #6d5f58; border-radius: 999px; padding: 9px 15px; font-size: 13px; font-weight: 650; cursor: pointer; transition: .16s ease-out; }
.chips button:hover { border-color: #ff9c92; color: var(--coral-dark); }
.chips button.active { border-color: var(--coral); background: var(--coral); color: white; box-shadow: 0 7px 15px rgba(255,91,77,.18); }
.selected-date-notice { margin-top: 16px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #ffd3cd; border-radius: 13px; background: #fff5f1; color: #6f5149; font-size: 13px; }
.selected-date-notice b { color: var(--coral-dark); }
.selected-date-notice button { flex: 0 0 auto; border: 0; background: transparent; color: var(--coral-dark); font-size: 12px; font-weight: 800; cursor: pointer; }

.results-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 56px 2px 24px; }
.results-head h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.results-head > p { margin: 0; color: var(--muted); font-size: 14px; }
.results-head > p strong { color: var(--coral-dark); }
.schedule-loading-label { color: #9a8c85; font-size: 11px; white-space: nowrap; }
.fair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fair-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 25px rgba(87,47,31,.06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.fair-card:hover { transform: translateY(-4px); border-color: #f5b0a9; box-shadow: 0 18px 38px rgba(87,47,31,.12); }
.fair-image-wrap { aspect-ratio: 16 / 8.5; position: relative; overflow: hidden; background: var(--peach); }
.fair-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fair-card:hover .fair-image-wrap img { transform: scale(1.025); }
.region-badge { position: absolute; left: 14px; top: 14px; padding: 7px 11px; color: white; background: rgba(46,27,20,.78); backdrop-filter: blur(8px); border-radius: 999px; font-size: 11px; font-weight: 750; }
.fair-content { min-height: 235px; display: grid; grid-template-columns: 64px 1fr; gap: 17px; padding: 20px 20px 17px; }
.fair-date-box { height: 76px; padding-top: 9px; border-radius: 14px; background: linear-gradient(145deg, #fff4ed, #ffe9e2); text-align: center; color: var(--coral-dark); }
.fair-date-box span { display: block; font-size: 11px; font-weight: 750; }
.fair-date-box b { display: block; margin-top: 1px; font-size: 29px; letter-spacing: -.04em; }
.fair-main { min-width: 0; }
.date-text { margin: 0 0 6px; color: var(--coral-dark); font-size: 11px; line-height: 1.4; font-weight: 750; }
.fair-main h3 { min-height: 48px; margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fair-description { margin: 10px 0 0; color: #776861; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.venue { margin: 12px 0 0; color: #6a5b54; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.location { margin: 5px 0 0; color: #9a8c85; font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail-link { height: 52px; margin: 0 16px 16px; padding: 0 18px; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; background: var(--coral); color: white; font-size: 14px; font-weight: 750; transition: background .16s ease; }
.detail-link:hover { background: var(--coral-dark); }
.detail-link span { font-size: 19px; transition: transform .16s ease; }
.detail-link:hover span { transform: translateX(3px); }
.more-button { display: block; min-width: 190px; margin: 34px auto 0; padding: 14px 26px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 750; cursor: pointer; }
.more-button:hover { border-color: var(--coral); color: var(--coral-dark); }
.empty-state { padding: 70px 20px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 20px; }
.empty-state b { font-size: 20px; }
.empty-state p { color: var(--muted); }

.guide-section { max-width: 1272px; margin: 0 auto 90px; padding: 48px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; border-radius: 28px; background: #2e1b14; color: white; }
.guide-section h2 { margin: 0; font-size: 36px; line-height: 1.28; letter-spacing: -.05em; }
.guide-section ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-section li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.guide-section li:last-child { border: 0; }
.guide-section li > span { color: #ff8c82; font-size: 12px; font-weight: 800; }
.guide-section li b { font-size: 16px; }
.guide-section li p { margin: 7px 0 0; color: #cdbeb7; font-size: 13px; line-height: 1.6; }

footer { padding: 38px max(24px, calc((100vw - 1272px) / 2)); display: grid; grid-template-columns: minmax(230px, .65fr) minmax(360px, 1.35fr); gap: 56px; border-top: 1px solid var(--line); color: #887a73; font-size: 12px; line-height: 1.65; }
footer b { color: var(--ink); font-size: 16px; }
footer p { margin: 5px 0 0; }
.footer-identity dl { margin: 14px 0 0; }
.footer-identity dl div { display: flex; gap: 12px; }
.footer-identity dt { min-width: 42px; color: #a3958e; }
.footer-identity dd { margin: 0; color: var(--ink); }
.footer-identity a { color: inherit; text-underline-offset: 3px; }
.footer-identity a:hover { color: var(--coral-dark); }
.footer-notice { text-align: right; }
.footer-notice p:first-child { margin-top: 0; }
.footer-notice small { display: block; margin-top: 13px; color: #a99d97; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr 420px; gap: 38px; }
  .benefit-layout { grid-template-columns: 1fr; }
  .benefit-featured { display: grid; grid-template-columns: .95fr 1.05fr; }
  .benefit-featured-image { aspect-ratio: auto; min-height: 330px; }
  .fair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { height: 64px; padding: 0 20px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .site-header nav { display: none; }
  .hero { padding: 48px 20px 38px; grid-template-columns: 1fr; gap: 35px; }
  .hero h1 { font-size: 44px; }
  .hero-description { font-size: 16px; margin-top: 20px; }
  .hero-stats { margin-top: 25px; gap: 7px; }
  .hero-stats span { padding: 9px 12px; font-size: 11px; }
  .calendar-card { padding: 21px 18px 18px; border-radius: 20px; }
  .calendar-grid span, .calendar-grid button { min-height: 38px; }
  .benefit-section { padding: 10px 16px 60px; }
  .benefit-heading { display: block; margin-bottom: 18px; }
  .benefit-heading h2 { font-size: 30px; }
  .benefit-heading > p { margin-top: 9px; text-align: left; }
  .benefit-layout { gap: 14px; }
  .benefit-featured { display: block; border-radius: 20px; }
  .benefit-featured-image { aspect-ratio: 16 / 9; min-height: 0; }
  .benefit-featured-copy { padding: 20px; }
  .benefit-featured h3 { font-size: 24px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { grid-template-columns: 132px 1fr; grid-template-rows: none; }
  .benefit-card-copy { min-height: 190px; }
  .schedule-section { padding: 4px 16px 60px; }
  .filter-panel { padding: 15px; border-radius: 18px; }
  .filter-row { display: block; }
  .filter-label { display: block; padding: 0 0 8px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: 0 0 auto; }
  .selected-date-notice { align-items: flex-start; flex-direction: column; gap: 8px; }
  .results-head { padding: 42px 2px 18px; align-items: flex-end; }
  .results-head h2 { font-size: 28px; }
  .results-head > p { font-size: 12px; }
  .fair-grid { grid-template-columns: 1fr; gap: 16px; }
  .fair-image-wrap { aspect-ratio: 16 / 8; }
  .fair-content { min-height: 220px; }
  .guide-section { margin: 0 16px 60px; padding: 32px 24px; grid-template-columns: 1fr; gap: 25px; border-radius: 22px; }
  .guide-section h2 { font-size: 30px; }
  footer { padding: 30px 20px; display: block; }
  .footer-notice { text-align: left; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
