:root {
  --text: #222222;
  --muted: #707070;
  --line: #D9D9D9;

  --bg: #FFFFFF;
  --soft-bg: #F5F7FA;

  --accent: #d388ff;
  --accent-light: #EAF3FB;

  --footer-bg: #222222;
  --footer-text: #EEEEEE;
  --max-width: 1180px;
}

  body.dark {
  --text: #eee;
  --muted: #aaa;
  --line: #444;
  --bg: #111;
  --soft-bg: #1b1b1b;
  --footer-bg: #000;
  --footer-text: #eee;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, "Noto Sans KR", sans-serif;
  line-height: 1.6;
}

/* ==================== COMMON ==================== */

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

.update-list {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ==================== HEADER ==================== */

.site-header {
  background: #CCCCCC;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

/* 로고 영역 */
.site-logo {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 20px 24px;

  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.site-logo a span {
  color:#0042f7 ;
}


.site-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-logo a {
  color: var(--text);
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.site-logo a:hover {
  color: var(--accent);
}

/* ==================== NAV ==================== */

.main-nav {
  border-top: 1px solid #f0f0f0;
  position: relative;
  z-index: 200;
}

.nav-list {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;

  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item > a.active {
  background: var(--soft-bg);
}

/* ==================== DROPDOWN ==================== */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 6px 0;
  list-style: none;

  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);

  transition:
    opacity .15s ease,
    transform .15s ease,
    visibility .15s;

  z-index: 300;
}

@media (min-width: 801px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--soft-bg);
}

/* ==================== SECTION ==================== */

.section {
  padding: 90px 20px;
}

.section-alt {
  background: var(--soft-bg);
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 900px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.section h2 {
  margin: 0 0 38px;
  font-size: 32px;
  line-height: 1.2;
}

/* ==================== HERO ==================== */

.hero {
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--soft-bg);
  min-height: 500px;
}

.hero-overlay {
  padding: 40px 20px;
}

.hero-label {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -2px;
}

/* ==================== BUTTON ==================== */

.button {
  display: inline-block;
  padding: 11px 22px;

  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;

  font-size: 13px;
  font-weight: 700;

  transition: transform 0.2s ease;
}

.button:hover {
  opacity: .8;
  transform: scale(1.05);
}

.button-light {
  margin-top: 28px;
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

/* ==================== ABOUT ==================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-section h2 {
  margin-bottom: 22px;
}

.about-card {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.05);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.image-placeholder,
.project-image {
  min-height: 300px;
  display: grid;
  place-items: center;

  background: var(--soft-bg);
  color: #999;

  font-size: 12px;
  letter-spacing: 1px;
}

.one-line-intro {
  margin-top: 24px;
  font-weight: 700;
}

/* ==================== INTEREST ==================== */

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.interest-card {
  min-height: 130px;
  padding: 24px;

  background: var(--soft-bg);

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease;
  transform-origin: center;
}

.interest-card span {
  color: var(--muted);
  font-size: 12px;
}

.interest-card strong {
  font-size: 18px;
}

.interest-card:hover {
  transform: scale(1.05);
  border: 1px solid #818181;
  z-index: 10;
}

/* ==================== PROJECT ==================== */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border: 1px solid var(--line);

  transition: transform 0.2s ease;
  transform-origin: center;
}

.project-card:hover {
  transform: scale(1.05);
  border: 1px solid #818181;
  z-index: 10;
}

.project-image {
  min-height: 220px;
}

.project-content {
  padding: 24px;
}

.project-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.project-content h3 {
  margin: 10px 0;
  font-size: 20px;
}

.project-content p {
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* ==================== UPDATE ==================== */

.update-list {
  border-top: 1px solid var(--line);
}

.update-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;

  padding: 18px 0;

  border-bottom: 1px solid var(--line);
}

.update-list time {
  color: var(--muted);
  font-size: 13px;
}

/* ==================== CURRENTLY ==================== */

.currently-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.currently-card {
  min-height: 155px;
  padding: 24px;

  background: #D8D8D8;
  border: 1px solid var(--line);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition: transform 0.2s ease;
}

.currently-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.currently-card strong {
  font-size: 19px;
}

.currently-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.currently-card:hover {
  transform: scale(1.05);
  border: 1px solid #818181;
  z-index: 10;
}

/* ==================== ARCHIVE ==================== */

.archive-hero {
  padding: 100px 20px 70px;
  background: var(--soft-bg);
}

.archive-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -2px;
}

.archive-hero p:last-child {
  margin: 0;
  color: var(--muted);
}

.archive-list {
  border-top: 1px solid var(--line);
}

.archive-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;

  padding: 28px 0;

  border-bottom: 1px solid var(--line);
}

.archive-item time {
  color: var(--muted);
  font-size: 13px;
}

.archive-item h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.archive-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==================== PROJECT PAGE ==================== */

.project-page {
  min-height: 620px;
  padding: 90px 20px;
}

.project-page h1 {
  margin: 0;
  font-size: 44px;
}

/* ==================== FOOTER ==================== */

.site-footer {
  padding: 45px 20px 20px;

  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  font-size: 18px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #aaa;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer-links a {
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  max-width: var(--max-width);
  margin: 35px auto 0;
  padding-top: 18px;

  border-top: 1px solid #555;

  color: #999;
  font-size: 12px;
}

/* ==================== TABLET / MOBILE ==================== */

@media (max-width: 800px) {

  .site-logo {
    width: 100%;
    max-width: none;
    padding: 34px 20px 24px;
  }

  .nav-list {
    width: 100%;
    padding: 0 8px;
    overflow-x: auto;
    position: relative;
  }

  .nav-item > a {
    padding: 11px 12px;
    font-size: 11px;
  }

  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .currently-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .has-dropdown {
    position: static;
  }

  .has-dropdown .dropdown {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 5px 16px;

    transform: translateY(-4px);

    z-index: 9999;
  }

  .has-dropdown.open .dropdown {
    position: fixed;
    transform: translateY(0);
  }

  .dropdown a {
    padding: 10px 13px;
    font-size: 10px;
  }
}

/* ==================== SMALL MOBILE ==================== */

@media (max-width: 500px) {

  .site-logo {
    width: 100%;
    max-width: none;
    padding: 34px 20px 24px;
    font-size: 28px;
    gap: 10px;
  }

  .site-logo img {
    width: 34px;
    height: 34px;
  }

  .section,
  .project-page {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .update-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .about-card {
    padding: 26px;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.emoji-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  object-fit: contain;
}

#theme-toggle {
  border: 0;
  background: none;
  font-size: 18px;
  cursor: pointer;
  margin-left: 50px;
}

.project-card,
.interest-card,
.currently-card,
.about-card {
  background: #f2f2f2;
}

body.dark .project-card,
body.dark .interest-card,
body.dark .currently-card,
body.dark .about-card {
  background: #2a2a2a;
}

body.dark .button,
body.dark .button-light,
body.dark #theme-toggle {
  color: #000000;
}

.stats-section {
  padding: 60px 20px;
  background: var(--soft-bg);
}

.stats {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 120px;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 36px;
  color: var(--text);
}

.stat-item span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  .stats {
    gap: 45px;
  }

  .stat-item strong {
    font-size: 28px;
  }
}

.stats-section h2 {
  text-align: center;
  margin-bottom: 35px;
}

.theme-button {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

#theme-toggle {
  cursor: pointer;
}

.site-header {
  position: relative;
}

.project-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.Sword-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;  
}