@font-face {
  font-family: "SUIT";
  src: url("../fonts/SUIT-Regular.8bae3ed6724c.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SUIT";
  src: url("../fonts/SUIT-SemiBold.38149f1e21b2.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SUIT";
  src: url("../fonts/SUIT-Bold.f4d7e66643bf.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #103e32;
  --primary-light: #e8f1ec;
  --primary-soft: #f2f7f4;
  --primary-dark: #08281f;
  --accent: #d7ff54;
  --accent-ink: #163b31;
  --coral: #ef6a4c;
  --sky: #9bc7df;
  --bg: #f5f7f4;
  --white: #ffffff;
  --text: #14211d;
  --sub: #58635f;
  --hint: #89928f;
  --border: #dce2de;
  --border-strong: #c7cfca;
  --surface: #eef1ee;
  --danger: #c63f3f;
  --success: #167a55;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "SUIT", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 226, 222, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 48px, 1240px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  margin-right: 42px;
}

.logo-mark {
  width: 42px;
  height: 42px;
}

.logo-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.logo-copy strong {
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

.logo-copy small {
  margin-top: 4px;
  color: var(--sub);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  padding: 25px 13px 23px;
  color: #46514d;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 2px;
  background: var(--primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-login,
.btn-join,
.btn-logout {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-login,
.btn-logout {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
}

.btn-login:hover,
.btn-logout:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-join {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-join:hover {
  background: var(--primary-dark);
}

.user-chip {
  max-width: 210px;
  overflow: hidden;
  padding: 0 8px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before {
  position: absolute;
  top: -6px;
}

.mobile-menu-icon::after {
  position: absolute;
  top: 6px;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-icon {
  background: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .mobile-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.container {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.page-header {
  padding: 68px 0 34px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.page-header h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
}

.page-header p {
  color: var(--sub);
  font-size: 16px;
}

.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  color: var(--text);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.section-more {
  flex: 0 0 auto;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  padding: 72px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.empty-state .emoji {
  display: none;
}

.empty-state::before {
  display: block;
  width: 36px;
  height: 3px;
  margin: 0 auto 22px;
  background: var(--accent);
  content: "";
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
}

.empty-state p {
  color: var(--sub);
  font-size: 14px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.auth-shell {
  width: min(100% - 48px, 980px);
  min-height: 610px;
  margin: 64px auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  overflow: hidden;
}

.auth-visual {
  position: relative;
  min-height: 610px;
  background: var(--primary-dark);
}

.auth-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.auth-visual-copy {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: rgba(8, 40, 31, .88);
  color: #fff;
}

.auth-visual-copy strong {
  display: block;
  font-size: 21px;
  line-height: 1.35;
}

.auth-visual-copy span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.auth-panel {
  padding: 58px 52px;
  align-self: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-brand img {
  width: 40px;
  height: 40px;
}

.auth-brand strong {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.auth-title {
  color: var(--text);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-sub {
  margin-top: 10px;
  color: var(--sub);
  font-size: 14px;
  line-height: 1.7;
}

.auth-actions {
  margin-top: 34px;
}

.social-btn {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.social-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.social-btn.naver {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.social-btn.naver:hover {
  border-color: #02ad4e;
  background: #02ad4e;
}

.google-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.naver-icon {
  width: 21px;
  height: 21px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #03c75a;
  font-size: 12px;
  font-weight: 900;
}

.auth-divider {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hint);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--border);
  content: "";
  flex: 1;
}

.auth-error {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #e9bcbc;
  border-radius: 6px;
  background: #fff5f5;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-note,
.auth-switch {
  margin-top: 22px;
  color: var(--hint);
  font-size: 12px;
  line-height: 1.7;
}

.auth-switch {
  color: var(--sub);
  font-size: 13px;
}

.auth-note a,
.auth-switch a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: 52px 0 36px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-brand strong {
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.footer-desc {
  max-width: 270px;
  margin-top: 17px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.75;
}

.footer-col-title {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy,
.footer-company {
  color: var(--hint);
  font-size: 12px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 66px;
  }

  .header-inner {
    width: min(100% - 32px, 1240px);
  }

  .logo {
    margin-right: 0;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #fff;
    display: grid;
    opacity: 0;
    transition: max-height 220ms ease, opacity 180ms ease;
  }

  .site-nav.open {
    max-height: calc(100svh - var(--header-height));
    padding: 10px 16px 18px;
    opacity: 1;
  }

  .site-nav a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--border);
    font-size: 17px;
  }

  .site-nav a::after {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 240px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-inner > div:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 680px) {
  .auth-shell {
    width: min(100% - 24px, 980px);
    min-height: 0;
    margin: 24px auto 44px;
  }

  .auth-visual {
    min-height: 176px;
  }

  .auth-visual-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 14px 16px;
  }

  .auth-visual-copy strong {
    font-size: 17px;
  }

  .auth-panel {
    padding: 34px 24px 38px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }

  .auth-title {
    font-size: 25px;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }

  .logo-copy small {
    display: none;
  }

  .header-right .user-chip {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .btn-join,
  .btn-logout {
    min-height: 38px;
    padding: 0 12px;
  }

  .page-header {
    padding: 46px 0 25px;
  }

  .section {
    padding: 52px 0;
  }

  .footer-inner {
    width: min(100% - 32px, 1200px);
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .footer-inner > div:first-child,
  .footer-inner > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    width: min(100% - 32px, 1200px);
    align-items: flex-start;
    flex-direction: column;
  }
}
