:root {
  --brand-blue: #2168f5;
  --brand-cyan: #16c5ee;
  --deep-blue: #0e4fb0;

  --text: #15213a;
  --muted: #7891b2;
  --line: #d7e4f6;

  --surface: #ffffff;
  --page: #f7faff;

  --radius-lg: 22px;
  --radius-md: 18px;

  --shadow: 0 14px 34px rgba(30, 86, 167, 0.10);
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  background: var(--page);
}


body {
  margin: 0;
  min-width: 320px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(33, 104, 245, 0.05),
      transparent 34%
    ),
    var(--page);
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  -webkit-tap-highlight-color: transparent;
}


img {
  display: block;
  max-width: 100%;
}


/* =========================
   전체 앱 영역
========================= */

.app-shell {
  width: min(100%, 460px);

  min-height: 100svh;

  margin: 0 auto;

  padding:
    calc(env(safe-area-inset-top, 0px) + 26px)
    18px
    calc(env(safe-area-inset-bottom, 0px) + 28px);

  background: var(--surface);

  box-shadow:
    0 0 50px rgba(36, 80, 140, 0.08);
}


/* =========================
   로고 영역
========================= */

.hero {
  display: flex;

  flex-direction: column;

  align-items: center;

  padding: 6px 12px 24px;

  text-align: center;
}


.brand-logo {
  width: 122px;

  height: auto;

  object-fit: contain;

  user-select: none;

  -webkit-user-drag: none;
}


.catchphrase {
  margin: 12px 0 0;

  font-size: clamp(18px, 4.8vw, 22px);

  font-weight: 700;

  line-height: 1.45;

  letter-spacing: -0.045em;

  color: #7390b6;
}


/* =========================
   사진 영역
========================= */

.moment-feed {
  margin-top: 2px;
}


.photo-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  align-items: start;
}


.moment-card {
  position: relative;

  overflow: hidden;

  min-height: 210px;

  border-radius: var(--radius-md);

  background: #dfe8f6;

  box-shadow:
    0 5px 16px rgba(19, 58, 107, 0.08);

  isolation: isolate;

  transform: translateZ(0);
}


.moment-card.tall {
  min-height: 330px;
}


.moment-card.medium {
  min-height: 260px;
}


.moment-card.short {
  min-height: 210px;
}


.moment-card img {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 450ms ease;
}


.moment-card::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      transparent 44%,
      rgba(0, 0, 0, 0.58) 100%
    );

  pointer-events: none;
}


.moment-card:hover img {
  transform: scale(1.025);
}


/* =========================
   사진 정보
========================= */

.card-content {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 2;

  padding: 17px 16px;

  color: #fff;
}


.location {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  margin-bottom: 7px;

  font-size: 12px;

  font-weight: 650;

  line-height: 1.2;

  opacity: 0.94;

  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.35);
}


.location::before {
  content: "";

  width: 8px;
  height: 8px;

  border: 2px solid currentColor;

  border-radius:
    50% 50% 50% 0;

  transform: rotate(-45deg);
}


.card-caption {
  margin: 0;

  padding-right: 34px;

  font-size: 16px;

  font-weight: 800;

  line-height: 1.35;

  letter-spacing: -0.035em;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35);
}


/* =========================
   좋아요 버튼
========================= */

.like-btn {
  position: absolute;

  right: 12px;
  bottom: 13px;

  z-index: 3;

  display: grid;

  width: 36px;
  height: 36px;

  padding: 0;

  place-items: center;

  border: 0;

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.08);

  color: #fff;

  cursor: pointer;

  backdrop-filter: blur(4px);
}


.like-btn svg {
  width: 23px;

  height: 23px;

  fill: transparent;

  stroke: currentColor;

  stroke-width: 1.9;

  transition:
    transform 180ms ease,
    fill 180ms ease;
}


.like-btn.active svg {
  fill: #fff;

  transform: scale(1.08);
}


/* =========================
   회원가입 / 로그인
========================= */

.auth-actions {
  display: grid;

  gap: 12px;

  padding: 28px 2px 4px;
}


.btn {
  position: relative;

  width: 100%;

  min-height: 62px;

  border-radius: 999px;

  font-size: 20px;

  font-weight: 800;

  letter-spacing: -0.035em;

  cursor: pointer;

  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}


.btn:active {
  transform: scale(0.985);
}


.btn-primary {
  border: 0;

  color: #fff;

  background:
    linear-gradient(
      105deg,
      var(--brand-blue),
      var(--brand-cyan)
    );

  box-shadow:
    0 12px 28px
    rgba(30, 123, 233, 0.23);
}


.btn-primary:hover {
  box-shadow:
    0 15px 32px
    rgba(30, 123, 233, 0.30);
}


.btn-arrow {
  position: absolute;

  right: 24px;

  top: 50%;

  transform:
    translateY(-52%);

  font-size: 27px;

  font-weight: 400;
}


.btn-secondary {
  border:
    2px solid #d4e3f8;

  color:
    var(--brand-blue);

  background: #fff;

  box-shadow:
    0 6px 18px
    rgba(30, 87, 165, 0.05);
}


/* =========================
   접근성
========================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;

  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================
   작은 모바일
========================= */

@media (max-width: 380px) {

  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }


  .brand-logo {
    width: 108px;
  }


  .moment-card.tall {
    min-height: 292px;
  }


  .moment-card.medium {
    min-height: 232px;
  }


  .moment-card.short {
    min-height: 190px;
  }


  .card-content {
    padding: 14px 13px;
  }


  .card-caption {
    font-size: 14px;
  }

}


/* =========================
   PC
========================= */

@media (min-width: 700px) {

  body {
    padding: 28px 0;
  }


  .app-shell {
    min-height: auto;

    border-radius: 34px;
  }

}