:root {
  --ink: #18212a;
  --muted: #657180;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --green: #1d7a4d;
  --green-dark: #155f3b;
  --red: #c54436;
  --gold: #f2b84b;
  --blue: #216b9f;
  --shadow: 0 18px 50px rgba(18, 31, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #334150;
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--green);
  border-color: var(--green);
}

.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.header-cta,
.primary-btn {
  color: var(--white);
  background: var(--green);
}

.header-cta:hover,
.primary-btn:hover {
  background: var(--green-dark);
}

.secondary-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #111;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 14, 0.82), rgba(8, 17, 14, 0.42) 47%, rgba(8, 17, 14, 0.18)),
    linear-gradient(0deg, rgba(8, 17, 14, 0.6), rgba(8, 17, 14, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  padding: clamp(80px, 13vh, 144px) 0 180px clamp(18px, 6vw, 76px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-info {
  position: absolute;
  right: clamp(18px, 6vw, 76px);
  bottom: 34px;
  left: clamp(18px, 6vw, 76px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 26, 23, 0.74);
  backdrop-filter: blur(18px);
}

.hero-info div {
  padding: 22px clamp(16px, 3vw, 28px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-info div:last-child {
  border-right: 0;
}

.hero-info span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
}

.hero-info strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(20px, 3vw, 28px);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip div {
  padding: 24px clamp(18px, 4vw, 46px);
  background: var(--white);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  margin-bottom: 6px;
  color: var(--green);
}

.quick-strip span {
  color: #3d4a57;
}

.section {
  padding: clamp(62px, 9vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading.narrow {
  max-width: 620px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.story-section {
  background: #fffaf2;
}

.theme-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.theme-card {
  min-height: 280px;
  padding: 28px;
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(24, 33, 42, 0.82), rgba(24, 33, 42, 0.82)),
    url("assets/theme-madang-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.theme-card.wide {
  min-height: 360px;
}

.theme-number {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 34px;
  margin-bottom: 22px;
  color: #3a2600;
  font-weight: 900;
  border-radius: 999px;
  background: var(--gold);
}

.theme-card h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.14;
}

.theme-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.inventory-panel,
.event-calendar,
.directions {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.inventory-panel {
  padding: 18px;
}

.toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfd;
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  min-height: 36px;
  padding: 0 13px;
  color: #3c4855;
  font: inherit;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.category-tabs button.active {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.item-card {
  min-height: 176px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-card h3 {
  margin: 0;
  font-size: 20px;
}

.item-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.stock-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
}

.stock-badge.good {
  background: var(--green);
}

.stock-badge.warn {
  background: var(--gold);
  color: #432a00;
}

.stock-badge.low {
  background: var(--red);
}

.item-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #40505f;
  font-size: 14px;
}

.item-meta strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.events-band,
.location-band {
  background: var(--white);
}

.event-layout,
.location-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.event-calendar {
  padding: 20px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-head strong {
  font-size: 24px;
}

.calendar-head span {
  color: var(--muted);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-grid span,
.calendar-grid b,
.calendar-grid i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  font-style: normal;
}

.calendar-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-grid b {
  background: #f3f6f8;
  font-size: 14px;
}

.calendar-grid .marked {
  color: var(--white);
  background: var(--blue);
}

.calendar-grid .today {
  color: var(--white);
  background: var(--red);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.event-date {
  display: grid;
  place-items: center;
  min-height: 86px;
  color: var(--white);
  border-radius: 8px;
  background: var(--green);
  text-align: center;
  font-weight: 900;
}

.event-date span {
  display: block;
  font-size: 13px;
}

.event-date strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.event-card h3 {
  margin: 0;
  font-size: 22px;
}

.event-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.guide-grid,
.experience-grid,
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.guide-grid article,
.experience-grid article,
.promo-grid article {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  border-radius: 8px;
  background: var(--blue);
}

.guide-grid article:nth-child(2) .guide-icon,
.experience-grid article:nth-child(2) .guide-icon {
  background: var(--red);
}

.guide-grid article:nth-child(3) .guide-icon,
.experience-grid article:nth-child(3) .guide-icon {
  color: #3a2600;
  background: var(--gold);
}

.guide-grid article:nth-child(4) .guide-icon,
.experience-grid article:nth-child(4) .guide-icon {
  background: var(--green);
}

.guide-grid h3,
.experience-grid h3,
.promo-grid h3 {
  margin: 0;
  font-size: 21px;
}

.guide-grid p,
.experience-grid p,
.promo-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.experience-grid article {
  background: #fbfcfd;
}

.goods-section {
  background: #f3f6f8;
}

.promo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.promo-grid article {
  min-height: 190px;
}

.promo-grid article:first-child {
  border-top: 5px solid var(--green);
}

.promo-grid article:nth-child(2) {
  border-top: 5px solid var(--red);
}

.promo-grid article:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.coupon-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #1d3d35;
}

.coupon-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.coupon-band p:not(.eyebrow) {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.coupon-band .primary-btn {
  color: #3a2600;
  background: var(--gold);
}

.map-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 122, 77, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(29, 122, 77, 0.08) 1px, transparent 1px),
    #eef5f1;
  background-size: 44px 44px;
  box-shadow: var(--shadow);
}

.road {
  position: absolute;
  display: grid;
  place-items: center;
  color: #52616f;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid #cbd6df;
}

.road-main {
  top: 50%;
  left: -8%;
  width: 116%;
  height: 68px;
  transform: rotate(-8deg);
}

.road-sub {
  top: -12%;
  left: 56%;
  width: 62px;
  height: 130%;
  transform: rotate(14deg);
  writing-mode: vertical-rl;
}

.block {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-weight: 900;
  border: 1px solid rgba(29, 122, 77, 0.25);
  border-radius: 8px;
  background: rgba(29, 122, 77, 0.16);
}

.park {
  right: 34px;
  bottom: 34px;
  width: 190px;
  height: 106px;
}

.stage-zone {
  top: 58px;
  right: 74px;
  width: 168px;
  height: 94px;
  color: #7c2b22;
  background: rgba(197, 68, 54, 0.14);
  border-color: rgba(197, 68, 54, 0.28);
}

.food-zone {
  right: 38px;
  bottom: 40px;
  width: 184px;
  height: 100px;
  color: #7b5200;
  background: rgba(242, 184, 75, 0.22);
  border-color: rgba(242, 184, 75, 0.45);
}

.workshop-zone {
  left: 52px;
  bottom: 46px;
  width: 172px;
  height: 96px;
}

.market-pin,
.parking-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 13px 16px;
  color: var(--white);
  font-weight: 900;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 14px 36px rgba(197, 68, 54, 0.32);
}

.market-pin {
  top: 154px;
  left: 92px;
}

.parking-pin {
  right: 66px;
  top: 138px;
  background: var(--blue);
  box-shadow: 0 14px 36px rgba(33, 107, 159, 0.3);
}

.directions {
  padding: 28px;
}

.directions h3 {
  margin: 0 0 18px;
  font-size: 26px;
}

.directions dl {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

.directions dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.directions dt {
  color: var(--green);
  font-weight: 900;
}

.directions dd {
  margin: 0;
  color: #3d4a57;
}

.map-link {
  width: 100%;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #18212a;
}

.footer strong {
  display: block;
  color: var(--white);
  font-size: 20px;
}

.footer p {
  margin: 6px 0 0;
}

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

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .section-split,
  .event-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-grid,
  .experience-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .theme-card,
  .theme-card.wide {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding: 76px 18px 250px;
  }

  .hero-info,
  .quick-strip,
  .inventory-grid,
  .guide-grid,
  .experience-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .coupon-band {
    display: block;
  }

  .coupon-band .primary-btn {
    width: 100%;
    margin-top: 20px;
  }

  .hero-info {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .hero-info div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-info div:last-child {
    border-bottom: 0;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    min-height: 72px;
  }

  .directions dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    display: block;
  }
}
