:root {
  --sky: #bfe7f6;
  --cream: #fff1d0;
  --navy: #17233c;
  --coral: #ff6b57;
  --yellow: #ffcf33;
  --ink: #2e211d;
  --bar-h: 52px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
}
a { color: inherit; }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--navy); color: var(--cream);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.clock { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--yellow); position: relative; }
.clock::before, .clock::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; background: var(--yellow); transform-origin: 50% 0; }
.clock::before { height: 5px; transform: translate(-50%, 0) rotate(180deg); }
.clock::after { height: 4px; transform: translate(-50%, 0) rotate(-90deg); }
.menu-btn {
  font: inherit; font-weight: 700; font-size: 15px;
  color: var(--navy); background: var(--yellow);
  border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer;
  box-shadow: 0 3px 0 #c99a1a;
}
.menu-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c99a1a; }
.nav {
  position: absolute; top: calc(var(--bar-h) + 10px); right: 12px;
  display: flex; flex-direction: column; min-width: 160px;
  background: var(--cream); border: 3px solid var(--navy); border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 0 rgba(23, 35, 60, 0.25);
}
.nav[hidden] { display: none; }
.nav a { padding: 13px 16px; text-decoration: none; font-weight: 700; color: var(--navy); }
.nav a + a { border-top: 2px dashed rgba(23, 35, 60, 0.2); }
.awning {
  position: fixed; top: var(--bar-h); left: 0; right: 0; height: 12px; z-index: 29;
  background: repeating-linear-gradient(90deg, var(--coral) 0 24px, #fff 24px 48px);
  -webkit-mask: radial-gradient(circle at 12px 0, #000 12px, transparent 12.5px) 0 0 / 24px 12px repeat-x;
          mask: radial-gradient(circle at 12px 0, #000 12px, transparent 12.5px) 0 0 / 24px 12px repeat-x;
  pointer-events: none;
}

/* hero scene */
.hero {
  position: relative;
  height: 100svh; min-height: 600px; max-height: 960px;
  overflow: hidden;
  background: var(--sky);
}
#scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  touch-action: pan-y; /* vertical swipes scroll the page, taps go to the scene */
  -webkit-tap-highlight-color: transparent;
  image-rendering: pixelated;
}
.copy {
  position: absolute; left: 16px; right: 16px; top: calc(var(--bar-h) + 30px);
  pointer-events: none;
  color: var(--navy);
}
.copy .kicker {
  display: inline-block; margin: 0 0 8px; padding: 3px 9px;
  font-size: 13px; font-weight: 700; border-radius: 999px;
  background: rgba(255, 241, 208, 0.85); color: var(--navy);
}
.copy h1 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 900; letter-spacing: -0.03em; }
.copy .line { margin: 8px 0 0; font-size: 16px; line-height: 1.5; font-weight: 600; max-width: 22em; }
.hero.night .copy, .hero.dusk .copy { color: var(--cream); text-shadow: 0 2px 0 rgba(10, 14, 32, 0.35); }
.hero.night .copy .kicker, .hero.dusk .copy .kicker { background: rgba(23, 35, 60, 0.7); color: var(--yellow); text-shadow: none; }

@media (min-width: 900px) {
  .copy { left: max(40px, calc(50vw - 600px)); right: auto; top: calc(var(--bar-h) + 70px); max-width: 420px; }
  .copy h1 { font-size: 52px; }
  .copy .line { font-size: 19px; }
}

/* A-frame sign on the pavement */
.sign {
  position: absolute; left: 0; top: 0; z-index: 5;
  transform-origin: 50% 100%;
}
.sign-face {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  width: 64px; padding: 6px 4px 7px;
  font: inherit; color: var(--cream);
  background: var(--navy);
  border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: inset 0 0 0 2px #2c3d63;
  cursor: pointer;
  transition: transform 0.16s ease-in;
}
.sign-face::before, .sign-face::after { /* legs */
  content: ''; position: absolute; bottom: -12px; width: 4px; height: 12px; background: var(--ink);
}
.sign-face::before { left: 8px; transform: skewX(12deg); }
.sign-face::after { right: 8px; transform: skewX(-12deg); }
.sign-face .open { font-weight: 900; font-size: 14px; letter-spacing: -0.02em; }
.sign-face .small { font-size: 9px; font-weight: 600; opacity: 0.75; }
.sign-face .dot { width: 6px; height: 6px; background: var(--yellow); box-shadow: 0 0 6px var(--yellow); margin-bottom: 1px; }
.sign-menu {
  position: absolute; right: -6px; bottom: 0; width: 156px;
  display: flex; flex-direction: column;
  background: var(--cream); color: var(--navy);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 0 4px 0 rgba(23, 35, 60, 0.3);
  overflow: hidden;
}
.sign-menu[hidden], .sign-face[hidden] { display: none; }
.sign-menu a { padding: 11px 14px; font-weight: 800; text-decoration: none; font-size: 15px; }
.sign-menu a + a { border-top: 2px dashed rgba(23, 35, 60, 0.2); }
.sign-menu a:active, .sign-menu a:hover { background: var(--yellow); }
.sign-close { font: inherit; font-size: 13px; font-weight: 700; padding: 8px; border: 0; background: var(--navy); color: var(--cream); cursor: pointer; }
.sign.flip-out .sign-face, .sign.flip-out .sign-menu { transform: perspective(300px) rotateY(90deg); }
.sign-menu { transition: transform 0.16s ease-out; }

.bubble {
  position: absolute; left: 0; top: 0; z-index: 6;
  transform: translate(-50%, -100%);
  padding: 7px 11px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 10px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  pointer-events: none;
}
.bubble::after {
  content: ''; position: absolute; left: 50%; bottom: -9px; width: 10px; height: 10px;
  background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.bubble[hidden] { display: none; }
.hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(23, 35, 60, 0.75); color: var(--cream);
  font-size: 13px; font-weight: 600; pointer-events: none;
  transition: opacity 0.4s;
}
.hint.gone { opacity: 0; }

/* plain content */
.plain { max-width: 640px; margin: 0 auto; padding: 48px 20px 8px; scroll-margin-top: 70px; }
.plain h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.plain p { margin: 8px 0; line-height: 1.65; font-size: 16px; }
.plain .tag { display: inline-block; margin: 2px 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; font-size: 13px; }
.three { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px; }
.three li { flex: 1; padding: 14px 8px; border: 3px solid var(--navy); border-radius: 10px; background: #fff; text-align: center; font-weight: 900; font-size: 18px; }
.mail { font-weight: 800; color: var(--coral); }
.foot { padding: 48px 20px 40px; text-align: center; font-size: 13px; opacity: 0.6; }
