/* 색상과 글꼴은 이 변수부터 바꿔보세요. */
:root {
  --color-text: #17334a;
  --color-muted: #5b7486;
  --color-blue: #bfe7f7;
  --color-blue-dark: #17486b;
  --color-yellow: #ffd52a;
  --color-paper: #f8faf9;
  --content-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-paper);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
.container { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid #dce7eb; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.logo span { color: #167eb4; }
nav { display: flex; flex-wrap: wrap; gap: 22px; }
nav a { color: var(--color-muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--color-blue-dark); }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - 72px);
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
  color: white;
  background: linear-gradient(135deg, #17486b, #071724);
}
.hero-video, .hero-shade { position: absolute; inset: 0; }
.hero-video {
  inset: 50% 0;
  z-index: 0;
  overflow: hidden;
  animation: hero-video-reveal 3s cubic-bezier(.71,.02,.79,1) 0.85s forwards;
}
.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-video iframe.is-ready { opacity: 1; }
@keyframes hero-video-reveal {
  to { inset: 8% 0; }
}
.hero-shade { z-index: 1; background: linear-gradient(180deg, rgba(5, 20, 32, .38), rgba(5, 20, 32, .68)); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero .eyebrow { color: #ffe05a; }
.hero-logo-placeholder {
  display: grid;
  width: min(560px, 80vw);
  min-height: 190px;
  place-items: center;
  margin: 20px auto;
  border: 2px dashed rgba(255,255,255,.65);
  border-radius: 8px;
  color: white;
  font-size: clamp(56px, 10vw, 110px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  text-shadow: 0 3px 24px rgba(0,0,0,.4);
}
.eyebrow { margin: 0 0 12px; color: #247aa7; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(42px, 7vw, 72px); line-height: 1.15; letter-spacing: -.06em; }
h2 { margin-bottom: 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; letter-spacing: -.04em; }
.hero-copy { color: rgba(255,255,255,.9); font-size: 18px; }
.event-details { display: grid; gap: 2px; margin: 25px 0; }
.event-details span { color: rgba(255,255,255,.82); }
.button { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--color-yellow); color: var(--color-text); font-weight: 700; text-decoration: none; }
.section { padding-block: 70px; }
.section p { color: var(--color-muted); }
.about-copy > * { max-width: none; }
.about-logo {
  display: block;
  width: 150px;
  margin: 0 auto 1em;
  opacity: .8;
}
.about-copy > :last-child,
.about-theme > :last-child { margin-bottom: 0; }
.about-theme-wrap {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.about-divider { margin: 46px 0 14px; }
.about-theme-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 48px;
  border: 2px solid transparent;
  padding: 28px;
  background:
    linear-gradient(#102638, #102638) padding-box,
    repeating-linear-gradient(
      135deg,
      #704400 0 135px,
      #b77d05 185px 186px,
      #f0bd20 186px 204px,
      #fff8c6 204px 222px,
      #f0bd20 222px 240px,
      #b77d05 270px 288px,
      #704400 358px 424.264068px
    ) border-box;
  background-position: 0 0, 0 0;
  color: #e4edf2;
  animation: gold-frame-shine 5s linear infinite;
}
.about-gear {
  position: absolute;
  z-index: 0;
  color: #a56f03;
  opacity: .8;
  line-height: 1;
  pointer-events: none;
}
.about-gear--left {
  top: 4px;
  left: -42px;
  font-size: 150px;
  animation: gear-turn 32s linear infinite;
}
.about-gear--right {
  right: -38px;
  bottom: -56px;
  font-size: 180px;
  animation: gear-turn-reverse 38s linear infinite;
}
@keyframes gear-turn { to { transform: rotate(360deg); } }
@keyframes gear-turn-reverse { to { transform: rotate(-360deg); } }
@keyframes gold-frame-shine {
  to { background-position: 0 0, 300px 300px; }
}
.about-theme > * { max-width: none; }
.about-theme h3 {
  font-size: 1.5em;
  background-image: linear-gradient(141deg,rgba(229, 190, 35, 1) 0%, rgba(255, 248, 198, 1) 32%, rgba(183, 125, 5, 1) 68%, rgba(229, 190, 35, 1) 100%  );
  background-position: 0 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gold-text-shine 6s linear infinite alternate;
}
.about-theme h3 .theme-title-gear {
  display: inline-block;
  margin-right: .12em;
  background: none;
  color: #e5be23;
  -webkit-text-fill-color: #e5be23;
  transform-origin: center;
  animation: gear-turn-reverse 1s linear infinite;
}
@keyframes gold-text-shine {
  to { background-position: 300px 300px; }
}
.about-theme h4 { color: #f4f7f8; }
.about-theme p { color: #c7d6df; }
.about-theme .footnote-ref { color: #ffe082; }
.about-poster {
  width: 340px;
  aspect-ratio: 210 / 297;
  margin: 0;
  align-self: center;
}
.about-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-theme h4 { margin-top: 44px; }
.section-muted { background: #edf4f6; }
.link-list { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-left: 20px; }
.footnote { position: relative; display: inline-block; vertical-align: super; line-height: 1; }
.footnote-marker,
.footnote-ref {
  padding: 0 2px;
  border: 0;
  color: #167eb4;
  background: transparent;
  font: inherit;
  font-size: .75em;
  cursor: pointer;
}
.footnote-marker:hover,
.footnote-ref:hover { text-decoration: underline; }
.footnote-popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  left: 50%;
  display: none;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 42px 18px 20px;
  transform: translateX(-50%);
  border: 1px solid #d7dce0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
  color: #263238;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}
.footnote-popup::before {
  position: absolute;
  top: -7px;
  left: var(--footnote-arrow-left, calc(50% - 7px));
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-top: 1px solid #d7dce0;
  border-left: 1px solid #d7dce0;
  background: #fff;
  content: "";
}
.footnote.is-open .footnote-popup { display: block; }
.footnote-close {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 0 4px;
  border: 0;
  color: #667781;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.footnotes { border-top: 1px solid #dce7eb; }
.footnotes li { padding-left: 4px; }
.site-footer {
  padding: 48px 0;
  color: #f5f5f5;
  background: #252525;
  text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: 10px; }
.footer-email { color: inherit; text-decoration: none; }
.footer-email:hover { text-decoration: underline; }
.site-footer .footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: #f5f5f5;
}
.footer-brand-mark {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-content: center;
  background: #12344a;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: .9;
}
:focus-visible { outline: 3px solid #d49300; outline-offset: 3px; }
@media (max-width: 640px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 14px; }
  nav { gap: 10px 16px; }
  .hero { padding: 72px 0; }
  .hero-logo-placeholder { min-height: 130px; }
  .section { padding-block: 52px; }
  .about-grid {
    display: block;
  }
  .about-divider { margin: 32px 0 24px; }
  .about-gear--left {
    top: 10px;
    left: -20px;
    font-size: 90px;
  }
  .about-gear--right {
    right: -16px;
    bottom: -32px;
    font-size: 110px;
  }
  .about-theme-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 20px;
  }
  .about-poster { grid-row: 1; }
  .about-theme { grid-row: 2; }
  .about-poster {
    width: 100%;
    align-self: center;
    justify-self: center;
  }
  .footnote-popup {
    position: fixed;
    top: 16px;
    left: 16px;
    width: min(380px, calc(100vw - 32px));
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { inset: 8% 0; animation: none; }
  .about-theme-grid,
  .about-theme h3 { animation: none; }
  .about-theme h3 .theme-title-gear { animation: none; }
  .about-gear { animation: none; }
}
