@font-face {
  font-family: "ChosunGu";
  src: url("ChosunGu.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: #ffffff;
  color: #000000;
  font-family:
    "Instrument Sans",
    -apple-system,
    "Helvetica Neue",
    sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.line {
  color: rgb(0, 255, 179);
  display: block;
  font-size: 40vh;
  line-height: 0.85;
  font-weight: 700;
  letter-spacing: -0.5vw;
  white-space: nowrap;
  text-transform: capitalize;
  user-select: none;
  -webkit-user-select: none;
}
.line span {
  display: inline-block;
}

/* Corner navigation (matches the reference layout) */
.corner-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(8px, 1.4vh, 16px);
  padding: clamp(28px, 5vh, 64px) clamp(28px, 4vw, 72px) 0 0;
  text-align: right;
}
.corner-nav a {
  color: #000000;
  text-decoration: none;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.corner-nav a:hover,
.corner-nav a:focus-visible {
  color: rgb(0, 255, 179);
  outline: none;
}

.ig-link {
  position: fixed;
  right: clamp(24px, 4vw, 68px);
  bottom: clamp(24px, 5vh, 60px);
  /* Above the content columns (z-index 20) so it always stays clickable */
  z-index: 30;
  display: block;
  color: #000000;
  transition: color 0.15s ease;
}
.ig-link:hover,
.ig-link:focus-visible {
  color: rgb(0, 255, 179);
  outline: none;
}
.ig-link svg {
  display: block;
  width: clamp(28px, 3vw, 40px);
  height: auto;
}

/* Corner nav as toggle buttons */
.corner-nav button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: #000000;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.15s ease;
}
.corner-nav button:hover,
.corner-nav button:focus-visible,
.corner-nav button.active {
  color: rgb(0, 255, 179);
  outline: none;
}

/* Content columns — black text over the existing page.
   The container spans the viewport but lets clicks pass through its
   empty area; only open columns capture the pointer. */
.panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  pointer-events: none;
}
.panel-section {
  display: none;
}
.panel-section.open {
  display: flex;
  flex-direction: row;
  pointer-events: auto;
  flex: 0 0 auto;
  width: min(440px, 92vw);
  min-width: 260px;
  max-width: 95vw;
  height: 100%;
  color: #000000;
  font-family: "ChosunGu", "Apple SD Gothic Neo", sans-serif;
  cursor: default;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.col-inner {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 5vh, 60px) clamp(24px, 3vw, 48px) clamp(40px, 8vh, 96px);
}
/* Dotted divider that doubles as a drag handle to resize the column */
.col-grip {
  flex: 0 0 auto;
  width: 11px;
  align-self: stretch;
  border-right: 1px dashed rgba(0, 0, 0, 0.5);
  cursor: col-resize;
  touch-action: none;
}
.col-grip:hover {
  border-right-color: #000000;
}
.col-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  background: none;
  border: none;
  color: #000000;
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 14px;
}

.panel .block {
  margin-bottom: clamp(18px, 3vh, 30px);
}
.panel .kicker {
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.5;
  margin-bottom: 6px;
}
.panel h1,
.panel h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 4px;
}
.panel p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  margin-bottom: 12px;
}
.panel .tagline {
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5;
}
.panel .tagline [lang="en"] {
  opacity: 0.5;
}
.site-language {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-family: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1;
}
.corner-nav .lang-toggle {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.38);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}
.corner-nav .lang-toggle:hover,
.corner-nav .lang-toggle:focus-visible,
.corner-nav .lang-toggle.active {
  color: #000000;
  outline: none;
}
.about-copy .block {
  max-width: 42rem;
}
.about-copy h2 {
  margin: 0 0 11px;
  font-size: clamp(20px, 2.35vw, 28px);
}
.about-copy h2 + p {
  margin-top: -5px;
}
.about-copy .about-intro {
  margin-bottom: clamp(30px, 5vh, 54px);
}
.about-copy .tagline {
  font-family: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
}
.about-copy[lang="en"] {
  font-family: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
}
.panel a {
  color: #000000;
}
/* Archive: flat list of site links (one per line within the column) */
.panel .link-list {
  columns: 1;
}
.panel .archive-link {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.4;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  transition: color 0.12s ease;
}
.panel .archive-link:hover {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.panel .no-project,
.panel .loading-text,
.panel .error-text {
  opacity: 0.5;
}

/* Author name that follows the cursor on link hover */
#cursor-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  transform: translate(14px, 12px);
  pointer-events: none;
  background: #000000;
  color: #ffffff;
  font-family: "ChosunGu", "Apple SD Gothic Neo", sans-serif;
  font-size: 13px;
  line-height: 1;
  padding: 4px 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s ease;
}
#cursor-tip.show {
  opacity: 1;
}

@media (max-width: 760px) {
  .line {
    font-size: 22vh;
  }
  .corner-nav a,
  .corner-nav button {
    font-size: 18px;
  }
  .corner-nav {
    gap: 8px;
  }
  /* One full-width column at a time on mobile (no manual resize) */
  .panel-section.open {
    width: 100vw;
    max-width: 100vw;
  }
  .col-grip {
    display: none;
  }
  /* Move the close button to the left so it clears the corner nav */
  .col-close {
    margin-left: 0;
  }
}
