:root {
  --paper: #fbf8f1;
  --hero: #f5eedf;
  --card: #ffffff;
  --ink: #1a1a1c;
  --ink-soft: #3f3d39;
  --muted: #615e57;
  --line: #e9e3d6;
  --link: #1d4fc4;
  --yellow: #ffcd2e;
  --yellow-ink: #1a1a1c;
  --yellow-tint: #fff3c9;
  --blue: #2457d6;
  --blue-ink: #ffffff;
  --blue-tint: #e4ecff;
  --green: #1c8a4c;
  --green-ink: #ffffff;
  --green-tint: #def2e5;
  --vacant-tint: #ece8df;
  --shadow: 0 1px 2px rgba(60, 45, 15, 0.05), 0 10px 28px -14px rgba(60, 45, 15, 0.22);
  --shadow-up: 0 2px 4px rgba(60, 45, 15, 0.06), 0 18px 36px -16px rgba(60, 45, 15, 0.3);
  --gutter: clamp(16px, 4.4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141517;
    --hero: #1b1c1f;
    --card: #1f2023;
    --ink: #efede7;
    --ink-soft: #d3d0c8;
    --muted: #a8a49b;
    --line: #2d2e32;
    --link: #93b4ff;
    --yellow: #f2c22a;
    --yellow-tint: #3a3216;
    --blue: #3a6be0;
    --blue-tint: #1c2848;
    --green: #23955a;
    --green-tint: #17301f;
    --vacant-tint: #2a2b2f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 36px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body > main { flex: 1 0 auto; }
::selection { background: var(--yellow); color: var(--yellow-ink); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; flex-wrap: wrap; }
.wordmark { font-family: "Black Han Sans", Pretendard, sans-serif; font-size: 30px; line-height: 1; letter-spacing: 0.005em; color: var(--ink); text-decoration: none; }
.wordmark--small { font-size: 22px; color: var(--muted); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15.5px; font-weight: 500; }
.site-head nav a { color: var(--ink-soft); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero: one line of intent, kept short so the tenant cards start high */
.hero { background: var(--hero); }
.hero-inner { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(32px, 4.4vw, 48px); }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 800; }
.hero p { margin: 0; max-width: 32em; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 18px); }

/* Tenants: one card per floor, the whole card is the link */
.floors { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(48px, 7vw, 80px); }
.tenants { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.tenant { --tint: var(--yellow-tint); --c: var(--yellow); --c-ink: var(--yellow-ink); display: grid; grid-template-columns: 92px minmax(0, 1fr) 52px; align-items: center; gap: 24px; padding: 20px 24px 20px 20px; border-radius: 24px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.tenant--blue { --tint: var(--blue-tint); --c: var(--blue); --c-ink: var(--blue-ink); }
.tenant--green { --tint: var(--green-tint); --c: var(--green); --c-ink: var(--green-ink); }
.tenant--vacant { --tint: var(--vacant-tint); grid-template-columns: 92px minmax(0, 1fr); }
.tenant-floor { display: grid; place-items: center; aspect-ratio: 1; border-radius: 20px; background: var(--tint); font-family: "Black Han Sans", Pretendard, sans-serif; font-size: 36px; line-height: 1; }
.tenant-body { display: grid; gap: 4px; min-width: 0; }
.tenant-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.tenant-line { color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.tenant-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.tenant-domain { padding: 3px 12px 4px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.tenant-source { color: var(--muted); font-size: 13.5px; }
.tenant-go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.35s var(--ease-out); }
.tenant-go svg { width: 22px; height: 22px; }
a.tenant:hover, a.tenant:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-up); }
a.tenant:hover .tenant-go, a.tenant:focus-visible .tenant-go { background: var(--c); color: var(--c-ink); transform: translateX(3px); }
a.tenant:focus-visible { outline-offset: 4px; border-radius: 24px; }
a.tenant:active { transform: translateY(0); }

/* Lobby: how it runs, beside the contact card */
.lobby { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.lobby h2 { margin: 0; font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.principles { margin: 14px 0 0; padding: 0; list-style: none; }
.principles li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.office { display: grid; gap: 6px; padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.office p { margin: 0; color: var(--ink-soft); }
.office-mail { justify-self: start; margin: 6px 0 4px; font-size: clamp(21px, 2.3vw, 26px); font-weight: 800; letter-spacing: -0.02em; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); }
.office-mail:hover { text-decoration-color: currentColor; }
.office .office-foot { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.office-foot a { color: var(--ink); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 32px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-foot nav a { color: var(--ink-soft); }
.foot-note { margin: 12px 0 0; max-width: 46em; font-size: 13px; line-height: 1.6; }

/* Notice: privacy policy and other documents */
.notice { margin: clamp(32px, 6vw, 56px) auto clamp(56px, 8vw, 96px); padding: clamp(24px, 4vw, 52px) clamp(20px, 5vw, 60px); max-width: 820px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.notice h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1.25; letter-spacing: -0.035em; }
.notice .date { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.notice h2 { margin: 36px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.notice p { margin: 0 0 10px; max-width: 40em; color: var(--ink-soft); }
.notice a { color: var(--link); }

/* 404 */
.vacant { max-width: 720px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
.vacant .tenant { margin-bottom: 36px; }
.vacant .tenant-floor { color: var(--muted); }
.vacant h1 { margin: 0 0 8px; font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.vacant p { margin: 0 0 8px; color: var(--ink-soft); }
.vacant-home { font-weight: 700; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

@media (max-width: 820px) {
  .lobby { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { min-height: 60px; }
  .wordmark { font-size: 25px; }
  .site-head nav { gap: 2px 14px; font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15.5px; }
  .tenants { gap: 12px; }
  .tenant { grid-template-columns: 60px minmax(0, 1fr) 36px; gap: 14px; padding: 16px 14px 16px 14px; border-radius: 20px; }
  .tenant--vacant { grid-template-columns: 60px minmax(0, 1fr); }
  .tenant-floor { border-radius: 16px; font-size: 24px; }
  .tenant-name { font-size: 19px; }
  .tenant-line { font-size: 14.5px; }
  .tenant-domain { font-size: 12.5px; padding: 2px 10px 3px; }
  .tenant-source { font-size: 12.5px; }
  .tenant-go { width: 36px; height: 36px; }
  .tenant-go svg { width: 18px; height: 18px; }
  .tenant-floor { align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tenant, .tenant-go { transition: none; }
}
