:root {
  color-scheme: light;
  --ink: #171514;
  --muted: #706b66;
  --line: #ddd8d1;
  --paper: #f7f3ed;
  --warm: #9f6b3d;
  --deep: #24211e;
  --steel: #d7d4cc;
  --white: #fffaf3;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 48px);
  color: var(--white);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 243, 237, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(23, 21, 20, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a,
.button,
.contact-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.site-menu a {
  padding: 0 18px;
  font-size: 17px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.78) 0%, rgba(14, 12, 10, 0.5) 44%, rgba(14, 12, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(14, 12, 10, 0.72) 0%, rgba(14, 12, 10, 0.05) 52%);
}

.hero-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 132px clamp(20px, 5vw, 56px) clamp(44px, 9vw, 96px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--warm);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e7c39d;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  color: rgba(255, 250, 243, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 0 24px;
  font-size: 18px;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 243, 0.72);
  color: var(--white);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) clamp(20px, 5vw, 56px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
}

.intro-text p {
  margin: 0 0 22px;
  color: var(--deep);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.55;
  word-break: keep-all;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.signal-section {
  background: var(--deep);
  color: var(--white);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.signal-grid article {
  min-height: 270px;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(255, 250, 243, 0.065);
  border: 1px solid rgba(255, 250, 243, 0.12);
}

.signal-grid span,
.business-number {
  color: #d6b18a;
  font-size: 18px;
  font-weight: 850;
}

.signal-grid h3,
.business-item h3 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: 0;
}

.signal-grid p,
.business-item p {
  margin: 0;
  color: rgba(255, 250, 243, 0.76);
  font-size: clamp(19px, 2vw, 23px);
  word-break: keep-all;
}

.business-section {
  background: #fffbf5;
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.business-list {
  display: grid;
  gap: 18px;
}

.business-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid var(--line);
}

.business-item:last-child {
  border-bottom: 1px solid var(--line);
}

.business-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.business-item h3 {
  margin-top: 0;
  color: var(--ink);
}

.business-item p {
  max-width: 850px;
  color: var(--muted);
}

.contact-section {
  background: var(--steel);
}

.contact-band {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact-actions a {
  padding: 0 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 56px);
  background: var(--ink);
  color: rgba(255, 250, 243, 0.72);
  font-size: 16px;
}

.site-footer p {
  margin: 0;
}

.auth-page,
.admin-page {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(23, 21, 20, 0.86), rgba(23, 21, 20, 0.54)),
    url("/assets/미니말레_히어로.png") center / cover fixed;
  color: var(--white);
}

.auth-shell,
.admin-shell {
  width: min(720px, 100%);
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
}

.auth-brand {
  color: var(--white);
}

.auth-panel,
.admin-panel {
  width: 100%;
  min-width: 0;
  padding: clamp(28px, 5vw, 52px);
  background: rgba(255, 250, 243, 0.96);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(14, 12, 10, 0.28);
}

.auth-panel h1,
.admin-panel h1 {
  max-width: none;
  font-size: clamp(42px, 7vw, 64px);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-size: 20px;
}

.auth-form .button.primary,
.admin-logout {
  border: 0;
  cursor: pointer;
}

.auth-form .button.primary {
  margin-top: 8px;
  background: var(--ink);
  color: var(--white);
}

.auth-form .button.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.auth-message {
  min-height: 28px;
  margin: 0;
  color: #8f2f23;
  font-size: 17px;
  font-weight: 750;
}

.auth-switch,
.auth-switch a,
.auth-copy {
  font-size: 18px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-copy {
  margin: 24px 0;
  color: var(--muted);
  word-break: keep-all;
}

.auth-link-button {
  width: 100%;
  background: var(--ink);
  color: var(--white);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 5vw, 56px);
}

.admin-header .brand {
  color: var(--white);
}

.admin-logout {
  width: auto;
  border: 1px solid rgba(255, 250, 243, 0.72);
  background: transparent;
  color: var(--white);
}

.admin-shell {
  min-height: calc(100svh - 90px);
}

.admin-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(21px, 3vw, 26px);
  word-break: keep-all;
}

.session-list {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.session-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #fffdf8;
}

.session-list dt,
.session-list dd {
  margin: 0;
  font-size: 19px;
}

.session-list dt {
  color: var(--muted);
  font-weight: 850;
}

.session-list dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.users-section {
  margin-top: 42px;
}

.users-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.users-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.users-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 850;
}

.users-empty {
  padding: 20px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 19px;
  word-break: keep-all;
}

.users-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.users-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 18px;
}

.users-table th {
  background: #eee8df;
  color: var(--deep);
  font-weight: 900;
}

.users-table td {
  color: var(--ink);
}

.users-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 780px) {
  .site-header {
    min-height: 68px;
    padding: 10px 18px;
  }

  .brand {
    font-size: 21px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: fixed;
    inset: 68px 12px auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    background: rgba(247, 243, 237, 0.98);
    color: var(--ink);
    border: 1px solid rgba(23, 21, 20, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(23, 21, 20, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-header.is-open .site-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-menu a {
    justify-content: flex-start;
    min-height: 58px;
    padding: 0 18px;
    font-size: 22px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(14, 12, 10, 0.82) 0%, rgba(14, 12, 10, 0.45) 70%, rgba(14, 12, 10, 0.28) 100%),
      linear-gradient(90deg, rgba(14, 12, 10, 0.35), rgba(14, 12, 10, 0.08));
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero-lead {
    font-size: clamp(23px, 6vw, 28px);
  }

  .button,
  .contact-actions a {
    width: 100%;
    min-height: 58px;
    font-size: 20px;
  }

  .split,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid article {
    min-height: 0;
  }

  .business-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-band,
  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .auth-shell,
  .admin-shell {
    width: 100%;
    padding: 20px;
  }

  .auth-panel,
  .admin-panel {
    padding: 26px 20px;
  }

  .auth-panel h1,
  .admin-panel h1 {
    font-size: 46px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-logout {
    width: 100%;
  }

  .session-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .users-heading {
    align-items: start;
    flex-direction: column;
  }

  .users-table th,
  .users-table td {
    font-size: 17px;
  }
}
