/* ==========================================================
   main.css — 루트(/) 브랜드 스플래시 화면
   base.css의 --cd-* 토큰을 재사용하되, 이 화면만의 전체화면 레이아웃과
   원두/블롭 아트를 담당한다. base.html의 nav 셸을 쓰지 않는 독립 페이지.
   ========================================================== */

.cd-landing-body {
    margin: 0;
    background: var(--cd-cream);
}

.cd-landing {
    position: relative;
    min-height: 100vh;
    overflow: hidden; /* 원두 이미지가 모서리 밖으로 살짝 걸치는 걸 화면 경계에서 잘라내기 */
}

/* 갈색 부분 */
.cd-landing__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ---- 원두 이미지 4장 ---- */
.cd-landing__bean {
    position: absolute;
    z-index: 1; /* 갈색 부분(z-index 없음=0) 위, 로고 콘텐츠(z-index 2) 아래 */
    width: 150px;
    height: auto;
    pointer-events: none; /* 장식 요소 — 클릭/포커스 대상에서 제외 */
    user-select: none;
}

.cd-landing__bean--tr-light {
    top: -30px;
    right: 230px;
    width: 240px;
}

.cd-landing__bean--tr-dark {
    top: -10px;
    right: 50px;
    width: 230px;
}

.cd-landing__bean--bl {
    bottom: 50px;
    left: 20px;
    width: 240px;
    transform: rotate(10deg); 
}

.cd-landing__bean--br-light {
    bottom: -40px;
    right: 180px;
    width: 240px;
    transform: rotate(-160deg);
}

/* 로고 + 버튼 */
.cd-landing__content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 10px 30%; /* 좌측 30% 지점부터 콘텐츠 시작 */
    max-width: 620px;
}

/* 카페인 다이어리 로고 부분 */
.cd-landing__logo {
    font-family: 'Kirang Haerang', var(--cd-font-display);
    font-size: 120px;
    font-style: normal;
    font-weight: 400;
    text-align: center;
    line-height: 110px;
    color: var(--cd-cream);
}

/* 로그인 + 회원가입 */
.cd-landing__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* 로그인, 회원가입 버튼 각각 */
.cd-landing__btn {
    display: flex;
    width: 151px;
    height: 45px;
    padding: 11px 38px 12px 39px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-top: 50px;
    border-radius: 22.5px;
    background: var(--cd-brown-light);
    color: var(--cd-brown-dark);
    font-family: var(--cd-font-body);
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.cd-landing__btn:hover { opacity: 0.9; transform: translateY(-2px); }
.cd-landing__btn:focus-visible { outline: 3px solid var(--cd-cream); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .cd-landing__btn { transition: none; }
}


/* ==========================================================
   반응형 — 화면이 좁아질 때 크기 조정
   ========================================================== */

@media (max-width: 768px) {
    .cd-landing__art {display: none;}
    .cd-landing-body {background: var(--cd-brown-dark);}
    .cd-landing__bean { width: 200px;}
    .cd-landing__logo {font-size: 90px; line-height: 80px;}
    .cd-landing__btn {width: 121px; padding: 11px 20px 12px 20px; font-size: 16px;}
}


@media (max-width: 480px) {
    .cd-landing__art {display: none;}
    .cd-landing-body {background: var(--cd-brown-dark);}
    .cd-landing__bean { width: 180px;}
    .cd-landing__logo {font-size: 70px; line-height: 65px;}
    .cd-landing__btn {
        width: 100px; padding: 11px 10px 12px 10px; font-size: 15px; margin-top: 40px;
    }

}