/* ============================================================
   SOLITUDE LABS — Layout
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-full {
  width: 100%;
  padding: 0 var(--gutter);
}

/* Section spacing */
section {
  padding: var(--space-9) 0;
}

section.section-tight {
  padding: var(--space-7) 0;
}

section.section-loose {
  padding: var(--space-10) 0;
}

/* Grid systems */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.grid-asymm-1 { grid-template-columns: 1.1fr 1fr; }
.grid-asymm-2 { grid-template-columns: 1fr 1.2fr; }
.grid-asymm-3 { grid-template-columns: 1fr 1.5fr; }

/* Flex */
.flex {
  display: flex;
  gap: var(--space-4);
}

.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }

/* Section header pattern */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  gap: var(--space-5);
}

.sec-header-content {
  flex: 1;
}

.sec-header .display-3,
.sec-header .display-4 {
  margin-top: var(--space-2);
}

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

.divider-gold {
  height: 1px;
  background: var(--gold);
  width: 100%;
}

/* Spacing helpers */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }

/* Backgrounds */
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.bg-paper-3 { background: var(--paper-3); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-white { background: var(--white); }

/* Responsive */
@media (max-width: 900px) {
  :root { --gutter: var(--gutter-mobile); }
  section { padding: var(--space-7) 0; }
  .grid-2, .grid-3, .grid-4, .grid-5,
  .grid-asymm-1, .grid-asymm-2, .grid-asymm-3 {
    grid-template-columns: 1fr;
  }
  .sec-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  section { padding: var(--space-6) 0; }
}
