/* ==========================================================================
   Photobooth — token thương hiệu dùng chung (gallery + portal)
   ========================================================================== */

:root {
  --lm-cream:  #F7F4EC;
  --lm-brown:  #20242B;
  --lm-yellow: #F5C542;
  --lm-blue:   #B9E3E6;
  --pt-logo-text: "Photobooth Studio";
  --pt-logo-url: none;

  /* Sắc độ suy ra từ nâu — dùng cho chữ phụ, viền, nền chìm */
  --lm-brown-80: rgba(67, 47, 46, .80);
  --lm-brown-65: rgba(67, 47, 46, .65);
  --lm-brown-40: rgba(67, 47, 46, .40);
  --lm-brown-15: rgba(67, 47, 46, .15);
  --lm-brown-08: rgba(67, 47, 46, .08);

  /* ── Chữ ────────────────────────────────────────────────────────────────
     --lm-display dành cho tiêu đề. Khi có file iCielBC OldStyle (.woff2)
     và giấy phép webfont, chỉ cần thêm @font-face rồi đổi ĐÚNG dòng này
     thành: "iCielBC OldStyle", Georgia, serif; — toàn trang đổi theo.
     Trong lúc chờ, dùng Montserrat 300 + giãn chữ (xem .lm-display). */
  --lm-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --lm-body:    "Montserrat", system-ui, -apple-system, sans-serif;

  /* ── Nhịp & bo góc ──────────────────────────────────────────────────── */
  --lm-gap:   16px;
  --lm-gap-l: 28px;
  --lm-radius: 4px;

  /* Bề rộng nội dung tối đa — gallery là trang đọc trên điện thoại,
     không cần rộng hơn thế này trên desktop. */
  --lm-max: 880px;
}

/* ── Hoạ tiết sọc thương hiệu ────────────────────────────────────────────── */
.lm-stripes {
  background-color: var(--lm-cream);
  background-image: none;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.lm-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--lm-brown);
  background: transparent center / contain no-repeat;
  aspect-ratio: 2.4 / 1;
  text-align: center;
}
.lm-logo::before {
  content: var(--pt-logo-text);
  font-family: var(--lm-display);
  font-weight: 500;
  font-size: clamp(16px, 8vw, 30px);
  letter-spacing: .08em;
  line-height: 1.05;
  text-transform: uppercase;
}
.lm-logo--cream { color: var(--lm-cream); }
.lm-logo.has-custom-logo::before { content: ""; }
.lm-logo.has-custom-logo {
  background-image: var(--pt-logo-url);
}
.side-logo::before { font-size: 15px; line-height: 1.15; }

/* Khoảng trống an toàn quanh logo theo guideline (4x trên tổng 17x chiều
   cao khối) ≈ 23% chiều cao. Luôn bọc logo trong lớp này, đừng đặt sát mép. */
.lm-logo-safe { padding: 6% 0; }

/* ── Nút ──────────────────────────────────────────────────────────────────
   Chỉ hai kiểu: nâu đặc (hành động chính) và viền nâu (hành động phụ).
   KHÔNG làm nút nền vàng/xanh — chữ trên đó không đạt tương phản. */
.lm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border: 1.5px solid var(--lm-brown);
  border-radius: var(--lm-radius);
  background: var(--lm-brown);
  color: var(--lm-cream);
  font-family: var(--lm-body);
  font-size: 15px; font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.lm-btn:hover  { background: #33221F; border-color: #33221F; }
.lm-btn:active { opacity: .85; }
.lm-btn[disabled] { opacity: .45; cursor: default; }

.lm-btn--ghost { background: transparent; color: var(--lm-brown); }
.lm-btn--ghost:hover { background: var(--lm-brown); color: var(--lm-cream); }

.lm-btn--small { width: auto; min-height: 40px; padding: 9px 18px; font-size: 13px; }

/* ── Chữ hiển thị ─────────────────────────────────────────────────────────
   Montserrat là font hình học; để không ra cảm giác "app công nghệ", tiêu đề
   dùng nét mảnh (300) + giãn chữ rộng + viết hoa. Khi thay iCielBC vào thì
   bỏ text-transform và letter-spacing ở .lm-display là hợp lý nhất. */
.lm-display {
  font-family: var(--lm-display);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--lm-brown);
}

/* ── Nền tảng ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lm-cream);
  color: var(--lm-brown);
  font-family: var(--lm-body);
  font-size: 16px;      /* không nhỏ hơn — đây là trang đọc trên điện thoại */
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.lm-wrap { width: 100%; max-width: var(--lm-max); margin: 0 auto; padding: 0 20px; }

.lm-muted { color: var(--lm-brown-65); }

.lm-hidden { display: none !important; }

:focus-visible { outline: 2px solid var(--lm-brown); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
