/* ==========================================================
   LAYOUT
   ========================================================== */

/* --- Font Face --- */
@font-face {
  font-family: 'Livingst';
  src: url('/fonts/Livingst.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

.container--narrow {
  max-width: var(--narrow-width);
}

/* --- Main Content --- */
.site-main {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* --- Section --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--dark {
  background-color: var(--bg-surface);
}

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

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Flex Utilities --- */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  flex-direction: column;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color) 20%,
    var(--color-violet) 50%,
    var(--border-color) 80%,
    transparent
  );
  margin: var(--space-3xl) 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  :root {
    --nav-height: 60px;
  }
}
