/* HYUNU: a Korean commercial building at night. Each link is a lit floor sign. */

@font-face { font-family: "Signboard"; src: url("assets/display.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Signboard"; src: url("assets/hangul-a.woff2") format("woff2"); font-display: swap; unicode-range: U+D604; }
@font-face { font-family: "Signboard"; src: url("assets/hangul-b.woff2") format("woff2"); font-display: swap; unicode-range: U+C6B0; }
@font-face { font-family: "Elevator"; src: url("assets/led.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Plain"; src: url("assets/body-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plain"; src: url("assets/body-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #1a0e3f;
  --facade: #2b1a63;
  --shaft: #0c0620;
  --led: #ff6a3d;
  --paper: #fff3df;
  --ink: #170a33;
  --espresso: #3a1d0f;
  --tiktok: #ff2e93;
  --instagram: #ffc22e;
  --facebook: #2bd9f5;
  --youtube: #ff6b4a;
  --glow: #ff4fb0;
  --display: "Signboard", "Arial Black", Impact, sans-serif;
  --led-font: "Elevator", ui-monospace, Menlo, Consolas, monospace;
  --body: "Plain", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --page: min(100vw, 640px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--night);
  font: 400 1rem/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Elevator display, pinned to the top */
.lift {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px;
  padding: 6px max(var(--gutter), env(safe-area-inset-right)) 6px max(var(--gutter), env(safe-area-inset-left));
  background: var(--shaft);
  color: var(--led);
  font: 400 0.9375rem/1.2 var(--led-font);
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 106, 61, 0.28);
}
.lift__floor { min-width: 3.2em; text-shadow: 0 0 8px rgba(255, 106, 61, 0.7); }

.page { width: 100%; max-width: 640px; margin: 0 auto; }

/* Hero */
.hero { padding: 20px var(--gutter) 22px; }
.hero__name {
  /* The word is 3.66em wide, so this fills the column at any phone width. */
  font: 400 calc((var(--page) - 2 * var(--gutter)) / 3.72)/0.92 var(--display);
  color: #fff;
  text-shadow: 0 0 6px var(--glow), 0 0 22px var(--glow), 0 0 54px rgba(255, 79, 176, 0.65);
  animation: strike 1.15s linear both;
}
.hero__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
}
.hero__logo {
  width: 92px; height: 92px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 22px rgba(43, 217, 245, 0.45);
}
.hero__bio { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.hero__say { margin-top: 6px; font: 400 0.8125rem/1.3 var(--led-font); color: var(--instagram); }
.hero__hangul {
  display: grid; justify-items: center; gap: 2px;
  padding: 7px 0 8px;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.75rem/1.06 var(--display);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--tiktok), 0 0 18px rgba(255, 243, 223, 0.5);
}

/* Building */
.building {
  padding: 16px var(--gutter) 0;
  background: var(--facade);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 24px);
}
.building__title {
  margin-bottom: 12px;
  font: 400 0.9375rem/1.2 var(--led-font);
  letter-spacing: 0.04em;
  color: var(--paper);
}
.floors { display: grid; gap: 8px; }

/* Lightbox sign */
.sign {
  --c: var(--paper);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 11px 14px 11px 12px;
  border-radius: 4px;
  background: var(--c);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), inset 0 -10px 18px rgba(23, 10, 51, 0.1), 0 0 20px -2px var(--c);
  -webkit-tap-highlight-color: transparent;
  animation: light-up 0.42s ease-out both;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.sign::before, .sign::after {
  content: "";
  position: absolute; top: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(23, 10, 51, 0.38);
}
.sign::before { left: 6px; }
.sign::after { right: 6px; }
.sign:hover { filter: brightness(1.07); }
.sign:active { transform: translateY(2px) scale(0.99); filter: brightness(0.94); }

.sign__floor {
  display: grid; place-items: center;
  height: 40px;
  background: var(--shaft);
  color: var(--led);
  border-radius: 2px;
  font: 400 1.0625rem/1 var(--led-font);
  text-shadow: 0 0 6px rgba(255, 106, 61, 0.75);
}
.sign__body { display: grid; gap: 3px; min-width: 0; }
.sign__body strong {
  font: 400 clamp(1.625rem, 7.6vw, 2.125rem)/1.02 var(--display);
  letter-spacing: 0.005em;
}
.sign__body small {
  display: flex; flex-wrap: wrap; gap: 0 8px;
  font-size: 0.875rem; line-height: 1.25; font-weight: 700;
}
.sign__go { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }

.sign--tiktok { --c: var(--tiktok); animation-delay: 0.45s; }
.sign--instagram { --c: var(--instagram); animation-delay: 0.53s; }
.sign--facebook { --c: var(--facebook); animation-delay: 0.61s; }
.sign--youtube { --c: var(--youtube); animation-delay: 0.69s; }
.sign--cafe { --c: var(--paper); color: var(--espresso); border-radius: 0 0 4px 4px; animation-delay: 0.77s; }
.sign--cafe .sign__body strong { font-size: min(calc((var(--page) - 148px) / 8.95), 2.125rem); white-space: nowrap; }

/* Ground-floor cafe */
.cafe { margin-top: 10px; }
.cafe__awning {
  height: 20px;
  border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, var(--tiktok) 0 22px, var(--paper) 22px 44px);
  box-shadow: 0 3px 0 rgba(23, 10, 51, 0.35);
  position: relative;
  z-index: 1;
}
.cafe__help {
  display: grid; gap: 8px;
  margin-top: 10px;
  font-size: 0.875rem;
}
.cafe__copy {
  justify-self: start;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--paper);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font: 700 0.9375rem/1 var(--body);
  cursor: pointer;
}
.cafe__status { color: var(--paper); }

