:root {
  --bg: #FFFFFE;
  --ink: #111111;
  --muted: #767676;
  --line: #ececec;
  --soft: #f7f7f7;
  --accent: #4a90c2;
  --moon: #d9ebf5;
  --max: 390px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f3f3;
  color: var(--ink);
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.02em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;

  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

h1,
h2,
p,
dl,
dd,
figure,
ul,
address {
  margin: 0;
}

.frame {
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  border-bottom-color: var(--line);
}

.site-header p {
  font-size: 12px;
  font-weight: 500;
}

.site-header__meta {
  color: var(--muted);
  flex-shrink: 0;
}

.hero,
.panel,
.site-footer {
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  padding-top: 32px;
  padding-bottom: 8px;
}

.eyebrow {
  font-size: 12px;
  color: var(--muted);
}

.hero__title {
  margin-top: 10px;
  font-family: "Noto Serif KR", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  margin-top: 6px;
  font-family: "Gowun Batang", serif;
  font-size: 18px;
  color:#5d8ca6
}

.hero__figure {
  margin-top: 24px;
  background: var(--moon);
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero__facts {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.hero__facts div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.hero__facts dt {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}

.hero__facts dd {
  font-size: 14px;
  font-weight: 360;
  word-break: keep-all;
}

.panel {
  padding-top: 40px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 52px;
}

.panel__heading {
  font-family: "Noto Serif KR", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
  font-weight: 400;
}

.panel p + p {
  margin-top: 14px;
  color: #444;
  font-size: 15px;
  word-break: keep-all;
  font-weight: 300;
}

.about-gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.72fr 1.38fr;
  gap: 12px;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-p1 {
  grid-column: 1 / 3;
  grid-row: 1;
  aspect-ratio: 1.32 / 1;
}

.gallery-p2 {
  grid-column: 1;
  grid-row: 2 / 4;
}

.gallery-p3 {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1.45 / 1;
}

.gallery-p4 {
  grid-column: 2;
  grid-row: 3;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: left center;
}

.gallery-p5 {
  grid-column: 1 / 3;
}

.gallery-p6 {
  grid-column: 1 / 3;
}

.meta-list,
.directions {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.meta-list li,
.directions li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  word-break: keep-all;
  align-items: center;
}

.meta-list li span:first-child {
  font-size: 12px;
  line-height: 2.2;
  font-weight: 400;
  color: var(--muted);
}

.directions strong {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.directions li {
  font-size: 13px;
  font-weight: 300;
}

.meta-list li span:last-child {
  font-size: 12px;
  line-height: 2.2;
  font-weight: 100;
}

.meta-list .meta-exhibition {
  align-items: start;
}

.meta-list .meta-exhibition > span:first-child {
  padding-top: 1.0px;
}

address {
  margin-top: 8px;
  font-style: normal;
  font-size: 14px;
  word-break: keep-all;
  font-weight: 300;
}

.calendar__caption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.calendar {
  margin-top: 14px;
}

.calendar__weekdays,
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  row-gap: 8px;
}

.calendar__weekdays span {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 8px;
}

.calendar__days span {
  width: 40px;
  height: 40px;
  font-size: 13px;
  color: var(--ink);
  display: grid;
  place-items: center;
  justify-self: center;
}

.calendar__days .is-muted {
  color: #c8c8c8;
}

.calendar__days .is-show {
  font-weight: 500;
  background: #edf5fb;
  border-radius: 50%;
}

.calendar__days .is-closed {
  color: var(--muted);
  background: var(--soft);
  border-radius: 50%;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.calendar__days .is-edge {
  color: var(--ink);
  font-weight: 500;
  background: #edf5fb;
  border-radius: 50%;
}

.legend {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 16px 0 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #edf5fb;
}

.dot--closed {
  background: #e8e8e8;
}


.dot--mark {
  background: var(--ink);
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--max));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 20;
}

.dock__btn {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid var(--line);
}

.dock__btn:last-child {
  border-right: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  width: min(calc(100% - 40px), 350px);
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 10px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .eyebrow { animation-delay: 0.04s; }
.hero__title { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.14s; }
.hero__figure { animation-delay: 0.16s; }
.hero__facts { animation-delay: 0.22s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 391px) {
  body {
    padding: 24px 0 0;
  }

  .frame {
    box-shadow: 0 0 0 1px var(--line);
  }
}

#map {
  width: 100%;
  height: 300px;
  margin-top: 24px;
}