/* ============================================================
   SIGNIA — Layout, Typography, Buttons & Utilities
   ============================================================ */

/* --- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Typography ------------------------------------------- */
.serif { font-family: var(--font-serif); }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }

.text-xl    { font-size: clamp(3.5rem, 8vw, 7rem); letter-spacing: -0.025em; line-height: 1.0; }
.text-lg    { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.05; }
.text-md    { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.015em; }
.text-sm-h  { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-lg  { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--text-secondary); }
.body-md  { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(200, 169, 102, 0.25);
}

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* --- Divider ---------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* --- Utilities -------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ============================================================
   BENTO GRID SYSTEM
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: minmax(220px, auto);
}

.bento-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: rgba(225, 185, 120, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.bento-large {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(225, 185, 120, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 185, 120, 0.2);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.bento-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-large, .bento-wide {
    grid-column: span 1;
  }
}