/* Street */
.street {
  padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--facade);
}
.street__line {
  padding-top: 22px;
  border-top: 4px solid var(--shaft);
  font: 400 1.375rem/1.15 var(--display);
}
.street__fine { margin-top: 12px; font-size: 0.8125rem; color: var(--paper); opacity: 0.82; }

/* Desktop: the name on the left, the building on the right */
@media (min-width: 1040px) {
  :root { --side: min(calc(100vw - 588px), 652px); }
  .page {
    display: grid;
    grid-template-columns: var(--side) 460px;
    grid-template-rows: 1fr auto;
    justify-content: center;
    max-width: none;
    min-height: calc(100vh - 40px);
    column-gap: 48px;
    padding: 0 40px;
  }
  .hero {
    grid-row: 1 / 3; position: sticky; top: 40px; align-self: start;
    display: grid; align-content: center;
    min-height: calc(100vh - 40px);
    padding: 40px 0;
  }
  .hero__name { font-size: calc(var(--side) / 3.72); }
  .hero__row { grid-template-columns: 124px minmax(0, 1fr) 62px; gap: 20px; margin-top: 28px; }
  .hero__logo { width: 124px; height: 124px; }
  .hero__bio { font-size: 1.25rem; }
  .hero__say { font-size: 1rem; }
  .hero__hangul { font-size: 2.5rem; }
  .building { padding: 32px 24px 0; }
  .sign__body strong { font-size: 2.125rem; }
  .sign--cafe .sign__body strong { font-size: 1.9375rem; }
  .street { padding: 24px 24px 32px; }
}

@keyframes strike {
  0%, 12% { opacity: 0.12; text-shadow: none; }
  14%, 20% { opacity: 1; }
  22%, 34% { opacity: 0.2; text-shadow: none; }
  36%, 40% { opacity: 1; }
  42%, 50% { opacity: 0.35; text-shadow: none; }
  52%, 100% { opacity: 1; }
}
@keyframes light-up {
  from { opacity: 0.18; filter: saturate(0.25) brightness(0.55); }
  to { opacity: 1; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name, .sign { animation: none; }
  .sign { transition: none; }
}
