/* --- Mlem Mlem · mlemmlem.vn --- */
:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --accent: #ff6b4a;
  --accent-soft: rgba(255, 107, 74, 0.15);
  --cat-tongue: #ff8f7b;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --space: 1.5rem;
  --container: min(90vw, 1100px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space) calc(var(--space) * 2);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  color: var(--cat-tongue);
}

.logo-mark svg,
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-cat-face { fill: var(--bg-soft); stroke: var(--cat-tongue); stroke-width: 1.5; }
.logo-eye { fill: var(--text); }
.logo-mouth { color: var(--text-muted); }
.logo-tongue { color: var(--cat-tongue); }

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    max-width: 280px;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--space) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(13, 13, 13, 0.85), rgba(13, 13, 13, 0.35)),
    url("../images/hero.jpg") center top / cover no-repeat;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-content {
  max-width: 480px;
  text-align: left;
}

.hero-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-photo {
  width: min(40vw, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 107, 74, 0.3), transparent 55%),
    url("../images/hero.jpg")
      center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline { background: transparent; color: var(--text); }

@media (max-width: 900px) {
  .hero-inner {
    align-items: flex-start;
    text-align: left;
    padding-block: 3rem 2rem;
  }
}


/* --- Sections --- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Meaning */
.meaning { background: var(--bg-soft); }
.meaning-lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.meaning-body {
  color: var(--text-muted);
  max-width: 42ch;
}

/* Collection */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space);
  margin-top: 2rem;
}

.collection-card {
  background: var(--bg-soft);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.collection-card:hover {
  border-color: rgba(255, 107, 74, 0.3);
}

.card-image {
  aspect-ratio: 3/4;
  background: var(--bg);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  padding: 1rem var(--space);
}

/* Mood board */
.moodboard {
  background: var(--bg-soft);
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space);
  margin-top: 2rem;
}

.moodboard-skeleton {
  border-radius: 8px;
  background: var(--bg-soft);
  aspect-ratio: 3 / 4;
  animation: moodboard-skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes moodboard-skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.moodboard-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.moodboard-tile:hover {
  border-color: rgba(255, 107, 74, 0.4);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .moodboard-tile:hover {
    transform: none;
  }
}

.moodboard-tile span {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.moodboard-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Bento: every 5th and 8th tile span 2 rows and 2 cols */
.moodboard-tile.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.moodboard-tile.bento-large span {
  aspect-ratio: 3 / 4;
}

@media (max-width: 900px) {
  .moodboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .moodboard-tile.bento-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  .moodboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .moodboard-tile.bento-large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .moodboard-tile.bento-large span {
    aspect-ratio: 3 / 4;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.lightbox-prev:hover:not(:disabled),
.lightbox-next:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Location */
.location { background: var(--bg-soft); }
.location-text { color: var(--text-muted); margin-bottom: 0.5rem; }
.location-domain a {
  color: var(--accent);
  font-weight: 500;
}
.location-domain a:hover { text-decoration: underline; }

/* Waitlist */
.waitlist {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  text-align: center;
  padding: 4rem var(--space) 5rem;
}
.waitlist-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.waitlist-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.waitlist-hype {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}
.waitlist-form {
  max-width: 420px;
  margin: 0 auto 0.75rem;
}
.waitlist-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
}
.waitlist-row input[type="email"]::placeholder {
  color: var(--text-muted);
}
.waitlist-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-submit {
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--bg);
  white-space: nowrap;
}
.btn-submit:hover {
  background: transparent;
  color: var(--accent);
}
.waitlist-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.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;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem var(--space);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
